forms/DatetimeField.php 1 location
|
@@ 101-109 (lines=9) @@
|
| 98 |
|
* @param array $properties |
| 99 |
|
* @return string |
| 100 |
|
*/ |
| 101 |
|
public function FieldHolder($properties = array()) { |
| 102 |
|
$config = array( |
| 103 |
|
'datetimeorder' => $this->getConfig('datetimeorder'), |
| 104 |
|
); |
| 105 |
|
$config = array_filter($config); |
| 106 |
|
$this->addExtraClass(Convert::raw2json($config)); |
| 107 |
|
|
| 108 |
|
return parent::FieldHolder($properties); |
| 109 |
|
} |
| 110 |
|
|
| 111 |
|
/** |
| 112 |
|
* @param array $properties |
forms/TimeField.php 1 location
|
@@ 69-76 (lines=8) @@
|
| 66 |
|
parent::__construct($name,$title,$value); |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
public function Field($properties = array()) { |
| 70 |
|
$config = array( |
| 71 |
|
'timeformat' => $this->getConfig('timeformat') |
| 72 |
|
); |
| 73 |
|
$config = array_filter($config); |
| 74 |
|
$this->addExtraClass(Convert::raw2json($config)); |
| 75 |
|
return parent::Field($properties); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
public function Type() { |
| 79 |
|
return 'time text'; |