| 1 |
<?php defined('ABSPATH') or die; |
| 2 |
|
| 3 |
/* This file is property of Pixel Grade Media. You may NOT copy, or redistribute |
| 4 |
* it. Please see the license that came with your copy for more information. |
| 5 |
*/ |
| 6 |
|
| 7 |
/** |
| 8 |
* @package pixcustomify |
| 9 |
* @category core |
| 10 |
* @author Pixel Grade Team |
| 11 |
* @copyright (c) 2013, Pixel Grade Media |
| 12 |
*/ |
| 13 |
interface PixCustomifyForm extends PixCustomifyHTMLElement { |
| 14 |
|
| 15 |
/** |
| 16 |
* @return static $this |
| 17 |
*/ |
| 18 |
function addtemplatepath($path); |
| 19 |
|
| 20 |
/** |
| 21 |
* @return PixCustomifyFormField |
| 22 |
*/ |
| 23 |
function field($fieldname); |
| 24 |
|
| 25 |
/** |
| 26 |
* @return static $this |
| 27 |
*/ |
| 28 |
function errors($errors); |
| 29 |
|
| 30 |
/** |
| 31 |
* @param string field name |
| 32 |
* @return array error keys with messages |
| 33 |
*/ |
| 34 |
function errors_for($fieldname); |
| 35 |
|
| 36 |
/** |
| 37 |
* Autocomplete meta object passed on by the processor. |
| 38 |
* |
| 39 |
* @param PixCustomifyMeta autocomplete values |
| 40 |
* @return static $this |
| 41 |
*/ |
| 42 |
function autocomplete(PixCustomifyMeta $autocomplete); |
| 43 |
|
| 44 |
/** |
| 45 |
* Retrieves the value registered for auto-complete. This will not fallback |
| 46 |
* to the default value set in the configuration since fields are |
| 47 |
* responsible for managing their internal complexity. |
| 48 |
* |
| 49 |
* Typically the autocomplete values are what the processor passes on to |
| 50 |
* the form. |
| 51 |
* |
| 52 |
* @return mixed |
| 53 |
*/ |
| 54 |
function autovalue($key, $default = null); |
| 55 |
|
| 56 |
/** |
| 57 |
* @return string |
| 58 |
*/ |
| 59 |
function startform(); |
| 60 |
|
| 61 |
/** |
| 62 |
* @return string |
| 63 |
*/ |
| 64 |
function endform(); |
| 65 |
|
| 66 |
/** |
| 67 |
* @param string template path |
| 68 |
* @param array configuration |
| 69 |
* @return string |
| 70 |
*/ |
| 71 |
function fieldtemplate($templatepath, $conf = array()); |
| 72 |
|
| 73 |
} # interface |
| 74 |
|