PHP Doku:: Returns this collection s name - mongocollection.getname.html

Verlauf / Chronik / History: (3) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenMongoDB Native DriverCore ClassesThe MongoCollection classMongoCollection::getName

Ein Service von Reinhard Neidl - Webprogrammierung.

The MongoCollection class

<<MongoCollection::getIndexInfo

MongoCollection::getSlaveOkay>>

MongoCollection::getName

(PECL mongo >=0.9.0)

MongoCollection::getNameReturns this collection's name

Beschreibung

public string MongoCollection::getName ( void )

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

Returns the name of this collection.

Beispiele

Beispiel #1 MongoCollection::getName() example

<?php

$m 
= new Mongo();
$c $m->foo->bar->baz;

echo 
"Working with collection " $c->getName() . ".\n";

// the full namespace is given by the MongoCollection::__toString() method
echo "Working in namespace $c.\n";

?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

Working with collection bar.baz.
Working in namespace foo.bar.baz.


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



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",...)