MashableInboxListView Class Reference

Inheritance diagram for MashableInboxListView:
ListView ModelView ListViewInterface ConfigurableMetadataView MetadataView View

Static Public Member Functions

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

Protected Member Functions

 getCGridViewLastColumn ()
 getCGridViewFirstColumn ()
 getCGridViewParams ()

Protected Attributes

 $rowsAreSelectable = true

Detailed Description

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

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 41 of file MashableInboxListView.php.

getCGridViewFirstColumn (  )  [protected]

Overrides the parent implementation to prefix the value of selectable checkBox with modelClassName

Reimplemented from ListView.

Definition at line 74 of file MashableInboxListView.php.

Field Documentation

$rowsAreSelectable = true [protected]

True/false to decide if each row in the list view widget will have a checkbox.

Reimplemented from ListView.

Definition at line 39 of file MashableInboxListView.php.

The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat Nov 16 07:10:59 2019