_getZappableSleepProps() protected method

Reimplement in derived classes to add new variables, but remember to also to call the parent implementation first.
protected _getZappableSleepProps ( &$exprops )
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";
     }
 }
Example #2
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->_flags === 0) {
         $exprops[] = "TFont_flags";
     }
     if ($this->_name === '') {
         $exprops[] = "TFont_name";
     }
     if ($this->_size === '') {
         $exprops[] = "TFont_size";
     }
 }
Example #3
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->_attributes === null) {
         $exprops[] = "TListItem_attributes";
     }
     if ($this->_text === '') {
         $exprops[] = "TListItem_text";
     }
     if ($this->_value === '') {
         $exprops[] = "TListItem_value";
     }
     if ($this->_enabled === true) {
         $exprops[] = "TListItem_enabled";
     }
     if ($this->_selected === false) {
         $exprops[] = "TListItem_selected";
     }
 }
Example #4
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->_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";
     }
 }