You are here

function DB::isError in Flickr API 5

Determines if a variable is a DB_Error object

Parameters

mixed $value the variable to check:

Return value

bool whether $value is DB_Error object

25 calls to DB::isError()
DB::connect in phpFlickr/PEAR/DB.php
Create a new DB object including a connection to the specified database
DB::errorMessage in phpFlickr/PEAR/DB.php
Return a textual error message for a DB error code
DB::factory in phpFlickr/PEAR/DB.php
Create a new DB object for the specified database type but don't connect to the database
DB_common::autoExecute in phpFlickr/PEAR/DB/common.php
Automaticaly generates an insert or update query and call prepare() and execute() with it
DB_common::autoPrepare in phpFlickr/PEAR/DB/common.php
Automaticaly generates an insert or update query and pass it to prepare()

... See full list

File

phpFlickr/PEAR/DB.php, line 587

Class

DB
Database independent query interface

Code

function isError($value) {
  return is_a($value, 'DB_Error');
}