/**
* Makes an encoded list of strings from an array
- * $mode:
+ * @param $a Array
+ * @param $mode
* LIST_COMMA - comma separated, no field names
* LIST_AND - ANDed WHERE clause (without the WHERE)
* LIST_OR - ORed WHERE clause (without the WHERE)
* LIST_SET - comma separated with field names, like a SET clause
* LIST_NAMES - comma separated field names
+ *
+ * @return string
*/
function makeList( $a, $mode = LIST_COMMA ) {
if ( !is_array( $a ) ) {
/**
* Construct a database error
* @param $db Database object which threw the error
- * @param $error A simple error message to be used for debugging
+ * @param $error String A simple error message to be used for debugging
*/
function __construct( DatabaseBase &$db, $error ) {
$this->db =& $db;
# Returns the size of a text field, or -1 for "unlimited"
function textFieldSize( $table, $field ) {
- $fieldInfoData = $this->fieldInfo( $table, $field);
+ $fieldInfoData = $this->fieldInfo( $table, $field );
if ( $fieldInfoData->type() == 'varchar' ) {
- $size = $row->size - 4;
+ $size = $row->size - 4; // FIXME: $row is undefined
} else {
$size = $row->size;
}