| ->get() (Previous) | (Next) {Child Class}::staticGet() | ||||
| |
|||||
|
|||||
| Aviso |
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).
string $class - class name
string $key - column (or value if only 2 paramaters are given)
mixed $value - value
Tabla 35-1. Posibles valores de PEAR_Error
| 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" |
Ejemplo 35-1. Simple fetch of data based on Primary Key
|
| ->get() (Previous) | (Next) {Child Class}::staticGet() | ||||||||
| |
|||||||||
|
|||||||||