Ejemplo n.º 1
0
 /** SELECT $field FROM $table WHERE $idKey = '$id' */
 function getBlob($table, $id, $idKey, $field)
 {
     debug("DB", "getBlob: Table: {$table}, ID: {$id}, IDKey: {$idKey}, Field: {$field}");
     return $this->unescape_bytea(parent::getOne("SELECT {$field} FROM {$table} WHERE {$idKey} = '{$id}'"));
 }
Ejemplo n.º 2
0
 /** Loads a binary object from database. SELECT $field FROM $table WHERE $idKey = '$id' */
 function getBlob($table, $id, $idKey, $field)
 {
     return $this->unescape_bytea(parent::getOne("SELECT {$field} FROM {$table} WHERE {$idKey} = '{$id}'"));
 }