AdminPageFramework_Form_View___Attribute_FieldContainer_Base::_getFormattedAttributes PHP Метод

_getFormattedAttributes() защищенный Метод

protected _getFormattedAttributes ( )
    protected function _getFormattedAttributes()
    {
        $_aAttributes = $this->uniteArrays($this->getElementAsArray($this->aArguments, array('attributes', $this->sContext)), $this->aAttributes + $this->_getAttributes());
        $_aAttributes['class'] = $this->getClassAttribute($this->getElement($_aAttributes, 'class', array()), $this->getElement($this->aArguments, array('class', $this->sContext), array()));
        return $_aAttributes;
    }

Usage Example

 protected function _getFormattedAttributes()
 {
     $_aAttributes = parent::_getFormattedAttributes();
     if ($this->aArguments['hidden']) {
         $_aAttributes['style'] = $this->getStyleAttribute($this->getElement($_aAttributes, 'style', array()), 'display:none');
     }
     return $_aAttributes;
 }
AdminPageFramework_Form_View___Attribute_FieldContainer_Base