PHP Class Elgg\Application\Database

This is returned by elgg()->getDb() or Application::start()->getDb().
See also: Elgg\Application::getDb for more details.
Datei anzeigen Open project: elgg/elgg

Public Methods

Method Description
__construct ( Database $db ) Constructor
__get ( string $name ) : mixed Handle magic property reads
__set ( string $name, mixed $value ) : void Handle magic property writes
deleteData ( $query, array $params = [] )
getData ( $query, $callback = '', array $params = [] )
getDataRow ( $query, $callback = '', array $params = [] )
insertData ( $query, array $params = [] )
sanitizeInt ( $value, $signed = true )
sanitizeString ( $value )
updateData ( $query, $getNumRows = false, array $params = [] )

Method Details

__construct() public method

Constructor
public __construct ( Database $db )
$db Elgg\Database The Elgg database

__get() public method

Handle magic property reads
public __get ( string $name ) : mixed
$name string Property name
return mixed

__set() public method

Handle magic property writes
public __set ( string $name, mixed $value ) : void
$name string Property name
$value mixed Value
return void

deleteData() public method

public deleteData ( $query, array $params = [] )
$params array

getData() public method

public getData ( $query, $callback = '', array $params = [] )
$params array

getDataRow() public method

public getDataRow ( $query, $callback = '', array $params = [] )
$params array

insertData() public method

public insertData ( $query, array $params = [] )
$params array

sanitizeInt() public method

public sanitizeInt ( $value, $signed = true )

sanitizeString() public method

public sanitizeString ( $value )

updateData() public method

public updateData ( $query, $getNumRows = false, array $params = [] )
$params array