示例#1
0
 /**
  * Called to prepare the object for serialization
  *
  * @return string[] list of properties to serialize
  */
 public function __sleep()
 {
     $properties = array('contents', 'contentsRead');
     return array_merge($properties, parent::__sleep());
 }
示例#2
0
 /**
  * Called to prepare the object for serialization
  *
  * @return string[] list of properties to serialize
  */
 public function __sleep()
 {
     $properties = array('data', 'dataRead', 'dataEncoded', 'binary', 'size');
     if ($this->dataRead && strlen($this->data) > GitPHP_Blob::LargeBlobSize) {
         $this->data = null;
         $this->dataRead = false;
     }
     if ($this->dataRead && !$this->dataEncoded) {
         $this->EncodeData();
     }
     return array_merge($properties, parent::__sleep());
 }
示例#3
0
 /**
  * __sleep
  *
  * Called to prepare the object for serialization
  *
  * @access public
  * @return array list of properties to serialize
  */
 public function __sleep()
 {
     if (!$this->contentsReferenced) {
         $this->ReferenceContents();
     }
     $properties = array('contents', 'contentsRead', 'contentsReferenced');
     return array_merge($properties, parent::__sleep());
 }
示例#4
0
 /**
  * __sleep
  *
  * Called to prepare the object for serialization
  *
  * @access public
  * @return array list of properties to serialize
  */
 public function __sleep()
 {
     $properties = array('data', 'dataRead');
     return array_merge($properties, parent::__sleep());
 }