
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: Webhook.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php

namespace PrestoPlayer\Models;

class Webhook extends Model {

	/**
	 * Table used to access db
	 *
	 * @var string
	 */
	protected $table = &#039;presto_player_webhooks&#039;;

	/**
	 * Model Schema
	 *
	 * @var array
	 */
	public function schema() {
		return array(
			&#039;id&#039;         =&gt; array(
				&#039;type&#039; =&gt; &#039;integer&#039;,
			),
			&#039;name&#039;       =&gt; array(
				&#039;type&#039;              =&gt; &#039;string&#039;,
				&#039;sanitize_callback&#039; =&gt; &#039;wp_kses_post&#039;,
			),
			&#039;url&#039;        =&gt; array(
				&#039;type&#039;              =&gt; &#039;string&#039;,
				&#039;sanitize_callback&#039; =&gt; &#039;sanitize_url&#039;,
			),
			&#039;method&#039;     =&gt; array(
				&#039;type&#039;              =&gt; &#039;string&#039;,
				&#039;sanitize_callback&#039; =&gt; &#039;sanitize_text_field&#039;,
			),
			&#039;email_name&#039; =&gt; array(
				&#039;type&#039;              =&gt; &#039;string&#039;,
				&#039;sanitize_callback&#039; =&gt; &#039;sanitize_text_field&#039;,
			),
			&#039;headers&#039;    =&gt; array(
				&#039;type&#039; =&gt; &#039;array&#039;,
			),
			&#039;created_by&#039; =&gt; array(
				&#039;type&#039;    =&gt; &#039;integer&#039;,
				&#039;default&#039; =&gt; get_current_user_id(),
			),
			&#039;created_at&#039; =&gt; array(
				&#039;type&#039; =&gt; &#039;string&#039;,
			),
			&#039;updated_at&#039; =&gt; array(
				&#039;type&#039;    =&gt; &#039;string&#039;,
				&#039;default&#039; =&gt; current_time( &#039;mysql&#039; ),
			),
			&#039;deleted_at&#039; =&gt; array(
				&#039;type&#039; =&gt; &#039;string&#039;,
			),
		);
	}

	/**
	 * These attributes are queryable
	 *
	 * @var array
	 */
	protected $queryable = array( &#039;name&#039; );

	/**
	 * Create a preset in the db
	 *
	 * @param array $args
	 * @return integer
	 */
	public function create( $args = array() ) {
		// name is required
		if ( empty( $args[&#039;name&#039;] ) ) {
			return new \WP_Error( &#039;missing_parameter&#039;, __( &#039;You must enter a name for the webhook.&#039;, &#039;presto-player&#039; ) );
		}

		// generate slug on the fly
		$args[&#039;name&#039;] = ! empty( $args[&#039;name&#039;] ) ? $args[&#039;name&#039;] : sanitize_title( $args[&#039;name&#039;] );

		// create
		return parent::create( $args );
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
