MediaWiki  1.23.2
ORMResult Class Reference
Inheritance diagram for ORMResult:
Collaboration diagram for ORMResult:

Public Member Functions

 __construct (IORMTable $table, ResultWrapper $res)
 
 count ()
 
 current ()
 
 isEmpty ()
 
 key ()
 
 next ()
 
 rewind ()
 
 valid ()
 

Protected Member Functions

 setCurrent ( $row)
 

Protected Attributes

IORMRow $current
 
integer $key
 
ResultWrapper $res
 
IORMTable $table
 

Detailed Description

Definition at line 32 of file ORMResult.php.

Constructor & Destructor Documentation

◆ __construct()

ORMResult::__construct ( IORMTable  $table,
ResultWrapper  $res 
)
Parameters
IORMTable$table
ResultWrapper$res

Definition at line 53 of file ORMResult.php.

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

Member Function Documentation

◆ count()

ORMResult::count ( )
Returns
integer

Definition at line 74 of file ORMResult.php.

◆ current()

ORMResult::current ( )
Returns
IORMRow

Definition at line 88 of file ORMResult.php.

References $current.

Referenced by setCurrent(), and valid().

◆ isEmpty()

ORMResult::isEmpty ( )
Returns
boolean

Definition at line 81 of file ORMResult.php.

◆ key()

ORMResult::key ( )
Returns
integer

Definition at line 95 of file ORMResult.php.

References $key.

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

◆ next()

ORMResult::next ( )

Definition at line 99 of file ORMResult.php.

References key(), and setCurrent().

◆ rewind()

ORMResult::rewind ( )

Definition at line 105 of file ORMResult.php.

References key(), and setCurrent().

◆ setCurrent()

ORMResult::setCurrent (   $row)
protected
Parameters
$row

Definition at line 63 of file ORMResult.php.

References current(), and table.

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

◆ valid()

ORMResult::valid ( )
Returns
boolean

Definition at line 114 of file ORMResult.php.

References current().

Member Data Documentation

◆ $current

IORMRow ORMResult::$current
protected

Definition at line 43 of file ORMResult.php.

Referenced by current().

◆ $key

integer ORMResult::$key
protected

Definition at line 39 of file ORMResult.php.

Referenced by key().

◆ $res

ResultWrapper ORMResult::$res
protected

Definition at line 35 of file ORMResult.php.

Referenced by __construct().

◆ $table

IORMTable ORMResult::$table
protected

Definition at line 47 of file ORMResult.php.

Referenced by __construct().


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