Class X2GridViewBase
Custom grid view display function.
Displays a dynamic grid view that permits save-able resizing and reordering of columns and also the adding of new columns based on the available fields for the model.
- CComponent
- CBaseController
- CWidget
- CBaseListView
- CGridView
- X2GridViewBase
Indirect known subclasses
InlineRelationshipsGridView, X2ActiveGridViewForSortableWidgets, X2GridView, X2GridViewForSortableWidgetsPackage: application\components
Located at x2engine/protected/components/X2GridView/X2GridViewBase.php
abstract protected
|
|
abstract protected
|
|
public static
|
#
massActionLabelComparison( mixed $a, mixed $b )
Used instead of a closure because closure definition was causing errors, possibly related to APC cache size settings. |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
#
getGvSettingsName( )
Magic getter for gvSettingsName. If not set explicitly, will be set to viewName |
public
|
|
public
string
|
|
public
|
#
renderKeys( )
This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/ |
public
|
#
setUpStickyHeader( )
Registers JS which makes the grid header sticky Preconditions: |
abstract protected
|
#
addFieldNames( )
Used to populate allFieldNames property with attribute labels indexed by attribute names. |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
public
|
|
public
|
#
init( )
Initializes the grid view. This method will initialize required property
values and instantiate |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
run( )
Renders the view. This is the main entry of the whole view rendering. Child
classes should mainly override |
public static
|
|
public static
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
protected
array
|
|
protected
|
|
protected
|
#
setUpQtipManager( )
If enableQtips is true, instantiates the qtipManager prototype with configuration and prototype specified in qtipManager |
public
|
#
registerClientScript( )
Registers necessary client scripts. This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/ |
public
|
|
public
|
|
protected
|
#
getYiiGridViewOptions( )
Code moved out of registerClientScript, allowing it to be more easily overridden This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/ |
protected
|
|
public
|
|
public
|
#
renderFilterWithOptions( array $htmlOptions = array ()/* x2modend */ )
Like renderFilter, but with html attribute options This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/ |
public
|
|
public
|
|
protected
|
|
protected
|
#
initColumns( )
Creates column objects and initializes them. Overrides parent::initColumns, swapping hard coded reference to CDataColumn with the value of a public property. |
createDataColumn(),
getFormatter(),
getHasFooter(),
renderDataCell(),
renderFilter(),
renderTableBody(),
renderTableFooter(),
renderTableRow(),
setFormatter()
|
renderContent(),
renderEmptyText(),
renderPager(),
renderSection()
|
actions(),
getController(),
getId(),
getOwner(),
getViewFile(),
getViewPath(),
render(),
setId()
|
beginCache(),
beginClip(),
beginContent(),
beginWidget(),
createWidget(),
endCache(),
endClip(),
endContent(),
endWidget(),
renderFile(),
renderInternal(),
widget()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
FILTER_POS_BODY,
FILTER_POS_FOOTER,
FILTER_POS_HEADER
|
public
integer
|
$selectableRows | 0 |
#
the number of table body rows that can be selected. If 0, it means rows
cannot be selected. If 1, only one row can be selected. If 2 or any other
number, it means multiple rows can be selected. A selected row will have a CSS
class named 'selected'. You may also call the JavaScript function |
public
string
|
$loadingCssClass | 'grid-view-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 'grid-view-loading'. |
public
mixed
|
$viewName |
|
|
public
boolean
|
$fullscreen | false |
|
public
array
|
$defaultGvSettings | array () |
|
public
array
|
$updateParams | array () |
|
public
mixed
|
$excludedColumns |
|
|
public
boolean
|
$enableGvSettings | true |
|
public
boolean
|
$enableControls | false |
|
public
boolean
|
$enableCheckboxColumn | true |
|
public
boolean
|
$enableGridResizing | true |
|
public
boolean
|
$enableColDragging | true |
|
public
boolean
|
$enableResponsiveTitleBar | true |
|
public
boolean
|
$enableDbPersistentGvSettings | true |
|
public
boolean
|
$fixedHeader | false |
|
public
string
|
$summaryText |
|
#
the summary text template for the view. These tokens are recognized and will be
replaced with the corresponding values:
|
public
array
|
$buttons | array() |
|
public
mixed
|
$title |
|
|
public
string
|
$gridViewJSClass | 'gvSettings' |
|
public
boolean
|
$ajax | false |
|
public
boolean
|
$evenPercentageWidthColumns | false |
|
public
boolean
|
$showHeader | true |
|
public
boolean
|
$hideFullHeader | false |
|
public
array
|
$possibleResultsPerPage | array (10, 20, 30, 40, 50, 75, 100) |
|
public
boolean
|
$hideSummary | false |
|
public
string
|
$pagerClass | 'CLinkPager' |
#
$pagerClass |
public
boolean
|
$enableSelectAllOnAllPages | false |
#
If true, the users will be able to select & perform mass action on all
records |
public
boolean
|
$calculateChecksum | false |
|
public
string
|
$gvControlsTemplate | '{view} {update} {delete}' |
#
$gvControlsTemplate |
public
string
|
$dataColumnClass | 'CDataColumn' |
#
$dataColumnClass |
public
boolean
|
$enableScrollOnPageChange | true |
#
If true, window will automatically scroll to the top when the page is changed |
public
string
|
$afterGridViewUpdateJSString | "" |
|
public
string
|
$beforeGridViewUpdateJSString | "" |
|
public
array
|
$qtipManager |
|
#
the JS prototype name followed by properties of that prototype |
public
boolean
|
$enableQtips | false |
#
whether qtips should be used, refresh method should be defined in a JS sub |
protected
string
|
$_moduleName |
|
#
$moduleName Name of the module that the grid view is being |
protected
mixed
|
$_resultsPerPage |
|
|
protected
mixed
|
$_packages |
|
|
protected
array
|
$allFieldNames | array() |
|
protected
mixed
|
$gvSettings | null |
|
protected
mixed
|
$columnSelectorId |
|
|
protected
mixed
|
$columnSelectorHtml |
|
|
protected
string
|
$_gvSettingsName |
|
#
Set to view name if value not passed to constructor. Used to save/access |
protected
string
|
$_namespacePrefix |
|
#
Used to prefix javascript namespaces, GET parameter keys, Script names, and
HTML |
protected
mixed
|
$_massActions |
|
$afterAjaxUpdate,
$ajaxType,
$ajaxUpdate,
$ajaxUpdateError,
$ajaxUrl,
$ajaxVar,
$baseScriptUrl,
$beforeAjaxUpdate,
$blankDisplay,
$columns,
$cssFile,
$enableHistory,
$filter,
$filterCssClass,
$filterPosition,
$filterSelector,
$hideHeader,
$nullDisplay,
$rowCssClass,
$rowCssClassExpression,
$rowHtmlOptionsExpression,
$selectionChanged,
$showTableOnEmpty,
$updateSelector
|
$dataProvider,
$emptyCssClass,
$emptyTagName,
$emptyText,
$enablePagination,
$enableSorting,
$htmlOptions,
$itemsCssClass,
$pager,
$pagerCssClass,
$summaryCssClass,
$summaryTagName,
$tagName,
$template
|
$actionPrefix,
$skin
|
$formatter,
$hasFooter
|
$controller,
$id,
$owner,
$viewPath
|