DB_DataObject::staticGet()

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

Referentiesamenvatting

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

Beschrijving

Waarschuwing

This method is depreciated, it is recommended to use ::factory() and ->get()

The static method is a combination of factory and get(). staticGet() will cache the returned data in a global variable for quick access within the same request (any data modification query will clear the cache).

Parameter

Return waarde

object mixed - FALSE or the object

Throws

Tabel 34-1. Mogelijke PEAR_Error waarden

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"  

Note

This method must be called statically.

Voorbeeld