preSerialize() protected method

Override this method if you want to serialize custom data in subclasses.
protected preSerialize ( array &$data )
$data array The data to serialize. Add custom data at the end of the array.
コード例 #1
0
 protected function preSerialize(array &$data)
 {
     parent::preSerialize($data);
     $data[] = $this->filesystemPath;
 }
コード例 #2
0
ファイル: LinkResource.php プロジェクト: puli/repository
 protected function preSerialize(array &$data)
 {
     parent::preSerialize($data);
     $data[] = $this->targetPath;
 }