| @@ 530-532 (lines=3) @@ | ||
| 527 | */ |
|
| 528 | public function useNameAsDefaultLabel($append = ':') |
|
| 529 | { |
|
| 530 | if (!isset($this['label'])) { |
|
| 531 | $this['label'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))).$append; |
|
| 532 | } |
|
| 533 | } |
|
| 534 | ||
| 535 | ||
| @@ 544-546 (lines=3) @@ | ||
| 541 | */ |
|
| 542 | public function useNameAsDefaultValue() |
|
| 543 | { |
|
| 544 | if (!isset($this['value'])) { |
|
| 545 | $this['value'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))); |
|
| 546 | } |
|
| 547 | } |
|
| 548 | ||
| 549 | ||