Exemplo n.º 1
0
 public function retrieveFromFile($filename)
 {
     $content = FileSystem::getFileContents($this->getDataRoot() . '/' . $filename);
     if (!isset($content)) {
         return null;
     }
     return $content;
 }
Exemplo n.º 2
0
 public static function unSerializeFromServerFolder($filePath, $server)
 {
     if (!isset($filePath) || !isset($server)) {
         return null;
     }
     $contents = FileSystem::getFileContents(self::createServerPath($server) . '/' . $filePath);
     if (!isset($contents)) {
         return null;
     }
     $object = unserialize($contents);
     return $object;
 }