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