public function retrieveFromFile($filename) { $content = FileSystem::getFileContents($this->getDataRoot() . '/' . $filename); if (!isset($content)) { return null; } return $content; }
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; }