Prado\Collections\TMap::_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->_d === array()) {
            $exprops[] = "TMap_d";
        }
        if ($this->_r === false) {
            $exprops[] = "TMap_r";
        }
    }

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->_caseSensitive === false) {
         $exprops[] = "TAttributeCollection_caseSensitive";
     }
 }