| @@ 537-539 (lines=3) @@ | ||
| 534 | */ |
|
| 535 | public function useNameAsDefaultLabel($append = ':') |
|
| 536 | { |
|
| 537 | if (!isset($this['label'])) { |
|
| 538 | $this['label'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))).$append; |
|
| 539 | } |
|
| 540 | } |
|
| 541 | ||
| 542 | ||
| @@ 551-553 (lines=3) @@ | ||
| 548 | */ |
|
| 549 | public function useNameAsDefaultValue() |
|
| 550 | { |
|
| 551 | if (!isset($this['value'])) { |
|
| 552 | $this['value'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))); |
|
| 553 | } |
|
| 554 | } |
|
| 555 | ||
| 556 | ||