@@ 420-422 (lines=3) @@ | ||
417 | */ |
|
418 | public function useNameAsDefaultLabel($append = ':') |
|
419 | { |
|
420 | if (!isset($this['label'])) { |
|
421 | $this['label'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))).$append; |
|
422 | } |
|
423 | } |
|
424 | ||
425 | ||
@@ 434-436 (lines=3) @@ | ||
431 | */ |
|
432 | public function useNameAsDefaultValue() |
|
433 | { |
|
434 | if (!isset($this['value'])) { |
|
435 | $this['value'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))); |
|
436 | } |
|
437 | } |
|
438 | ||
439 |