Prado\TComponent::__sleep PHP Метод

__sleep() публичный Метод

Do not call this method. This is a PHP magic method that will be called automatically prior to any serialization.
public __sleep ( )
    public function __sleep()
    {
        $a = (array) $this;
        $a = array_keys($a);
        $exprops = array();
        $this->_getZappableSleepProps($exprops);
        return array_diff($a, $exprops);
    }

Usage Example

Пример #1
0
 public function __sleep()
 {
     $exprops = array();
     $cn = __CLASS__;
     if (!$this->_parameterNames or !$this->_parameterNames->getCount()) {
         $exprops[] = "{$cn}_parameterNames";
     }
     if (!$this->_parameterValues or !$this->_parameterValues->getCount()) {
         $exprops[] = "{$cn}_parameterValues";
     }
     return array_diff(parent::__sleep(), $exprops);
 }
All Usage Examples Of Prado\TComponent::__sleep