PHP Doku:: Fetches the object pointed to by a reference - mongodbref.get.html
Aktuelle Suchanfrage: 21009b70229598c6a80eef8b45bf282b-watermark-merged png - 10 Treffer
  1 Imagick::steganoImage
Hides a digital watermark within the image - function.imagick-steganoimage.html
  2 event_buffer_watermark_set
Set the watermarks for read and write events - function.event-buffer-watermark-set.html
  3 xdiff_string_merge3
Merge 3 strings into one - function.xdiff-string-merge3.html
  4 Imagick::mergeImageLayers
Merges image layers - function.imagick-mergeimagelayers.html
  5 http_build_url
Build a URL - function.http-build-url.html
  6 xdiff_file_merge3
Merge 3 files into one - function.xdiff-file-merge3.html
  7 imagecopymerge
Copy and merge part of an image - function.imagecopymerge.html
  8 Vordefinierte Konstanten
Vordefinierte Konstanten - svn.constants.html
  9 Image Processing (ImageMagick)
Image Processing (ImageMagick) - book.imagick.html
 10 The Imagick class
The Imagick class - class.imagick.html

Bisherige Suchanfragen: (4) anzeigen

Verlauf / Chronik / History: (14) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzDatenbankerweiterungenAnbieterspezifische DatenbankerweiterungenMongoDB Native DriverTypesThe MongoDBRef classMongoDBRef::get

Ein Service von Reinhard Neidl - Webprogrammierung.

The MongoDBRef class

<<MongoDBRef::create

MongoDBRef::isRef>>

MongoDBRef::get

(PECL mongo >= 0.9.0)

MongoDBRef::getFetches the object pointed to by a reference

Beschreibung

public static array MongoDBRef::get ( MongoDB $db , array $ref )

Parameter-Liste

db

Database to use.

ref

Reference to fetch.

Rückgabewerte

Returns the document to which the reference refers or NULL if the document does not exist (the reference is broken).

Beispiele

Beispiel #1 MongoCollection::createDBRef() example

<?php

// get $person out of the db
$person $people->findOne();

// dereference the address
$address MongoDBRef::get($people->db$person['address']);

?>

Siehe auch


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