extends |
XoopsMySQLDatabaseProxy |
|---|
Class ProtectorMySQLDatabase
| Methods | ||||||||
|---|---|---|---|---|---|---|---|---|
public
|
__construct()
ProtectorMySQLDatabase constructor.
|
# | ||||||
public
|
injectionFound($sql)
|
# | ||||||
public
|
separateStringsInSQL($sql): array
|
# | ||||||
public
|
checkSql($sql)
|
# | ||||||
public
|
query(string $sql, int $limit = 0, int $start = 0): mysqli_result|bool
perform a query on the database
perform a query on the database this method allows only SELECT queries for safety. Parameters
Returnsquery result or FALSE if successful or TRUE if successful and no result Overrides |
# | ||||||
| Methods inherited from XoopsDatabase |
|---|
setLogger(), setPrefix(), prefix(), |
| Properties | |||
|---|---|---|---|
public
|
|
$doubtful_requests = []
|
# |
public
|
|
$doubtful_needles = ['concat', 'information_schema', 'select', 'union', '/*', '--', '#']
|
# |
| Properties inherited from XoopsMySQLDatabase |
|---|
$conn |
| Properties inherited from XoopsDatabase |
|---|
$prefix, $logger, $allowWebChanges |