MediaWiki  1.30.0
TitleArrayFromResult Class Reference
Inheritance diagram for TitleArrayFromResult:
Collaboration diagram for TitleArrayFromResult:

Public Member Functions

 __construct ( $res)
 
 count ()
 
 current ()
 
 key ()
 
 next ()
 
 rewind ()
 
 valid ()
 

Public Attributes

 $current
 
 $key
 
ResultWrapper $res
 

Protected Member Functions

 setCurrent ( $row)
 

Additional Inherited Members

- Static Public Member Functions inherited from TitleArray
static newFromResult ( $res)
 
- Static Protected Member Functions inherited from TitleArray
static newFromResult_internal ( $res)
 

Detailed Description

Definition at line 29 of file TitleArrayFromResult.php.

Constructor & Destructor Documentation

◆ __construct()

TitleArrayFromResult::__construct (   $res)

Definition at line 37 of file TitleArrayFromResult.php.

References $res, key(), and setCurrent().

Member Function Documentation

◆ count()

TitleArrayFromResult::count ( )
Returns
int

Definition at line 58 of file TitleArrayFromResult.php.

◆ current()

TitleArrayFromResult::current ( )

Definition at line 62 of file TitleArrayFromResult.php.

References $current.

Referenced by setCurrent(), and valid().

◆ key()

TitleArrayFromResult::key ( )

Definition at line 66 of file TitleArrayFromResult.php.

References $key.

Referenced by __construct(), next(), and rewind().

◆ next()

TitleArrayFromResult::next ( )

Definition at line 70 of file TitleArrayFromResult.php.

References key(), and setCurrent().

◆ rewind()

TitleArrayFromResult::rewind ( )

Definition at line 76 of file TitleArrayFromResult.php.

References key(), and setCurrent().

◆ setCurrent()

TitleArrayFromResult::setCurrent (   $row)
protected
Parameters
bool | ResultWrapper$row
Returns
void

Definition at line 47 of file TitleArrayFromResult.php.

References current(), and Title\newFromRow().

Referenced by __construct(), next(), and rewind().

◆ valid()

TitleArrayFromResult::valid ( )
Returns
bool

Definition at line 85 of file TitleArrayFromResult.php.

References current().

Member Data Documentation

◆ $current

TitleArrayFromResult::$current

Definition at line 35 of file TitleArrayFromResult.php.

Referenced by current().

◆ $key

TitleArrayFromResult::$key

Definition at line 33 of file TitleArrayFromResult.php.

Referenced by key().

◆ $res

ResultWrapper TitleArrayFromResult::$res

Definition at line 31 of file TitleArrayFromResult.php.

Referenced by __construct().


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