DB_DataObject::staticGet() | ->find() |
DB_DataObject | |
PEAR Manual | |
object {Child Class}::staticGet (
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() can optionally cache the results. (see the configuration section)
string $key - column or value if only one parameter is given
mixed $value - value
object mixed - FALSE or the object
Error code | Error message | Meaning | Solution |
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.
Simple fetch of data based on Primary Key
|
DB_DataObject::staticGet() | ->find() |
DB_DataObject | |
PEAR Manual | |