TasksListView Class Reference

Inheritance diagram for TasksListView:
SecuredListView ListView ModelView ListViewInterface ConfigurableMetadataView MetadataView View

Public Member Functions

 __construct ($controllerId, $moduleId, $modelClassName, $dataProvider, $selectedIds, $gridIdSuffix=null, $gridViewPagerParams=array(), $listAttributesSelector=null, $kanbanBoard=null)

Static Public Member Functions

static getDefaultMetadata ()

Protected Member Functions

 renderContent ()

Detailed Description

Definition at line 37 of file TasksListView.php.


Constructor & Destructor Documentation

__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

Reimplemented from ListView.

Definition at line 86 of file TasksListView.php.


Member Function Documentation

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))',
                    )
                );
            ?>

Reimplemented from ListView.

Definition at line 39 of file TasksListView.php.

renderContent (  )  [protected]

Renders content

Returns:
string

Reimplemented from ListView.

Definition at line 108 of file TasksListView.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri May 26 07:10:31 2017