Interface IRepeatInfoUser
IRepeatInfoUser interface.
This interface must be implemented by classes who want to use TRepeatInfo.
Method Summary |
TStyle
|
|
boolean
|
|
boolean
|
|
boolean
|
|
integer
|
|
void
|
Renders an item.
|
Method Details |
generateItemStyle
public TStyle generateItemStyle |
(string $itemType , integer $index ) |
Input |
string | $itemType | item type (Header,Footer,Item,AlternatingItem,SelectedItem,EditItem,Separator,Pager) |
integer | $index | zero-based index of the current rendering item. |
Output |
TStyle
| CSS style used for rendering items (including header, footer and separators) |
Exception |
|
getHasFooter
public boolean getHasFooter |
() |
Output |
boolean
| whether the repeat user contains footer |
Exception |
|
getHasHeader
public boolean getHasHeader |
() |
Output |
boolean
| whether the repeat user contains header |
Exception |
|
getHasSeparators
public boolean getHasSeparators |
() |
Output |
boolean
| whether the repeat user contains separators |
Exception |
|
getItemCount
public integer getItemCount |
() |
Output |
integer
| number of items to be rendered (excluding header, footer and separators) |
Exception |
|
renderItem
Renders an item.
Input |
THtmlWriter | $writer | writer for the rendering purpose |
TRepeatInfo | $repeatInfo | repeat information |
string | $itemType | item type |
integer | $index | zero-based index of the item being rendered |
Output |
Exception |
|
|