{Child Class}::staticGet()

{Child Class}::staticGet() -- Simple Get (Select) request, abbreviated (autogenerated)

Referentiesamenvatting

object {Child Class}::staticGet (mixed $key or $value [, mixed $value])

Beschrijving

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

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