Exemplo n.º 1
0
 public function saveToFile($object, $filename)
 {
     if (!isset($object)) {
         return false;
     }
     global $Out;
     $path = $this->getDataRoot() . '/' . $filename;
     //$Out->append('$path = '.$path);
     FileSystem::putFileContents($path, $object, true, true);
 }
Exemplo n.º 2
0
 public static function serializeToServerFolder($object, $filePath, $server)
 {
     if (!isset($object)) {
         return false;
     }
     FileSystem::putFileContents(self::createServerPath($server) . '/' . $filePath, serialize($object), true, true);
     return true;
 }