rowset object for fetching select results
Definition at line 10 of file rowset.class.php.
◆ __toString()
◆ add()
◆ afterInit()
◆ beforeInit()
Call just before the configuration initialisation
Definition at line 35 of file object.class.php.
◆ count()
Returns the number of elements in the collection. Required by interface Countable
- Returns
- int
Definition at line 178 of file rowset.class.php.
◆ current()
Return the current element. Required by interface Iterator.
- Returns
- db_row current element from the collection
Definition at line 139 of file rowset.class.php.
◆ get()
Get a specific item of the rowset
- Parameters
-
int | $number | Index of the ement |
- Returns
- db_row Element from the collection
Definition at line 89 of file rowset.class.php.
◆ getAttr()
Get an attribute
- Parameters
-
string | $name | Attribute name |
- Returns
- mixed|null The attribute or null if not set
Definition at line 48 of file object.class.php.
◆ getCfg()
Get the configuration object
- Returns
- config
Definition at line 67 of file object.class.php.
◆ getData()
◆ getDb()
◆ getFields()
getFields |
( |
|
$mode = 'flat' | ) |
|
◆ getTable()
◆ getWhere()
getWhere |
( |
array |
$prm = array() | ) |
|
Get a where object
- Parameters
-
array | $prm | The configuration for the where object |
- Returns
- db_where
Definition at line 68 of file rowset.class.php.
◆ key()
Return the identifying key of the current element. Required by interface Iterator.
- Returns
- int
Definition at line 149 of file rowset.class.php.
◆ next()
Move forward to next element. Required by interface Iterator.
Definition at line 157 of file rowset.class.php.
◆ offsetExists()
Check if an index exists. Required by interface ArrayAccess
- Parameters
-
- Returns
- bool
Definition at line 189 of file rowset.class.php.
◆ offsetGet()
◆ offsetSet()
offsetSet |
( |
|
$offset, |
|
|
|
$value |
|
) |
| |
◆ offsetUnset()
Remove an element. Required by interface ArrayAccess
- Parameters
-
Definition at line 223 of file rowset.class.php.
◆ rewind()
Rewind the Iterator to the first element. Required by interface Iterator.
Definition at line 129 of file rowset.class.php.
◆ setAttr()
setAttr |
( |
|
$name, |
|
|
|
$value |
|
) |
| |
|
inherited |
Set an attribute
- Parameters
-
string | $name | Attribute name |
mixed | $value | Attribute value |
Definition at line 58 of file object.class.php.
◆ valid()
Check if there is a current element after calls to rewind() or next(). Used to check if we've iterated to the end of the collection. Required by interface Iterator.
- Returns
- bool False if there's nothing more to iterate over
Definition at line 168 of file rowset.class.php.
◆ $_count
◆ $_pointer
◆ $_rows
◆ $cfg
◆ $fields
The documentation for this class was generated from the following file: