PHP Doku:: Removes files from the collections - mongogridfs.remove.html

Verlauf / Chronik / History: (3) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenMongoDB Native DriverGridFS ClassesThe MongoGridFS classMongoGridFS::remove

Ein Service von Reinhard Neidl - Webprogrammierung.

The MongoGridFS class

<<MongoGridFS::put

MongoGridFS::storeBytes>>

MongoGridFS::remove

(PECL mongo >=0.9.0)

MongoGridFS::removeRemoves files from the collections

Beschreibung

public boolean MongoGridFS::remove ([ array $criteria = array() [, array $options = array() ]] )

Parameter-Liste

query

The filename or criteria for which to search.

options

Options for the remove. Valid options are:

  • "safe"

    Check that the remove succeeded.

Rückgabewerte

Returns if the removal was successfully sent to the database.


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
fhagard at lightcube dot us
8.04.2010 15:58
To ensure that a remove occurred successfully use MongoDB::lastError(). Currently MongoGridFS::remove will return even if the remove failed.



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)