Method |
Description |
|
__construct ( array $arrModels, string $strTable ) |
Create a new collection |
|
__get ( string $strKey ) : mixed | null |
Return an object property |
|
__isset ( string $strKey ) : boolean |
Check whether a property is set |
|
__set ( string $strKey, mixed $varValue ) |
Set an object property |
|
count ( ) : integer |
Return the number of rows in the result set |
|
createFromDbResult ( Result $objResult, string $strTable ) : static |
Create a new collection from a database result |
|
current ( ) : Model |
Return the current model |
|
delete ( ) : integer |
Delete the current model and return the number of affected rows |
|
fetchAll ( ) : array |
Fetch all columns of every row |
|
fetchEach ( string $strKey ) : array |
Fetch a column of each row |
|
first ( ) : static |
Go to the first row |
|
getIterator ( ) : ArrayIterator |
Retrieve the iterator object |
|
getModels ( ) : Model[] |
Return the models as array |
|
getRelated ( string $strKey ) : Model | static |
Lazy load related records |
|
last ( ) : static |
Go to the last row |
|
next ( ) : static | boolean |
Go to the next row |
|
offsetExists ( integer $offset ) : boolean |
Check whether an offset exists |
|
offsetGet ( integer $offset ) : Model | null |
Retrieve a particular offset |
|
offsetSet ( integer $offset, mixed $value ) |
Set a particular offset |
|
offsetUnset ( integer $offset ) |
Unset a particular offset |
|
prev ( ) : static | false |
Go to the previous row |
|
reset ( ) : static |
Reset the model |
|
row ( ) : array |
Return the current row as associative array |
|
save ( ) : static |
Save the current model |
|
setRow ( array $arrData ) : static |
Set the current row from an array |
|