Class CBaseListView
CBaseListView is the base class for CListView
and CGridView
.
CBaseListView implements the common features needed by a view wiget for rendering multiple models.
- CComponent
- CBaseController
- CWidget
- CBaseListView
Indirect known subclasses
InlineRelationshipsGridView, MobileActivityFeedListView, X2ListView, RecordIndexListView, TopicsListView, X2ActiveGridView, X2ActiveGridViewForSortableWidgets, X2GridView, X2GridViewBase, X2GridViewForSortableWidgets, X2GridViewGenericPackage: zii\widgets
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.1
Located at x2engine/framework/zii/widgets/CBaseListView.php
public
|
|
public
|
#
run( )
Renders the view. This is the main entry of the whole view rendering. Child
classes should mainly override |
public
|
#
renderContent( )
Renders the main content of the view. The content is divided into sections,
such as summary, items, pager. Each section is rendered by a method named as
"renderXyz", where "Xyz" is the section name. The rendering results will replace
the corresponding placeholders in |
protected
string
|
#
renderSection( array $matches )
Renders a section. This method is invoked by |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
registerClientScript( )
Registers necessary client scripts. This method is invoked by |
abstract public
|
#
renderItems( )
Renders the data items for the view. Each item is corresponding to a single data model instance. Child classes should override this method to provide the actual item rendering logic. |
__construct(),
actions(),
getController(),
getId(),
getOwner(),
getViewFile(),
getViewPath(),
render(),
setId()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderFile(),
renderInternal(),
widget()
|
public
|
$dataProvider |
|
#
the data provider for the view. |
public
string
|
$tagName | 'div' |
#
the tag name for the view container. Defaults to 'div'. |
public
array
|
$htmlOptions | array() |
#
the HTML options for the view container tag. |
public
boolean
|
$enableSorting | true |
#
whether to enable sorting. Note that if the IDataProvider::sort
property of |
public
boolean
|
$enablePagination | true |
#
whether to enable pagination. Note that if the IDataProvider::pagination property of |
public
array|string
|
$pager | array('class'=>'CLinkPager') |
#
the configuration for the pager. Defaults to |
public
string
|
$template | "{summary}\n{items}\n{pager}" |
#
the template to be used to control the layout of various sections in the view. These tokens are recognized: {summary}, {items} and {pager}. They will be replaced with the summary text, the items, and the pager. |
public
string
|
$summaryText |
|
#
the summary text template for the view. These tokens are recognized and will be
replaced with the corresponding values:
|
public
string
|
$summaryTagName | 'div' |
#
the HTML tag name for the container of the |
public
string
|
$emptyText |
|
#
the message to be displayed when |
public
string
|
$emptyTagName | 'span' |
#
the HTML tag name for the container of the |
public
string
|
$emptyCssClass | 'empty' |
#
the CSS class name for the container of the |
public
string
|
$itemsCssClass | 'items' |
#
the CSS class name for the container of all data item display. Defaults to 'items'. Note, this property must not contain false, null or empty string values. Otherwise such values may cause undefined behavior. |
public
string
|
$summaryCssClass | 'summary' |
#
the CSS class name for the summary text container. Defaults to 'summary'. |
public
string
|
$pagerCssClass | 'pager' |
#
the CSS class name for the pager container. Defaults to 'pager'. Note, this property must not contain false, null or empty string values. Otherwise such values may cause undefined behavior. |
public
string
|
$loadingCssClass | 'loading' |
#
the CSS class name that will be assigned to the widget container element when the widget is updating its content via AJAX. Defaults to 'loading'. |
$actionPrefix,
$skin
|
$controller,
$id,
$owner,
$viewPath
|