[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/db/ -> DatabaseUtility.php (summary)

This file contains database-related utility classes. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 342 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 7 classes

DBObject:: (3 methods):
  __construct()
  isLOB()
  data()

Blob:: (2 methods):
  __construct()
  fetch()

Field:: (4 methods):
  name()
  tableName()
  type()
  isNullable()

ResultWrapper:: (11 methods):
  __construct()
  numRows()
  fetchObject()
  fetchRow()
  free()
  seek()
  rewind()
  current()
  key()
  next()
  valid()

FakeResultWrapper:: (8 methods):
  __construct()
  numRows()
  fetchRow()
  seek()
  free()
  fetchObject()
  rewind()
  next()

LikeMatch:: (2 methods):
  __construct()
  toString()

DBMasterPos:: (0 methods):


Class: DBObject  - X-Ref

Utility class.

__construct( $data )   X-Ref
No description

isLOB()   X-Ref

return: bool

data()   X-Ref
No description

Class: Blob  - X-Ref

Utility class

__construct( $data )   X-Ref
No description

fetch()   X-Ref
No description

Interface: Field  - X-Ref

Base for all database-specific classes representing information about database fields

name()   X-Ref
Field name

return: string

tableName()   X-Ref
Name of table this field belongs to

return: string

type()   X-Ref
Database type

return: string

isNullable()   X-Ref
Whether this field can store NULL values

return: bool

Class: ResultWrapper  - X-Ref

Result wrapper for grabbing data queried by someone else

__construct( $database, $result )   X-Ref
Create a new result object from a result resource and a Database object

param: DatabaseBase $database
param: resource|ResultWrapper $result

numRows()   X-Ref
Get the number of rows in a result object

return: int

fetchObject()   X-Ref
Fetch the next row from the given result object, in object form.
Fields can be retrieved with $row->fieldname, with fields acting like
member variables.

return: stdClass

fetchRow()   X-Ref
Fetch the next row from the given result object, in associative array
form. Fields are retrieved with $row['fieldname'].

return: array

free()   X-Ref
Free a result object


seek( $row )   X-Ref
Change the position of the cursor in a result object.
See mysql_data_seek()

param: int $row

rewind()   X-Ref
No description

current()   X-Ref

return: stdClass|array|bool

key()   X-Ref

return: int

next()   X-Ref

return: stdClass

valid()   X-Ref

return: bool

Class: FakeResultWrapper  - X-Ref

Overloads the relevant methods of the real ResultsWrapper so it
doesn't go anywhere near an actual database.

__construct( $array )   X-Ref
No description

numRows()   X-Ref

return: int

fetchRow()   X-Ref

return: array|bool

seek( $row )   X-Ref
No description

free()   X-Ref
No description

fetchObject()   X-Ref
Callers want to be able to access fields with $this->fieldName

return: bool|stdClass

rewind()   X-Ref
No description

next()   X-Ref

return: bool|stdClass

Class: LikeMatch  - X-Ref

Used by DatabaseBase::buildLike() to represent characters that have special
meaning in SQL LIKE clauses and thus need no escaping. Don't instantiate it
manually, use DatabaseBase::anyChar() and anyString() instead.

__construct( $s )   X-Ref
Store a string into a LikeMatch marker object.

param: string $s

toString()   X-Ref
Return the original stored string.

return: string

Interface: DBMasterPos  - X-Ref

An object representing a master or slave position in a replicated setup.

The implementation details of this opaque type are up to the database subclass.


Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1