| 1 |
<?php defined('ABSPATH') or die; |
| 2 |
|
| 3 |
/** |
| 4 |
* @package pixcustomify |
| 5 |
* @category core |
| 6 |
* @author Pixelgrade Team |
| 7 |
* @copyright (c) 2013, Pixelgrade |
| 8 |
*/ |
| 9 |
interface PixCustomifyFormField extends PixCustomifyHTMLElement { |
| 10 |
|
| 11 |
/** |
| 12 |
* @return boolean true if field has errors |
| 13 |
*/ |
| 14 |
function has_errors(); |
| 15 |
|
| 16 |
/** |
| 17 |
* @return string first error message |
| 18 |
*/ |
| 19 |
function one_error(); |
| 20 |
|
| 21 |
/** |
| 22 |
* Render field emulates wordpress template behaviour. First searches for |
| 23 |
* name, then searches field type and so on. |
| 24 |
* |
| 25 |
* @return string |
| 26 |
*/ |
| 27 |
function render(); |
| 28 |
|
| 29 |
} # interface |
| 30 |
|