forms/TimeField.php 1 location
|
@@ 218-224 (lines=7) @@
|
| 215 |
|
* @param String $name Optional, returns the whole configuration array if empty |
| 216 |
|
* @return mixed|array |
| 217 |
|
*/ |
| 218 |
|
public function getConfig($name = null) { |
| 219 |
|
if($name) { |
| 220 |
|
return isset($this->config[$name]) ? $this->config[$name] : null; |
| 221 |
|
} else { |
| 222 |
|
return $this->config; |
| 223 |
|
} |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
/** |
| 227 |
|
* Creates a new readonly field specified below |
forms/DateField.php 1 location
|
@@ 466-472 (lines=7) @@
|
| 463 |
|
* @param String $name Optional, returns the whole configuration array if empty |
| 464 |
|
* @return mixed|array |
| 465 |
|
*/ |
| 466 |
|
public function getConfig($name = null) { |
| 467 |
|
if($name) { |
| 468 |
|
return isset($this->config[$name]) ? $this->config[$name] : null; |
| 469 |
|
} else { |
| 470 |
|
return $this->config; |
| 471 |
|
} |
| 472 |
|
} |
| 473 |
|
} |
| 474 |
|
|
| 475 |
|
/** |
forms/DatetimeField.php 1 location
|
@@ 335-341 (lines=7) @@
|
| 332 |
|
* @param String $name Optional, returns the whole configuration array if empty |
| 333 |
|
* @return mixed |
| 334 |
|
*/ |
| 335 |
|
public function getConfig($name = null) { |
| 336 |
|
if($name) { |
| 337 |
|
return isset($this->config[$name]) ? $this->config[$name] : null; |
| 338 |
|
} else { |
| 339 |
|
return $this->config; |
| 340 |
|
} |
| 341 |
|
} |
| 342 |
|
|
| 343 |
|
public function validate($validator) { |
| 344 |
|
$dateValid = $this->dateField->validate($validator); |