|
| __construct ($controllerId, $moduleId, $modelClassName, $dataProvider, $selectedIds, $gridIdSuffix=null, $gridViewPagerParams=array(), $listAttributesSelector=null, $kanbanBoard=null) |
|
| getRowsAreSelectable () |
|
| setRowsAreSelectable ($value) |
|
| getSummaryCloneId () |
|
| getTableColumnGroup () |
|
| setEmptyText ($text) |
|
| getGridViewId () |
|
| getLinkString ($attributeString, $attribute) |
|
| getRelatedLinkString ($attributeString, $attributeName, $moduleId) |
|
| getModuleId () |
|
| getControllerId () |
|
| getModelClassName () |
|
| getTitle () |
|
| resolveViewAndMetadataValueByName ($name) |
|
| resolveEvaluateSubString (&$element, $key) |
|
| isUniqueToAPage () |
|
| render () |
|
| setCssClasses (array $classes) |
|
| getCssClasses () |
|
| getTitle () |
|
| getPostTruncatedTitleContent () |
|
|
static | getGridTemplate () |
|
static | getPagerCssClass () |
|
static | getSummaryText () |
|
static | getSummaryCssClass () |
|
static | assertMetadataIsValid (array $metadata) |
|
static | assertMetadataIsValid (array $metadata) |
|
static | resolveMetadataClassNameToUse () |
|
static | getOptionsMenuCssClass () |
|
|
| $controllerId |
|
| $moduleId |
|
| $dataProvider |
|
| $renderViewToolBarDuringRenderContent = true |
|
| $rowsAreSelectable = false |
|
| $gridId |
|
| $gridIdSuffix |
|
| $selectedIds |
|
| $gridViewPagerParams = array() |
|
| $emptyText = null |
|
| $modelClassName |
|
| $editableDesignerMetadata = false |
|
| $disableFloatOnToolbar = false |
|
| $modelId |
|
| $cssClasses = array() |
|
| $title |
|
| $makeDefaultClassesFromClassHeirarchy = true |
|
The base View for a module's list view.
Definition at line 40 of file ListView.php.
__construct |
( |
|
$controllerId, |
|
|
|
$moduleId, |
|
|
|
$modelClassName, |
|
|
|
$dataProvider, |
|
|
|
$selectedIds, |
|
|
|
$gridIdSuffix = null , |
|
|
|
$gridViewPagerParams = array() , |
|
|
|
$listAttributesSelector = null , |
|
|
|
$kanbanBoard = null |
|
) |
| |
Constructs a list view specifying the controller as well as the model that will have its details displayed.isDisplayAttributeACalculationOrModifier
Definition at line 95 of file ListView.php.
Renders content for a list view. Utilizes a CActiveDataprovider and a CGridView widget. and form layout.
- Returns
- A string containing the element's content.
Definition at line 142 of file ListView.php.
For a Kanban Board view, the rows are never selectable.
- Returns
- bool
Definition at line 187 of file ListView.php.
Get the meta data and merge with standard CGridView column elements to create a column array that fits the CGridView columns API
Definition at line 337 of file ListView.php.
static getDefaultMetadata |
( |
| ) |
|
|
static |
Returns meta data for use in automatically generating the view. The meta data is comprised of columns. The parameters match the parameters used in CGridView. See link below for more information. http://www.yiiframework.com/doc/api/1.1/CGridView/
The below example is a simple listview with the 'id' and 'name' attributes The 'name' column has a hyperlink to the detail view for that record.
<?php
$metadata = array(
array(
'class' => 'CDataColumn',
'name' => 'id',
),
array(
'class' => 'CLinkColumn',
'header' => Zurmo::t('Core', 'Name'),
'labelExpression' => '$data->name',
'urlExpression' => 'Yii::app()->createUrl("/{$this->grid->getOwner()->getModule()->getId()}/{$this->grid->getOwner()->getId()}/details", array("id" => $data->id))',
)
);
?>
Definition at line 450 of file ListView.php.
static canRenderRowMenuColumnByElementAndData |
( |
|
$element, |
|
|
|
$data |
|
) |
| |
|
static |
As you are rendering row columns, you can override this method to make it dependent on values within the data which is most likely a model.
- Parameters
-
- Returns
- bool
Definition at line 462 of file ListView.php.
getActionModuleClassName |
( |
| ) |
|
|
protected |
Module class name for models linked from rows in the grid view.
Definition at line 565 of file ListView.php.
processColumnInfoToFetchColumnData |
( |
|
$columnInformation | ) |
|
|
protected |
Process input column information to fetch column data
Definition at line 605 of file ListView.php.
Checks if header cells have to be hidden
- Returns
- bool
Definition at line 621 of file ListView.php.
resolveRowMenuColumnClass |
( |
| ) |
|
|
protected |
Resolve row menu column class.
- Returns
- string
Definition at line 630 of file ListView.php.
$rowsAreSelectable = false |
|
protected |
True/false to decide if each row in the list view widget will have a checkbox.
Definition at line 58 of file ListView.php.
Unique identifier of the list view widget. Allows for multiple list view widgets on a single page.
- See Also
- $
Definition at line 65 of file ListView.php.
Array of model ids. Each id is for a different row checked off
Definition at line 76 of file ListView.php.
$gridViewPagerParams = array() |
|
protected |
Array containing CGridViewPagerParams
Definition at line 81 of file ListView.php.
The documentation for this class was generated from the following file: