@@ 559-561 (lines=3) @@ | ||
556 | */ |
|
557 | public function useNameAsDefaultLabel($append = ':') |
|
558 | { |
|
559 | if (!isset($this['label'])) { |
|
560 | $this['label'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))).$append; |
|
561 | } |
|
562 | } |
|
563 | ||
564 | ||
@@ 573-575 (lines=3) @@ | ||
570 | */ |
|
571 | public function useNameAsDefaultValue() |
|
572 | { |
|
573 | if (!isset($this['value'])) { |
|
574 | $this['value'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))); |
|
575 | } |
|
576 | } |
|
577 | ||
578 |