API - XOOPS 2.5.11 Beta 2
By monxoops.fr
ProtectorMySQLDatabase Class Reference
Inheritance diagram for ProtectorMySQLDatabase:
Collaboration diagram for ProtectorMySQLDatabase:

Public Member Functions

 __construct ()
 
 injectionFound ($sql)
 
 separateStringsInSQL ($sql)
 
 checkSql ($sql)
 
 query ($sql, $limit=0, $start=0)
 
 query ($sql, $limit=0, $start=0)
 
- Public Member Functions inherited from XoopsMySQLDatabase
 connect ($selectdb=true)
 
 genId ($sequence)
 
 fetchRow ($result)
 
 fetchArray ($result)
 
 fetchBoth ($result)
 
 fetchObject ($result)
 
 getInsertId ()
 
 getRowsNum ($result)
 
 getAffectedRows ()
 
 close ()
 
 freeRecordSet ($result)
 
 error ()
 
 errno ()
 
 quoteString ($str)
 
 quote ($string)
 
 escape ($string)
 
 queryF ($sql, $limit=0, $start=0)
 
 query ($sql, $limit=0, $start=0)
 
 queryFromFile ($file)
 
 getFieldName ($result, $offset)
 
 getFieldType ($result, $offset)
 
 getFieldsNum ($result)
 
 getServerVersion ()
 
 isResultSet ($result)
 
- Public Member Functions inherited from XoopsDatabase
 __construct ()
 
 setLogger (XoopsLogger $logger)
 
 setPrefix ($value)
 
 prefix ($tablename='')
 
 isResultSet ($result)
 

Data Fields

 $doubtful_requests = array()
 
 $doubtful_needles
 
- Data Fields inherited from XoopsMySQLDatabase
 $conn
 
- Data Fields inherited from XoopsDatabase
 $prefix = ''
 
 $logger
 
 $allowWebChanges = false
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

ProtectorMySQLDatabase constructor.

Reimplemented from XoopsDatabase.

Here is the call graph for this function:

Member Function Documentation

◆ checkSql()

checkSql (   $sql)
Parameters
$sql
Here is the call graph for this function:
Here is the caller graph for this function:

◆ injectionFound()

injectionFound (   $sql)
Parameters
$sql
Here is the call graph for this function:
Here is the caller graph for this function:

◆ query()

query (   $sql,
  $limit = 0,
  $start = 0 
)
Parameters
string$sql
int$limit
int$start
Returns
mysqli_result|bool query result or FALSE if successful or TRUE if successful and no result

Reimplemented from XoopsMySQLDatabaseProxy.

Here is the call graph for this function:

◆ separateStringsInSQL()

separateStringsInSQL (   $sql)
Parameters
$sql
Returns
array
Here is the caller graph for this function:

Field Documentation

◆ $doubtful_needles

$doubtful_needles
Initial value:
= array(
'concat',
'information_schema',
'select',
'union',
'/*',
'--',
'#')

◆ $doubtful_requests

$doubtful_requests = array()

The documentation for this class was generated from the following file: