public function getId($suffix = null)
    {
        $id = 'field';
        if ($this->arrayName) {
            $id .= '-'.$this->arrayName;
        }

        $id .= '-'.$this->fieldName;

        if ($suffix) {
            $id .= '-'.$suffix;
        }

        if ($this->idPrefix) {
            $id = $this->idPrefix . '-' . $id;
        }

        return HtmlHelper::nameToId($id);
    }
public function getId($suffix = null)
    {
        $id = 'field';
        if ($this->arrayName) {
            $id .= '-'.$this->arrayName;
        }

        $id .= '-'.$this->fieldName;

        if ($suffix) {
            $id .= '-'.$suffix;
        }

        if ($this->idPrefix) {
            $id = $this->idPrefix . '-' . $id;
        }

        return HtmlHelper::nameToId($id);
    }
public function getId ( $ suffix = null ) { $ id = 'field' ; if ( $ this -> arrayName ) { $ id .= '-' . $ this -> arrayName ; } $ id .= '-' . $ this -> fieldName ; if ( $ suffix ) { $ id .= '-' . $ suffix ; } if ( $ this -> idPrefix ) { $ id = $ this -> idPrefix . '-' . $ id ; } return HtmlHelper :: nameToId ( $ id ) ; }
Returns a value suitable for the field id property.
@param  string $suffix Specify a suffix string
@return string
Returns a value suitable for the field id property .