예제 #1
0
 private function internalLoadResource($directory, $name)
 {
     $fileName = $this->getFileName($directory, $name);
     if (file_exists($fileName)) {
         $contents = file_get_contents($fileName);
         return PiconSerializer::unserialize($contents);
     } else {
         return null;
     }
 }
예제 #2
0
 private function doSerialize($object)
 {
     $serialized = PiconSerializer::serialize($object);
     return PiconSerializer::unserialize($serialized);
 }