[ Index ] |
|
Code source de PRADO 3.0.6 |
[Code source] [Imprimer] [Statistiques]
TRepeater class file
Author: | Qiang Xue <qiang.xue@gmail.com> |
Copyright: | Copyright © 2005 PradoSoft |
License: | http://www.pradosoft.com/license/ |
Version: | $Id: TRepeater.php 1481 2006-10-29 12:29:16Z xue $ |
Poids: | 783 lignes (24 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
TRepeater:: (32 méthodes):
getItemTemplate()
setItemTemplate()
getAlternatingItemTemplate()
setAlternatingItemTemplate()
getHeaderTemplate()
setHeaderTemplate()
getFooterTemplate()
setFooterTemplate()
getEmptyTemplate()
setEmptyTemplate()
getSeparatorTemplate()
setSeparatorTemplate()
getHeader()
getFooter()
getItems()
getDataKeyField()
setDataKeyField()
getDataKeys()
createItem()
createItemInternal()
initializeItem()
render()
saveState()
loadState()
reset()
restoreItemsFromViewState()
performDataBinding()
bubbleEvent()
onItemCreated()
onItemDataBound()
onItemCommand()
getDataFieldValue()
TRepeaterItemEventParameter:: (2 méthodes):
__construct()
getItem()
TRepeaterCommandEventParameter:: (3 méthodes):
__construct()
getItem()
getCommandSource()
TRepeaterItem:: (7 méthodes):
__construct()
getItemType()
setItemType()
getItemIndex()
getDataItem()
setDataItem()
bubbleEvent()
TRepeaterItemCollection:: (1 méthode):
insertAt()
getItemTemplate() X-Ref |
return: ITemplate the template for repeater items |
setItemTemplate($value) X-Ref |
param: ITemplate the template for repeater items |
getAlternatingItemTemplate() X-Ref |
return: ITemplate the alternative template string for the item |
setAlternatingItemTemplate($value) X-Ref |
param: ITemplate the alternative item template |
getHeaderTemplate() X-Ref |
return: ITemplate the header template |
setHeaderTemplate($value) X-Ref |
param: ITemplate the header template |
getFooterTemplate() X-Ref |
return: ITemplate the footer template |
setFooterTemplate($value) X-Ref |
param: ITemplate the footer template |
getEmptyTemplate() X-Ref |
return: ITemplate the template applied when no data is bound to the repeater |
setEmptyTemplate($value) X-Ref |
param: ITemplate the template applied when no data is bound to the repeater |
getSeparatorTemplate() X-Ref |
return: ITemplate the separator template |
setSeparatorTemplate($value) X-Ref |
param: ITemplate the separator template |
getHeader() X-Ref |
return: TRepeaterItem the header item |
getFooter() X-Ref |
return: TRepeaterItem the footer item |
getItems() X-Ref |
return: TRepeaterItemCollection list of {@link TRepeaterItem} controls |
getDataKeyField() X-Ref |
return: string the field of the data source that provides the keys of the list items. |
setDataKeyField($value) X-Ref |
param: string the field of the data source that provides the keys of the list items. |
getDataKeys() X-Ref |
return: TList the keys used in the data listing control. |
createItem($itemIndex,$itemType) X-Ref |
Creates a repeater item instance based on the item type and index. param: integer zero-based item index param: string item type, may be 'Header', 'Footer', 'Empty', 'Item', 'Separator', 'AlternatingItem'. return: TRepeaterItem created repeater item |
createItemInternal($itemIndex,$itemType,$dataBind,$dataItem) X-Ref |
Creates a repeater item and does databinding if needed. This method invokes {@link createItem} to create a new repeater item. param: integer zero-based item index. param: string item type, may be 'Header', 'Footer', 'Empty', 'Item', 'Separator', 'AlternatingItem'. param: boolean whether to do databinding for the item param: mixed data to be associated with the item return: TRepeaterItem the created item |
initializeItem($item) X-Ref |
Initializes a repeater item. The item is added as a child of the repeater and the corresponding template is instantiated within the item. param: TRepeaterItem item to be initialized |
render($writer) X-Ref |
Renders the repeater. This method overrides the parent implementation by rendering the body content as the whole presentation of the repeater. Outer tag is not rendered. param: THtmlWriter writer |
saveState() X-Ref |
Saves item count in viewstate. This method is invoked right before control state is to be saved. |
loadState() X-Ref |
Loads item count information from viewstate. This method is invoked right after control state is loaded. |
reset() X-Ref |
Clears up all items in the repeater. |
restoreItemsFromViewState() X-Ref |
Creates repeater items based on viewstate information. |
performDataBinding($data) X-Ref |
Performs databinding to populate repeater items from data source. This method is invoked by dataBind(). You may override this function to provide your own way of data population. param: Traversable the data |
bubbleEvent($sender,$param) X-Ref |
This method overrides parent's implementation to handle {@link onItemCommand OnItemCommand} event which is bubbled from {@link TRepeaterItem} child controls. This method should only be used by control developers. param: TControl the sender of the event param: TEventParameter event parameter return: boolean whether the event bubbling should stop here. |
onItemCreated($param) X-Ref |
Raises <b>OnItemCreated</b> event. This method is invoked after a repeater item is created and instantiated with template, but before added to the page hierarchy. The {@link TRepeaterItem} control responsible for the event can be determined from the event parameter. If you override this method, be sure to call parent's implementation so that event handlers have chance to respond to the event. param: TRepeaterItemEventParameter event parameter |
onItemDataBound($param) X-Ref |
Raises <b>OnItemDataBound</b> event. This method is invoked right after an item is data bound. The {@link TRepeaterItem} control responsible for the event can be determined from the event parameter. If you override this method, be sure to call parent's implementation so that event handlers have chance to respond to the event. param: TRepeaterItemEventParameter event parameter |
onItemCommand($param) X-Ref |
Raises <b>OnItemCommand</b> event. This method is invoked after a button control in a template raises <b>Command</b> event. The {@link TRepeaterItem} control responsible for the event can be determined from the event parameter. The event parameter also contains the information about the initial sender of the <b>Command</b> event, command name and command parameter. You may override this method to provide customized event handling. Be sure to call parent's implementation so that event handlers have chance to respond to the event. param: TRepeaterCommandEventParameter event parameter |
getDataFieldValue($data,$field) X-Ref |
Returns the value of the data at the specified field. If data is an array, TMap or TList, the value will be returned at the index of the specified field. If the data is a component with a property named as the field name, the property value will be returned. Otherwise, an exception will be raised. param: mixed data item param: mixed field name return: mixed data value at the specified field |
Classe: TRepeaterItemEventParameter - X-Ref
TRepeaterItemEventParameter class__construct(TRepeaterItem $item) X-Ref |
Constructor. param: TRepeaterItem repeater item related with the corresponding event |
getItem() X-Ref |
return: TRepeaterItem repeater item related with the corresponding event |
Classe: TRepeaterCommandEventParameter - X-Ref
TRepeaterCommandEventParameter class__construct($item,$source,TCommandEventParameter $param) X-Ref |
Constructor. param: TRepeaterItem repeater item responsible for the event param: TControl original event sender param: TCommandEventParameter original event parameter |
getItem() X-Ref |
return: TRepeaterItem the TRepeaterItem control responsible for the event. |
getCommandSource() X-Ref |
return: TControl the control originally raises the <b>Command</b> event. |
Classe: TRepeaterItem - X-Ref
TRepeaterItem class__construct($itemIndex,$itemType) X-Ref |
Constructor. param: integer zero-based index of the item in the item collection of repeater param: TListItemType item type |
getItemType() X-Ref |
return: TListItemType item type |
setItemType($value) X-Ref |
param: TListItemType item type. |
getItemIndex() X-Ref |
return: integer zero-based index of the item in the item collection of repeater |
getDataItem() X-Ref |
return: mixed data associated with the item |
setDataItem($value) X-Ref |
param: mixed data to be associated with the item |
bubbleEvent($sender,$param) X-Ref |
This method overrides parent's implementation by wrapping event parameter for <b>Command</b> event with item information. param: TControl the sender of the event param: TEventParameter event parameter return: boolean whether the event bubbling should stop here. |
Classe: TRepeaterItemCollection - X-Ref
TRepeaterItemCollection class.Généré le : Sun Feb 25 21:07:04 2007 | par Balluche grâce à PHPXref 0.7 |