Beispiel #1
0
 /**
  * Magic function called at serialize() time.
  *
  * We use this to drop a couple process-specific references
  * from DB_DataObject which can cause trouble in future
  * processes.
  *
  * @return array of variable names to include in serialization.
  */
 function __sleep()
 {
     $vars = parent::__sleep();
     $skip = array('_profile');
     return array_diff($vars, $skip);
 }
Beispiel #2
0
 /**
  * Magic function called at serialize() time.
  *
  * We use this to drop a couple process-specific references
  * from DB_DataObject which can cause trouble in future
  * processes.
  *
  * @return array of variable names to include in serialization.
  */
 function __sleep()
 {
     $vars = parent::__sleep();
     $skip = array('_profile', '_groups', '_attachments', '_faves', '_replies', '_repeats');
     return array_diff($vars, $skip);
 }
Beispiel #3
0
 /**
  * Magic function called at serialize() time.
  *
  * We use this to drop a couple process-specific references
  * from DB_DataObject which can cause trouble in future
  * processes.
  *
  * @return array of variable names to include in serialization.
  */
 function __sleep()
 {
     $vars = parent::__sleep();
     $skip = array('_user', '_group');
     return array_diff($vars, $skip);
 }