You are here

function DB::isConnection in Flickr API 5

Determines if a value is a DB_<driver> object

Parameters

mixed $value the value to test:

Return value

bool whether $value is a DB_<driver> object

File

phpFlickr/PEAR/DB.php, line 602

Class

DB
Database independent query interface

Code

function isConnection($value) {
  return is_object($value) && is_subclass_of($value, 'db_common') && method_exists($value, 'simpleQuery');
}