public function getName($arrayName = null)
    {
        if ($arrayName === null) {
            $arrayName = $this->arrayName;
        }

        if ($arrayName) {
            return $arrayName.'['.implode('][', HtmlHelper::nameToArray($this->fieldName)).']';
        }

        return $this->fieldName;
    }
public function getName($arrayName = null)
    {
        if ($arrayName === null) {
            $arrayName = $this->arrayName;
        }

        if ($arrayName) {
            return $arrayName.'['.implode('][', HtmlHelper::nameToArray($this->fieldName)).']';
        }

        return $this->fieldName;
    }
public function getName ( $ arrayName = null ) { if ( $ arrayName === null ) { $ arrayName = $ this -> arrayName ; } if ( $ arrayName ) { return $ arrayName . '[' . implode ( '][' , HtmlHelper :: nameToArray ( $ this -> fieldName ) ) . ']' ; } return $ this -> fieldName ; }
Returns a value suitable for the field name property.
@param  string $arrayName Specify a custom array name
@return string
Returns a value suitable for the field name property .