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; }
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; }