public function useNameAsDefaultLabel($append = ':')
    {
        if (!isset($this['label'])) {
            $this['label'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))).$append;
        }
    }
public function useNameAsDefaultLabel($append = ':')
    {
        if (!isset($this['label'])) {
            $this['label'] = ucfirst(strtolower(str_replace(array('-','_'), ' ', $this['name']))).$append;
        }
    }
public function useNameAsDefaultLabel ( $ append = ':' ) { if ( ! isset ( $ this [ 'label' ] ) ) { $ this [ 'label' ] = ucfirst ( strtolower ( str_replace ( array ( '-' , '_' ) , ' ' , $ this [ 'name' ] ) ) ) . $ append ; } }
Use the element name as label if label is not set.

@param string $append a colon as default to the end of the label.

@return void
Use the element name as label if label is not set .