Prado\Web\UI\WebControls\TStyle::_getZappableSleepProps PHP Метод

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

Reimplement in derived classes to add new variables, but remember to also to call the parent implementation first.
protected _getZappableSleepProps ( &$exprops )
    protected function _getZappableSleepProps(&$exprops)
    {
        parent::_getZappableSleepProps($exprops);
        if ($this->_fields === array()) {
            $exprops[] = "TStyle_fields";
        }
        if ($this->_font === null) {
            $exprops[] = "TStyle_font";
        }
        if ($this->_class === null) {
            $exprops[] = "TStyle_class";
        }
        if ($this->_customStyle === null) {
            $exprops[] = "TStyle_customStyle";
        }
        if ($this->_displayStyle === 'Fixed') {
            $exprops[] = "TStyle_displayStyle";
        }
    }

Usage Example

Пример #1
0
 /**
  * Returns an array with the names of all variables of this object that should NOT be serialized
  * because their value is the default one or useless to be cached for the next page loads.
  * Reimplement in derived classes to add new variables, but remember to  also to call the parent
  * implementation first.
  */
 protected function _getZappableSleepProps(&$exprops)
 {
     parent::_getZappableSleepProps($exprops);
     if ($this->_horizontalAlign === null) {
         $exprops[] = "TTableItemStyle_horizontalAlign";
     }
     if ($this->_verticalAlign === null) {
         $exprops[] = "TTableItemStyle_verticalAlign";
     }
     if ($this->_wrap === null) {
         $exprops[] = "TTableItemStyle_wrap";
     }
 }
All Usage Examples Of Prado\Web\UI\WebControls\TStyle::_getZappableSleepProps