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

Do not call this method. This is a PHP magic method that will be called automatically prior to any serialization.
public __sleep ( )
Пример #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);
 }
Пример #2
0
 /**
  * Close the connection when serializing.
  */
 public function __sleep()
 {
     //		$this->close(); - DO NOT CLOSE the current connection as serializing doesn't neccessarily mean we don't this connection anymore in the current session
     return array_diff(parent::__sleep(), array("TDbConnection_pdo", "TDbConnection_active"));
 }
Пример #3
0
 public function __sleep()
 {
     $exprops = array();
     $cn = 'TParameterProperty';
     if ($this->_typeHandler === null) {
         $exprops[] = "{$cn}_typeHandler";
     }
     if ($this->_type === null) {
         $exprops[] = "{$cn}_type";
     }
     if ($this->_column === null) {
         $exprops[] = "{$cn}_column";
     }
     if ($this->_dbType === null) {
         $exprops[] = "{$cn}_dbType";
     }
     if ($this->_property === null) {
         $exprops[] = "{$cn}_property";
     }
     if ($this->_nullValue === null) {
         $exprops[] = "{$cn}_nullValue";
     }
     return array_diff(parent::__sleep(), $exprops);
 }
Пример #4
0
 public function __sleep()
 {
     $exprops = array();
     $cn = __CLASS__;
     if (!count($this->_selectQueue)) {
         $exprops[] = "{$cn}_selectQueue";
     }
     if (is_null($this->_groupBy)) {
         $exprops[] = "{$cn}_groupBy";
     }
     if (!$this->_IsRowDataFound) {
         $exprops[] = "{$cn}_IsRowDataFound";
     }
     return array_diff(parent::__sleep(), $exprops);
 }
Пример #5
0
 /**
  * Set the statement to null when serializing.
  */
 public function __sleep()
 {
     return array_diff(parent::__sleep(), array("TDbCommand_statement"));
 }
Пример #6
0
 public function __sleep()
 {
     $exprops = array();
     $cn = 'TResultProperty';
     if ($this->_nullValue === null) {
         $exprops[] = "{$cn}_nullValue";
     }
     if ($this->_propertyName === null) {
         $exprops[] = "{$cn}_propertyNama";
     }
     if ($this->_columnName === null) {
         $exprops[] = "{$cn}_columnName";
     }
     if ($this->_columnIndex == -1) {
         $exprops[] = "{$cn}_columnIndex";
     }
     if ($this->_nestedResultMapName === null) {
         $exprops[] = "{$cn}_nestedResultMapName";
     }
     if ($this->_nestedResultMap === null) {
         $exprops[] = "{$cn}_nestedResultMap";
     }
     if ($this->_valueType === null) {
         $exprops[] = "{$cn}_valueType";
     }
     if ($this->_typeHandler === null) {
         $exprops[] = "{$cn}_typeHandler";
     }
     if ($this->_isLazyLoad === false) {
         $exprops[] = "{$cn}_isLazyLoad";
     }
     if ($this->_select === null) {
         $exprops[] = "{$cn}_select";
     }
     return array_diff(parent::__sleep(), $exprops);
 }
 public function __sleep()
 {
     $exprops = array();
     $cn = __CLASS__;
     if (!count($this->_tree)) {
         $exprops[] = "{$cn}_tree";
     }
     if (!count($this->_entries)) {
         $exprops[] = "{$cn}_entries";
     }
     if (!count($this->_list)) {
         $exprops[] = "{$cn}_list";
     }
     return array_diff(parent::__sleep(), $exprops);
 }
Пример #8
0
 /**
  * Prevent __call() method creating __sleep() when serializing.
  */
 public function __sleep()
 {
     return array_diff(parent::__sleep(), array("*_connection"));
 }
Пример #9
0
 public function __sleep()
 {
     $cn = __CLASS__;
     $exprops = array("{$cn}_resultMap");
     if (!$this->_parameterMapName) {
         $exprops[] = "{$cn}_parameterMapName";
     }
     if (!$this->_parameterMap) {
         $exprops[] = "{$cn}_parameterMap";
     }
     if (!$this->_parameterClassName) {
         $exprops[] = "{$cn}_parameterClassName";
     }
     if (!$this->_resultMapName) {
         $exprops[] = "{$cn}_resultMapName";
     }
     if (!$this->_resultMap) {
         $exprops[] = "{$cn}_resultMap";
     }
     if (!$this->_resultClassName) {
         $exprops[] = "{$cn}_resultClassName";
     }
     if (!$this->_cacheModelName) {
         $exprops[] = "{$cn}_cacheModelName";
     }
     if (!$this->_SQL) {
         $exprops[] = "{$cn}_SQL";
     }
     if (!$this->_listClass) {
         $exprops[] = "{$cn}_listClass";
     }
     if (!$this->_typeHandler) {
         $exprops[] = "{$cn}_typeHandler";
     }
     if (!$this->_extendStatement) {
         $exprops[] = "{$cn}_extendStatement";
     }
     if (!$this->_cache) {
         $exprops[] = "{$cn}_cache";
     }
     return array_diff(parent::__sleep(), $exprops);
 }