XoopsMySQLDatabaseProxy・XoopsMySQLDatabaseSafeに継承されています。
XoopsMySQLDatabaseに対する継承グラフ
Public メソッド | |
connect ($selectdb=true) | |
genId ($sequence) | |
fetchRow ($result) | |
fetchArray ($result) | |
fetchBoth ($result) | |
getInsertId () | |
getRowsNum ($result) | |
getAffectedRows () | |
close () | |
freeRecordSet ($result) | |
error () | |
errno () | |
quoteString ($str) | |
& | queryF ($sql, $limit=0, $start=0) |
& | query ($sql, $limit=0, $start=0) |
queryFromFile ($file) | |
getFieldName ($result, $offset) | |
getFieldType ($result, $offset) | |
getFieldsNum ($result) | |
prepare ($query) | |
bind_param () | |
& | execute () |
& | executeF () |
Public 変数 | |
$conn | |
$mPrepareQuery = null |
mysqldatabase.php の 55 行で定義されています。
XoopsMySQLDatabase::close | ( | ) |
Close MySQL connection
mysqldatabase.php の 177 行で定義されています。
XoopsMySQLDatabase::connect | ( | $ | selectdb = true |
) |
connect to the database
bool | $selectdb select the database now? |
mysqldatabase.php の 75 行で定義されています。
XoopsMySQLDatabase::errno | ( | ) |
Returns the numerical value of the error message from previous MySQL operation
mysqldatabase.php の 208 行で定義されています。
XoopsMySQLDatabase::error | ( | ) |
Returns the text of the error message from previous MySQL operation
mysqldatabase.php の 198 行で定義されています。
XoopsMySQLDatabase::fetchArray | ( | $ | result | ) |
XoopsMySQLDatabase::fetchBoth | ( | $ | result | ) |
XoopsMySQLDatabase::fetchRow | ( | $ | result | ) |
Get a result row as an enumerated array
resource | $result |
mysqldatabase.php の 117 行で定義されています。
XoopsMySQLDatabase::freeRecordSet | ( | $ | result | ) |
will free all memory associated with the result identifier result.
resource | query result |
mysqldatabase.php の 188 行で定義されています。
XoopsMySQLDatabase::genId | ( | $ | sequence | ) |
generate an ID for a new row
This is for compatibility only. Will always return 0, because MySQL supports autoincrement for primary keys.
string | $sequence name of the sequence from which to get the next ID |
mysqldatabase.php の 106 行で定義されています。
XoopsMySQLDatabase::getAffectedRows | ( | ) |
XoopsMySQLDatabase::getFieldName | ( | $ | result, | |
$ | offset | |||
) |
Get field name
resource | $result query result | |
int | numerical field index |
mysqldatabase.php の 302 行で定義されています。
XoopsMySQLDatabase::getFieldsNum | ( | $ | result | ) |
Get number of fields in result
resource | $result query result |
mysqldatabase.php の 325 行で定義されています。
XoopsMySQLDatabase::getFieldType | ( | $ | result, | |
$ | offset | |||
) |
Get field type
resource | $result query result | |
int | $offset numerical field index |
mysqldatabase.php の 314 行で定義されています。
XoopsMySQLDatabase::getInsertId | ( | ) |
XoopsMySQLDatabase::getRowsNum | ( | $ | result | ) |
& XoopsMySQLDatabase::query | ( | $ | sql, | |
$ | limit = 0 , |
|||
$ | start = 0 | |||
) |
perform a query
This method is empty and does nothing! It should therefore only be used if nothing is exactly what you want done! ;-)
string | $sql a valid MySQL query | |
int | $limit number of records to return | |
int | $start offset of first record to return |
XoopsMySQLDatabaseSafe・XoopsMySQLDatabaseProxyで再定義されています。
mysqldatabase.php の 265 行で定義されています。
参照元 execute()・queryFromFile().
& XoopsMySQLDatabase::queryF | ( | $ | sql, | |
$ | limit = 0 , |
|||
$ | start = 0 | |||
) |
perform a query on the database
string | $sql a valid MySQL query | |
int | $limit number of records to return | |
int | $start offset of first record to return |
mysqldatabase.php の 234 行で定義されています。
参照元 executeF()・XoopsMySQLDatabaseProxy::query()・XoopsMySQLDatabaseSafe::query().
XoopsMySQLDatabase::queryFromFile | ( | $ | file | ) |
perform queries from SQL dump file in a batch
string | $file file path to an SQL dump file |
mysqldatabase.php の 277 行で定義されています。
参照先 XoopsDatabase::prefix()・OldSqlUtility::prefixQuery()・query()・OldSqlUtility::splitMySqlFile().
XoopsMySQLDatabase::quoteString | ( | $ | str | ) |
Returns escaped string text with single quotes around it to be safely stored in database
string | $str unescaped string text |
mysqldatabase.php の 219 行で定義されています。
参照元 bind_param().