Prado\TComponent::_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)
    {
        if ($this->_listeningenabled === false) {
            $exprops[] = "TComponent_listeningenabled";
        }
        if ($this->_behaviorsenabled === true) {
            $exprops[] = "TComponent_behaviorsenabled";
        }
        if ($this->_e === array()) {
            $exprops[] = "TComponent_e";
        }
        if ($this->_m === null) {
            $exprops[] = "TComponent_m";
        }
    }

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->_d === array()) {
         $exprops[] = "TMap_d";
     }
     if ($this->_r === false) {
         $exprops[] = "TMap_r";
     }
 }
All Usage Examples Of Prado\TComponent::_getZappableSleepProps