Property | Type | Description | |
---|---|---|---|
$current | array | object | Points to the current record returned by iterator. Can be array or object. | |
$current_id | mixed | Contains ID of current record. | |
$current_row | array | Points to hash for current row before it's being outputted. Used in formatRow(). | |
$current_row_html | array | Similar to $current_row, but will be used for direct HTML output, no escaping. Use with care. | |
$dq | DB_dsql | If lister data is retrieved from the SQL database, this will contain dynamic query. | |
$iter | mixed | For other iterators, this variable will be used. |
Method | Description | |
---|---|---|
defaultTemplate ( ) : array | Sets default template. | |
formatRow ( ) | Called after iterating and may be redefined to change contents of :php:attr:Lister::current_row. Redefine this method to change rendering logic. | |
getIterator ( ) : mixed | Returns data source iterator. | |
offsetExists ( $name ) | {{{ ArrayAccess support | |
offsetGet ( $name ) | ||
offsetSet ( $name, $val ) | ||
offsetUnset ( $name ) | ||
render ( ) | Renders everything. | |
rowRender ( Template $template ) : string | Renders single row. | |
setSource ( mixed $source, array | string | null $fields = null ) | Similar to setModel, however you specify array of data here. setSource is actually implemented around :php:class:Controller_Data_Array. actually you can pass anything iterateable to setSource() as long as elements of iterating produce either a string or array. | |
setStaticSource ( $data ) |
public defaultTemplate ( ) : array | ||
return | array |
public formatRow ( ) |
public getIterator ( ) : mixed | ||
return | mixed |
public array $current_row | ||
return | array |
public array $current_row_html | ||
return | array |
public DB_dsql $dq | ||
return | DB_dsql |
public mixed $iter | ||
return | mixed |