GoLang MongoDBRef::isRef

request it (292)
GoLang replacement for PHP's MongoDBRef::isRef [edit | history]



Do you know a GoLang replacement for PHP's MongoDBRef::isRef? Write it!

PHP MongoDBRef::isRef

PHP original manual for MongoDBRef::isRef [ show | php.net ]

MongoDBRef::isRef

(PECL mongo >= 0.9.0)

MongoDBRef::isRefChecks if an array is a database reference

Description

public static bool MongoDBRef::isRef ( mixed $ref )

This method does not actually follow the reference, so it does not determine if it is broken or not. It merely checks that ref is in valid database reference format (in that it is an object or array with $ref and $id fields).

Parameters

ref

Array or object to check.

Return Values

Returns TRUE on success or FALSE on failure.