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

Public Member Functions

 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)
 

Additional Inherited Members

- Data Fields inherited from XoopsMySQLDatabase
 $conn
 
- Data Fields inherited from XoopsDatabase
 $prefix = ''
 
 $logger
 
 $allowWebChanges = false
 

Member Function Documentation

◆ query()

query (   $sql,
  $limit = 0,
  $start = 0 
)

perform a query on the database

this method allows only SELECT queries for safety.

Parameters
string$sqla valid MySQL query
int$limitnumber of records to return
int$startoffset of first record to return
Returns
mysqli_result|bool query result or FALSE if successful or TRUE if successful and no result

Reimplemented from XoopsMySQLDatabase.

Reimplemented in ProtectorMySQLDatabase.

Here is the call graph for this function:

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