Example #1
0
 function unlink( $filename = false )
 {
     if ( !$filename )
     {
         if ( $this->isOpen() )
             $this->close();
         $filename = $this->FileName;
     }
     $result = eZFileHandler::doUnlink( $filename );
     if ( !$result )
         eZDebug::writeError( "Failed unlinking file " . $filename, __METHOD__ );
     return $result;
 }
Example #2
0
 static function unlink($filename = false)
 {
     if (!$filename) {
         if ($this->isOpen()) {
             $this->close();
         }
         $filename = $this->FileName;
     }
     $result = eZFileHandler::doUnlink($filename);
     if (!$result) {
         eZDebug::writeError("Failed unlinking file " . $filename, 'eZFileHandler::unlink');
     }
     return $result;
 }