dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Note incorrect docs in DefaultSettings.php
[lhc/web/wiklou.git]
/
includes
/
DatabaseFunctions.php
diff --git
a/includes/DatabaseFunctions.php
b/includes/DatabaseFunctions.php
index
a4a0444
..
52e9a8c
100644
(file)
--- a/
includes/DatabaseFunctions.php
+++ b/
includes/DatabaseFunctions.php
@@
-2,7
+2,8
@@
/**
* Legacy database functions, for compatibility with pre-1.3 code
* NOTE: this file is no longer loaded by default.
/**
* Legacy database functions, for compatibility with pre-1.3 code
* NOTE: this file is no longer loaded by default.
- *
+ * @file
+ * @ingroup Database
*/
/**
*/
/**
@@
-153,6
+154,7
@@
function wfFieldName( $res, $n, $dbi = DB_LAST )
/**
* @todo document function
/**
* @todo document function
+ * @see Database::insertId()
*/
function wfInsertId( $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
*/
function wfInsertId( $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
@@
-165,6
+167,7
@@
function wfInsertId( $dbi = DB_LAST ) {
/**
* @todo document function
/**
* @todo document function
+ * @see Database::dataSeek()
*/
function wfDataSeek( $res, $row, $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
*/
function wfDataSeek( $res, $row, $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
@@
-176,7
+179,8
@@
function wfDataSeek( $res, $row, $dbi = DB_LAST ) {
}
/**
}
/**
- * @todo document function
+ * Get the last error number
+ * @see Database::lastErrno()
*/
function wfLastErrno( $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
*/
function wfLastErrno( $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
@@
-188,7
+192,8
@@
function wfLastErrno( $dbi = DB_LAST ) {
}
/**
}
/**
- * @todo document function
+ * Get the last error
+ * @see Database::lastError()
*/
function wfLastError( $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
*/
function wfLastError( $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
@@
-200,7
+205,8
@@
function wfLastError( $dbi = DB_LAST ) {
}
/**
}
/**
- * @todo document function
+ * Get the number of affected rows
+ * @see Database::affectedRows()
*/
function wfAffectedRows( $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
*/
function wfAffectedRows( $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
@@
-212,7
+218,8
@@
function wfAffectedRows( $dbi = DB_LAST ) {
}
/**
}
/**
- * @todo document function
+ * Get the last query ran
+ * @see Database::lastQuery
*/
function wfLastDBquery( $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
*/
function wfLastDBquery( $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
@@
-244,8
+251,8
@@
function wfSetSQL( $table, $var, $value, $cond, $dbi = DB_MASTER )
/**
/**
+ * Simple select wrapper, return one field
* @see Database::selectField()
* @see Database::selectField()
- * @todo document function
* @param $table
* @param $var
* @param $cond Default ''
* @param $table
* @param $var
* @param $cond Default ''
@@
-262,8
+269,8
@@
function wfGetSQL( $table, $var, $cond='', $dbi = DB_LAST )
}
/**
}
/**
+ * Does a given field exist on the specified table?
* @see Database::fieldExists()
* @see Database::fieldExists()
- * @todo document function
* @param $table
* @param $field
* @param $dbi Default DB_LAST
* @param $table
* @param $field
* @param $dbi Default DB_LAST
@@
-279,8
+286,8
@@
function wfFieldExists( $table, $field, $dbi = DB_LAST ) {
}
/**
}
/**
+ * Does the requested index exist on the specified table?
* @see Database::indexExists()
* @see Database::indexExists()
- * @todo document function
* @param $table String
* @param $index
* @param $dbi Default DB_LAST
* @param $table String
* @param $index
* @param $dbi Default DB_LAST
@@
-353,7
+360,8
@@
function wfUpdateArray( $table, $values, $conds, $fname = 'wfUpdateArray', $dbi
}
/**
}
/**
- * @todo document function
+ * Get fully usable table name
+ * @see Database::tableName()
*/
function wfTableName( $name, $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
*/
function wfTableName( $name, $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
@@
-366,6
+374,7
@@
function wfTableName( $name, $dbi = DB_LAST ) {
/**
* @todo document function
/**
* @todo document function
+ * @see Database::strencode()
*/
function wfStrencode( $s, $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
*/
function wfStrencode( $s, $dbi = DB_LAST ) {
$db = wfGetDB( $dbi );
@@
-378,6
+387,7
@@
function wfStrencode( $s, $dbi = DB_LAST ) {
/**
* @todo document function
/**
* @todo document function
+ * @see Database::nextSequenceValue()
*/
function wfNextSequenceValue( $seqName, $dbi = DB_MASTER ) {
$db = wfGetDB( $dbi );
*/
function wfNextSequenceValue( $seqName, $dbi = DB_MASTER ) {
$db = wfGetDB( $dbi );
@@
-390,6
+400,7
@@
function wfNextSequenceValue( $seqName, $dbi = DB_MASTER ) {
/**
* @todo document function
/**
* @todo document function
+ * @see Database::useIndexClause()
*/
function wfUseIndexClause( $index, $dbi = DB_SLAVE ) {
$db = wfGetDB( $dbi );
*/
function wfUseIndexClause( $index, $dbi = DB_SLAVE ) {
$db = wfGetDB( $dbi );
@@
-399,4
+410,3
@@
function wfUseIndexClause( $index, $dbi = DB_SLAVE ) {
return false;
}
}
return false;
}
}
-