O:39:"phpDocumentor\Descriptor\FileDescriptor":22:{s:7:" * hash";s:32:"c62f33281671af48c53ff8aa0374f9cf";s:7:" * path";s:15:"easy-inputs.php";s:9:" * source";s:2702:"<?php
/**
 * A WordPress Forms template engine.
 *
 * @package EasyInputs
 * @author  Thomas J Belknap <tbelknap@holisticnetworking.net>
 * @license GPLv2 or later
 * @link    http://holisticnetworking.net/easy-inputs-wordpress/
 */
/**
 * Plugin Name: Easy Inputs
 * Plugin URI: https://holisticnetworking.github.io/easy-inputs/
 * Description: A WordPress Forms template engine.
 * Version: 1.0
 * Author: Thomas J Belknap
 * Author URI: http://holisticnetworking.net
 * GitHub Plugin URI: holisticnetworking/easy-inputs
 * License: GPLv2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 */

namespace EasyInputs;

use EasyInputs\Form;
use EasyInputs\Form\Input;

/**
 * Error-free HTML form and input template engine.
 *
 * EasyInputs provides an error-free universal means of generating HTML form
 * inputs. EasyInputs is a developers-only plugin that provides a helper for
 * generating form inputs. It provides objects that represent both the Form and
 * the Input, standarizing how your HTML form elements are created, speeding
 * development of plugins and themes.
 *
 * @category Wordpress
 * @package  EasyInputs
 * @author   Thomas J Belknap <tbelknap@holisticnetworking.net>
 * @license  GPLv2 or later
 * @link     http://holisticnetworking.net/easy-inputs-wordpress/
 */
class EasyInputs
{
    /**
     * @var \EasyInputs\Form|null
     */
    var $Form   = null;
    /**
     * Giddyup.
     * This function constructs our EasyInputs class for use in WordPress. Each
     * time a new instance of EasyInputs is created, a new Form class is
     * created. While not all WordPress forms require actual &lt;form&gt; tags,
     * the Form class acts as our model to represent the overall form. It
     * defines what kind of data we're handling, a default name to be applied to
     * the data and a few other details.
     *
     * @param array $args An array of arguments that instantiates the Form
     * class. Minimally, this array needs to include a 'name', and preferably
     * also a 'type' value. The name is intended to be HTML compatible and is
     * used for certain values unless overridden. The type must be either
     * meta, setting or custom, correlating to the types of supported form
     * elements.
     *
     * @return void
     */
    public function __construct(array $args)
    {
        // Include our other classes:
        require_once plugin_dir_path(__FILE__) . 'lib/form.class.php';
        require_once plugin_dir_path(__FILE__) . 'lib/input.class.php';
        
        // Bounce incomplete requests:
        if (empty($args) || empty($args['name'])) {
            return;
        }
        $this->Form     = new Form($args);
    }
}
";s:19:" * namespaceAliases";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:4:"Form";s:16:"\EasyInputs\Form";s:5:"Input";s:22:"\EasyInputs\Form\Input";}}s:11:" * includes";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{i:0;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:" * node";O:28:"PhpParser\Node\Expr\Include_":4:{s:4:"expr";O:35:"PhpParser\Node\Expr\BinaryOp\Concat":4:{s:4:"left";O:28:"PhpParser\Node\Expr\FuncCall":4:{s:4:"name";O:19:"PhpParser\Node\Name":3:{s:5:"parts";a:1:{i:0;s:15:"plugin_dir_path";}s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:2:{s:9:"startLine";i:69;s:7:"endLine";i:69;}}s:4:"args";a:1:{i:0;O:18:"PhpParser\Node\Arg":5:{s:5:"value";O:37:"PhpParser\Node\Scalar\MagicConst\File":2:{s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:2:{s:9:"startLine";i:69;s:7:"endLine";i:69;}}s:5:"byRef";b:0;s:6:"unpack";b:0;s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:2:{s:9:"startLine";i:69;s:7:"endLine";i:69;}}}s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:2:{s:9:"startLine";i:69;s:7:"endLine";i:69;}}s:5:"right";O:29:"PhpParser\Node\Scalar\String_":3:{s:5:"value";s:18:"lib/form.class.php";s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:3:{s:9:"startLine";i:69;s:7:"endLine";i:69;s:13:"originalValue";s:20:"'lib/form.class.php'";}}s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:3:{s:9:"startLine";i:69;s:7:"endLine";i:69;s:13:"originalValue";s:20:"'lib/form.class.php'";}}s:4:"type";i:4;s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:4:{s:8:"comments";a:1:{i:0;O:17:"PhpParser\Comment":2:{s:7:" * text";s:30:"// Include our other classes:
";s:7:" * line";i:68;}}s:9:"startLine";i:69;s:7:"endLine";i:69;s:13:"originalValue";s:20:"'lib/form.class.php'";}}s:23:" * default_package_name";s:0:"";s:10:" * context";O:41:"phpDocumentor\Reflection\DocBlock\Context":3:{s:12:" * namespace";s:10:"EasyInputs";s:20:" * namespace_aliases";a:2:{s:4:"Form";s:16:"\EasyInputs\Form";s:5:"Input";s:22:"\EasyInputs\Form\Input";}s:7:" * lsen";s:0:"";}}i:1;O:41:"phpDocumentor\Reflection\IncludeReflector":3:{s:7:" * node";O:28:"PhpParser\Node\Expr\Include_":4:{s:4:"expr";O:35:"PhpParser\Node\Expr\BinaryOp\Concat":4:{s:4:"left";O:28:"PhpParser\Node\Expr\FuncCall":4:{s:4:"name";O:19:"PhpParser\Node\Name":3:{s:5:"parts";a:1:{i:0;s:15:"plugin_dir_path";}s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:2:{s:9:"startLine";i:70;s:7:"endLine";i:70;}}s:4:"args";a:1:{i:0;O:18:"PhpParser\Node\Arg":5:{s:5:"value";O:37:"PhpParser\Node\Scalar\MagicConst\File":2:{s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:2:{s:9:"startLine";i:70;s:7:"endLine";i:70;}}s:5:"byRef";b:0;s:6:"unpack";b:0;s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:2:{s:9:"startLine";i:70;s:7:"endLine";i:70;}}}s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:2:{s:9:"startLine";i:70;s:7:"endLine";i:70;}}s:5:"right";O:29:"PhpParser\Node\Scalar\String_":3:{s:5:"value";s:19:"lib/input.class.php";s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:3:{s:9:"startLine";i:70;s:7:"endLine";i:70;s:13:"originalValue";s:21:"'lib/input.class.php'";}}s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:3:{s:9:"startLine";i:70;s:7:"endLine";i:70;s:13:"originalValue";s:21:"'lib/input.class.php'";}}s:4:"type";i:4;s:36:" PhpParser\NodeAbstract subNodeNames";N;s:13:" * attributes";a:3:{s:9:"startLine";i:70;s:7:"endLine";i:70;s:13:"originalValue";s:21:"'lib/input.class.php'";}}s:23:" * default_package_name";s:0:"";s:10:" * context";r:62;}}}s:12:" * constants";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:12:" * functions";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:10:" * classes";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:22:"\EasyInputs\EasyInputs";O:40:"phpDocumentor\Descriptor\ClassDescriptor":19:{s:9:" * parent";s:0:"";s:13:" * implements";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:11:" * abstract";b:0;s:8:" * final";b:0;s:12:" * constants";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:13:" * properties";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:4:"Form";O:43:"phpDocumentor\Descriptor\PropertyDescriptor":16:{s:9:" * parent";r:122;s:8:" * types";N;s:10:" * default";s:4:"null";s:9:" * static";b:0;s:13:" * visibility";s:6:"public";s:8:" * fqsen";s:28:"\EasyInputs\EasyInputs::Form";s:7:" * name";s:4:"Form";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:47;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:3:"var";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:42:"phpDocumentor\Descriptor\Tag\VarDescriptor":5:{s:15:" * variableName";s:0:"";s:8:" * types";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{i:0;O:51:"phpDocumentor\Descriptor\Type\UnknownTypeDescriptor":1:{s:7:" * name";s:16:"\EasyInputs\Form";}i:1;O:51:"phpDocumentor\Descriptor\Type\UnknownTypeDescriptor":1:{s:7:" * name";s:4:"null";}}}s:7:" * name";s:3:"var";s:14:" * description";s:0:"";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:40:"phpDocumentor\Descriptor\Validator\Error":4:{s:11:" * severity";s:5:"error";s:7:" * code";s:13:"PPC:ERR-50007";s:7:" * line";i:47;s:10:" * context";a:1:{i:0;s:5:"$Form";}}}}s:19:" * inheritedElement";N;}}}s:10:" * methods";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:11:"__construct";O:41:"phpDocumentor\Descriptor\MethodDescriptor":17:{s:9:" * parent";r:122;s:11:" * abstract";b:0;s:8:" * final";b:0;s:9:" * static";b:0;s:13:" * visibility";s:6:"public";s:12:" * arguments";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{s:5:"$args";O:43:"phpDocumentor\Descriptor\ArgumentDescriptor":16:{s:9:" * method";r:173;s:8:" * types";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:51:"phpDocumentor\Descriptor\Type\UnknownTypeDescriptor":1:{s:7:" * name";s:5:"array";}}}s:10:" * default";N;s:14:" * byReference";b:0;s:13:" * isVariadic";b:0;s:8:" * fqsen";s:0:"";s:7:" * name";s:5:"$args";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:0:"";s:14:" * description";s:335:"An array of arguments that instantiates the Form
class. Minimally, this array needs to include a 'name', and preferably
also a 'type' value. The name is intended to be HTML compatible and is
used for certain values unless overridden. The type must be either
meta, setting or custom, correlating to the types of supported form
elements.";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:19:" * inheritedElement";N;}}}s:8:" * fqsen";s:37:"\EasyInputs\EasyInputs::__construct()";s:7:" * name";s:11:"__construct";s:12:" * namespace";N;s:10:" * package";s:0:"";s:10:" * summary";s:8:"Giddyup.";s:14:" * description";s:386:"This function constructs our EasyInputs class for use in WordPress. Each
time a new instance of EasyInputs is created, a new Form class is
created. While not all WordPress forms require actual &lt;form&gt; tags,
the Form class acts as our model to represent the overall form. It
defines what kind of data we're handling, a default name to be applied to
the data and a few other details.";s:17:" * fileDescriptor";N;s:7:" * line";i:66;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:2:{s:5:"param";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:44:"phpDocumentor\Descriptor\Tag\ParamDescriptor":5:{s:15:" * variableName";s:5:"$args";s:8:" * types";r:183;s:7:" * name";s:5:"param";s:14:" * description";s:335:"An array of arguments that instantiates the Form
class. Minimally, this array needs to include a 'name', and preferably
also a 'type' value. The name is intended to be HTML compatible and is
used for certain values unless overridden. The type must be either
meta, setting or custom, correlating to the types of supported form
elements.";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:6:"return";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:45:"phpDocumentor\Descriptor\Tag\ReturnDescriptor":4:{s:8:" * types";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:51:"phpDocumentor\Descriptor\Type\UnknownTypeDescriptor":1:{s:7:" * name";s:4:"void";}}}s:7:" * name";s:6:"return";s:14:" * description";s:0:"";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:19:" * inheritedElement";N;}}}s:13:" * usedTraits";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:8:" * fqsen";s:22:"\EasyInputs\EasyInputs";s:7:" * name";s:10:"EasyInputs";s:12:" * namespace";s:11:"\EasyInputs";s:10:" * package";s:10:"EasyInputs";s:10:" * summary";s:47:"Error-free HTML form and input template engine.";s:14:" * description";s:333:"EasyInputs provides an error-free universal means of generating HTML form
inputs. EasyInputs is a developers-only plugin that provides a helper for
generating form inputs. It provides objects that represent both the Form and
the Input, standarizing how your HTML form elements are created, speeding
development of plugins and themes.";s:17:" * fileDescriptor";r:1;s:7:" * line";i:42;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:6:{s:8:"category";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:38:"phpDocumentor\Descriptor\TagDescriptor":3:{s:7:" * name";s:8:"category";s:14:" * description";s:9:"Wordpress";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:7:"package";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:38:"phpDocumentor\Descriptor\TagDescriptor":3:{s:7:" * name";s:7:"package";s:14:" * description";s:10:"EasyInputs";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:6:"author";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:45:"phpDocumentor\Descriptor\Tag\AuthorDescriptor":3:{s:7:" * name";s:6:"author";s:14:" * description";s:50:"Thomas J Belknap <tbelknap@holisticnetworking.net>";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:7:"license";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:38:"phpDocumentor\Descriptor\TagDescriptor":3:{s:7:" * name";s:7:"license";s:14:" * description";s:14:"GPLv2 or later";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:4:"link";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:43:"phpDocumentor\Descriptor\Tag\LinkDescriptor":4:{s:7:" * link";s:52:"http://holisticnetworking.net/easy-inputs-wordpress/";s:7:" * name";s:4:"link";s:14:" * description";s:52:"http://holisticnetworking.net/easy-inputs-wordpress/";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:10:"subpackage";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:19:" * inheritedElement";N;}}}s:13:" * interfaces";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:9:" * traits";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:10:" * markers";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:8:" * fqsen";s:0:"";s:7:" * name";s:15:"easy-inputs.php";s:12:" * namespace";N;s:10:" * package";s:10:"EasyInputs";s:10:" * summary";s:34:"A WordPress Forms template engine.";s:14:" * description";s:0:"";s:17:" * fileDescriptor";N;s:7:" * line";i:0;s:7:" * tags";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:5:{s:7:"package";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:38:"phpDocumentor\Descriptor\TagDescriptor":3:{s:7:" * name";s:7:"package";s:14:" * description";s:10:"EasyInputs";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:6:"author";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:45:"phpDocumentor\Descriptor\Tag\AuthorDescriptor":3:{s:7:" * name";s:6:"author";s:14:" * description";s:50:"Thomas J Belknap <tbelknap@holisticnetworking.net>";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:7:"license";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:38:"phpDocumentor\Descriptor\TagDescriptor":3:{s:7:" * name";s:7:"license";s:14:" * description";s:14:"GPLv2 or later";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:4:"link";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:1:{i:0;O:43:"phpDocumentor\Descriptor\Tag\LinkDescriptor":4:{s:7:" * link";s:52:"http://holisticnetworking.net/easy-inputs-wordpress/";s:7:" * name";s:4:"link";s:14:" * description";s:52:"http://holisticnetworking.net/easy-inputs-wordpress/";s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}}s:10:"subpackage";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}}}s:9:" * errors";O:35:"phpDocumentor\Descriptor\Collection":1:{s:8:" * items";a:0:{}}s:19:" * inheritedElement";N;}