Página principal
Páginas relacionadas
Módulos
Estructuras de Datos
Archivos
load
(
$id
)
Loads an object given its identifier.
Devuelve
IcesDBObject|boolean The loaded object on success or FALSE if object can not be loaded.
Hace referencia a
$cache
y
loadFromRecord()
.
41
{
42
if
(!isset(
IcesSerializer::$cache
[$this->classname])) {
43
$cache
[$this->classname] = array();
44
}
45
if
(!isset(
IcesSerializer::$cache
[$this->classname][
'id'
])) {
46
$cache
[$this->classname][
'id'
] = array();
47
}
48
if
(!isset(
IcesSerializer::$cache
[$this->classname][
'id'
][$id])) {
49
$record = db_select($this->table,
't'
)->fields(
't'
)->condition(
'id'
, $id)->execute()->fetchAssoc();
50
if
($record === FALSE) {
51
return
FALSE;
52
}
53
IcesSerializer::$cache
[$this->classname][
'id'
][$id] = $this->
loadFromRecord
($record);
54
}
55
return
IcesSerializer::$cache
[$this->classname][
'id'
][$id];
56
}
IcesSerializer\$cache
static $cache
cache array.
Definition:
common.db.logic.inc:27
IcesSerializer\loadFromRecord
loadFromRecord($record)
Loads a IcesDBObject from it record.
Definition:
common.db.logic.inc:80
IcesSerializer
Generado el Martes, 1 de Noviembre de 2016 16:42:26 por
1.8.8