131 return $this->db->sanitizeInt(
$value, $signed);
143 return $this->db->sanitizeString(
$value);
156 return $this->db->getConnection(
$type);
184 return $this->db->{
$name};
__construct(ElggDb $db)
Constructor.
getConnection($type)
Gets (if required, also creates) a DB connection.
if(!$user||!$user->canDelete()) $name
$params
Saves global plugin settings.
registerDelayedQuery($query, $type, $callback=null, array $params=[])
Queue a query for execution upon shutdown.
getDataRow($query, $callback= '', array $params=[])
Retrieve a single row from the database.
insertData($query, array $params=[])
Insert a row into the database.
sanitizeString($value)
Sanitizes a string for use in a query.
sanitizeInt($value, $signed=true)
Sanitizes an integer value for use in a query.
deleteData($query, array $params=[])
Delete data from the database.
__set($name, $value)
Handle magic property writes.
updateData($query, $getNumRows=false, array $params=[])
Update the database.
__get($name)
Handle magic property reads.
getData($query, $callback= '', array $params=[])
Retrieve rows from the database.