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; } }
private function doSerialize($object) { $serialized = PiconSerializer::serialize($object); return PiconSerializer::unserialize($serialized); }