public function getName($blnPlain = false)
    {
        $strReturn = "";

        if ($blnPlain) {
            $strReturn = $this->__name;
        } else {
            switch ($this->__type) {
                case ValidForm::VFORM_RADIO_LIST:
                    $strReturn = $this->__name;

                    break;
                case ValidForm::VFORM_CHECK_LIST:
                    $strReturn = (strpos($this->__name, "[]") === false) ? $this->__name . "[]" : $this->__name;

                    break;
            }
        }

        return $strReturn;
    }
public function getName($blnPlain = false)
    {
        $strReturn = "";

        if ($blnPlain) {
            $strReturn = $this->__name;
        } else {
            switch ($this->__type) {
                case ValidForm::VFORM_RADIO_LIST:
                    $strReturn = $this->__name;

                    break;
                case ValidForm::VFORM_CHECK_LIST:
                    $strReturn = (strpos($this->__name, "[]") === false) ? $this->__name . "[]" : $this->__name;

                    break;
            }
        }

        return $strReturn;
    }
public function getName ( $ blnPlain = false ) { $ strReturn = "" ; if ( $ blnPlain ) { $ strReturn = $ this -> __name ; } else { switch ( $ this -> __type ) { case ValidForm :: VFORM_RADIO_LIST : $ strReturn = $ this -> __name ; break ; case ValidForm :: VFORM_CHECK_LIST : $ strReturn = ( strpos ( $ this -> __name , "[]" ) === false ) ? $ this -> __name . "[]" : $ this -> __name ; break ; } } return $ strReturn ; }
Get the element's name

This automatically strips off the [] from a checkbox ID

@see \ValidFormBuilder\Base::getName()
@param bool $blnPlain If false, [] will be stripped from a checklist group name
@return string The element's name
Get the element s name