Ejemplo n.º 1
0
 static function storeString($filename, $data)
 {
     $file = @fopen($filename, 'w');
     if ($file) {
         fwrite($file, $data);
         fclose($file);
         eZPackage::applyStorageFilePermissions($filename);
         eZDebugSetting::writeNotice('kernel-ezpackage-store', "Stored file {$filename}", 'eZPackage::storeString');
         return true;
     } else {
         eZDebug::writeError("Failed to write package '{$filename}'");
     }
     return false;
 }