MissionsListView Class Reference

Inheritance diagram for MissionsListView:
SecuredListView ListView ModelView ListViewInterface ConfigurableMetadataView MetadataView View MissionsPortletListView

Static Public Member Functions

static getDefaultMetadata ()
static resolveRowCssClasses ($grid, $row, $data)

Protected Member Functions

 getCGridViewLastColumn ()
 getCGridViewParams ()

Detailed Description

Definition at line 37 of file MissionsListView.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.

                $metadata = array(
                        'class' => 'CDataColumn',
                        'name'  => 'id',
                        '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 MissionsListView.php.

getCGridViewLastColumn (  )  [protected]

Override so the edit link does not show. (non-PHPdoc)

See also:

Reimplemented from SecuredListView.

Reimplemented in MissionsPortletListView.

Definition at line 73 of file MissionsListView.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Fri Nov 22 07:11:14 2019