@@ 425-427 (lines=3) @@ | ||
422 | */ |
|
423 | public function useNameAsDefaultLabel($append = ':') |
|
424 | { |
|
425 | if (!isset($this['label'])) { |
|
426 | $this['label'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))).$append; |
|
427 | } |
|
428 | } |
|
429 | ||
430 | ||
@@ 439-441 (lines=3) @@ | ||
436 | */ |
|
437 | public function useNameAsDefaultValue() |
|
438 | { |
|
439 | if (!isset($this['value'])) { |
|
440 | $this['value'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))); |
|
441 | } |
|
442 | } |
|
443 | ||
444 |