ArininAV

DB_DataObject::staticGet()

DB_DataObject::staticGet() -- Simple Get (Select) request, abbreviated and Autoload.

Synopsis

mixed DB_DataObject::staticGet (string $class, mixed $key or $value [, mixed $value])

Описание

The static method is similar to the get request, however it does not require the initial instantiation of the class. staticGet will also auto load the class. staticGet() can also cache the results, (see configuration)

Параметр

Возвращаемое значение

object mixed - FALSE or the object

Throws

Таблица 32-1. Возможные значения PEAR_Error

Error codeError messageMeaningSolution
DB_DATAOBJECT_ERROR_NOCLASS"could not autoload $class"  
DB_DATAOBJECT_ERROR_NOCLASS"Error creating $newclass"  
DB_DATAOBJECT_ERROR_NODATA"No Data return from get $key $value"  

Заметка

This method must be called statically.

Пример