public function setName($strName)
    {
        parent::setName($strName);

        if (is_object($this->__validator)) {
            $this->__validator->setFieldName($strName);
        }
    }
public function setName($strName)
    {
        parent::setName($strName);

        if (is_object($this->__validator)) {
            $this->__validator->setFieldName($strName);
        }
    }
public function setName ( $ strName ) { parent :: setName ( $ strName ) ; if ( is_object ( $ this -> __validator ) ) { $ this -> __validator -> setFieldName ( $ strName ) ; } }
Set a new name for this element

This method also updates the name in the elements Validator instance.

@param string $strName The new name
Set a new name for this element