[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Web/UI/WebControls/ -> TDataBoundControl.php (sommaire)

TDataBoundControl class file

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TDataBoundControl.php 1533 2006-12-01 12:37:06Z xue $
Poids: 545 lignes (17 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TListItemType:: (0 méthodes):

Définit 0 fonctions

  getDataSource()
  setDataSource()
  getDataSourceID()
  setDataSourceID()
  getUsingDataSourceID()
  onDataSourceChanged()
  getInitialized()
  setInitialized()
  getIsDataBound()
  setIsDataBound()
  getRequiresDataBinding()
  getAllowPaging()
  setAllowPaging()
  getAllowCustomPaging()
  setAllowCustomPaging()
  getCurrentPageIndex()
  setCurrentPageIndex()
  getPageSize()
  setPageSize()
  getPageCount()
  getVirtualItemCount()
  setVirtualItemCount()
  setRequiresDataBinding()
  ensureDataBound()
  createPagedDataSource()
  dataBind()
  dataSourceViewChanged()
  getData()
  getDataSourceView()
  determineDataSource()
  onDataBound()
  onInit()
  pagePreLoad()
  onPreRender()
  validateDataSource()
  getDataMember()
  setDataMember()
  getSelectParameters()

Classe: TListItemType  - X-Ref

TListItemType class.
TListItemType defines the enumerable type for the possible types
that databound list items could take.

The following enumerable values are defined:
- Header: header item
- Footer: footer item
- Item: content item (neither header nor footer)
- Separator: separator between items
- AlternatingItem: alternating content item
- EditItem: content item in edit mode
- SelectedItem: selected content item
- Pager: pager

Fonctions
Fonctions qui ne font pas partie d'une Classe:

getDataSource()   X-Ref

return: Traversable data source object, defaults to null.

setDataSource($value)   X-Ref
Sets the data source object associated with the databound control.
The data source must implement Traversable interface.
If an array is given, it will be converted to xxx.
If a string is given, it will be converted to xxx.

param: Traversable|array|string data source object

getDataSourceID()   X-Ref

return: string ID path to the data source control. Defaults to empty.

setDataSourceID($value)   X-Ref

param: string ID path to the data source control. The data source

getUsingDataSourceID()   X-Ref

return: boolean if the databound control uses the data source specified

onDataSourceChanged()   X-Ref
Sets {@link setRequiresDataBinding RequiresDataBinding} as true if the control is initialized.
This method is invoked when either {@link setDataSource} or {@link setDataSourceID} is changed.


getInitialized()   X-Ref

return: boolean whether the databound control has been initialized.

setInitialized($value)   X-Ref
Sets a value indicating whether the databound control is initialized.
If initialized, any modification to {@link setDataSource DataSource} or
{@link setDataSourceID DataSourceID} will set {@link setRequiresDataBinding RequiresDataBinding}
as true.

param: boolean a value indicating whether the databound control is initialized.

getIsDataBound()   X-Ref

return: boolean whether databind has been invoked in the previous page request

setIsDataBound($value)   X-Ref

param: boolean if databind has been invoked in this page request

getRequiresDataBinding()   X-Ref

return: boolean whether a databind call is required (by the data bound control)

getAllowPaging()   X-Ref

return: boolean whether paging is enabled. Defaults to false.

setAllowPaging($value)   X-Ref

param: boolean whether paging is enabled

getAllowCustomPaging()   X-Ref

return: boolean whether the custom paging is enabled. Defaults to false.

setAllowCustomPaging($value)   X-Ref
Sets a value indicating whether the custom paging should be enabled.
When the pager is in custom paging mode, the {@link setVirtualItemCount VirtualItemCount}
property is used to determine the paging, and the data items in the
{@link setDataSource DataSource} are considered to be in the current page.

param: boolean whether the custom paging is enabled

getCurrentPageIndex()   X-Ref

return: integer the zero-based index of the current page. Defaults to 0.

setCurrentPageIndex($value)   X-Ref

param: integer the zero-based index of the current page

getPageSize()   X-Ref

return: integer the number of data items on each page. Defaults to 10.

setPageSize($value)   X-Ref

param: integer the number of data items on each page.

getPageCount()   X-Ref

return: integer number of pages of data items available

getVirtualItemCount()   X-Ref

return: integer virtual number of data items in the data source. Defaults to 0.

setVirtualItemCount($value)   X-Ref

param: integer virtual number of data items in the data source.

setRequiresDataBinding($value)   X-Ref
Sets a value indicating whether a databind call is required by the data bound control.
If true and the control has been prerendered while it uses the data source
specified by {@link setDataSourceID}, a databind call will be called by this method.

param: boolean whether a databind call is required.

ensureDataBound()   X-Ref
Ensures any pending {@link dataBind} is called.
This method calls {@link dataBind} if the data source is specified
by {@link setDataSourceID} or if {@link getRequiresDataBinding RequiresDataBinding}
is true.


createPagedDataSource()   X-Ref

return: TPagedDataSource creates a paged data source

dataBind()   X-Ref
Performs databinding.
This method overrides the parent implementation by calling
{@link performSelect} which fetches data from data source and does
the actual binding work.


dataSourceViewChanged($sender,$param)   X-Ref
Pas de description

getData()   X-Ref
Pas de description

getDataSourceView()   X-Ref
Pas de description

determineDataSource()   X-Ref
Pas de description

onDataBound($param)   X-Ref
Raises <b>OnDataBound</b> event.
This method should be invoked after a databind is performed.
It is mainly used by framework and component developers.


onInit($param)   X-Ref
Sets page's <b>OnPreLoad</b> event handler as {@link pagePreLoad}.
If viewstate is disabled and the current request is a postback,
{@link setRequiresDataBinding RequiresDataBinding} will be set true.
This method overrides the parent implementation.

param: TEventParameter event parameter

pagePreLoad($sender,$param)   X-Ref
Sets {@link getInitialized} as true.
This method is invoked when page raises <b>PreLoad</b> event.

param: mixed event sender
param: TEventParameter event parameter

onPreRender($param)   X-Ref
Ensures any pending databind is performed.
This method overrides the parent implementation.

param: TEventParameter event parameter

validateDataSource($value)   X-Ref
Validates if the parameter is a valid data source.
If it is a string or an array, it will be converted as a TList object.

param: Traversable|array|string data source to be validated
return: Traversable the data that is traversable

getDataMember()   X-Ref
Pas de description

setDataMember($value)   X-Ref
Pas de description

getSelectParameters()   X-Ref
Pas de description



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7