| 1 | <?php |
||
| 19 | class Wordlift_Metabox_Field_Duration extends WL_Metabox_Field_date { |
||
| 20 | |||
| 21 | /** |
||
| 22 | * {@inheritdoc} |
||
| 23 | */ |
||
| 24 | public function __construct( $args ) { |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Sanitize a single value. Called from $this->sanitize_data. Default sanitization excludes empty values. |
||
| 35 | * make sure the value is either empty, an integer representing valid number of minutes |
||
| 36 | * or an HH:MM time format. |
||
| 37 | * |
||
| 38 | * @param mixed $value The value being sanitized. |
||
| 39 | * |
||
| 40 | * @return mixed Returns sanitized value, or null. |
||
| 41 | */ |
||
| 42 | public function sanitize_data_filter( $value ) { |
||
| 57 | |||
| 58 | } |
||
| 59 |