123 return $this->db->getConnection(
$type);
151 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.
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.