CalendarItemsListView Class Reference

Inheritance diagram for CalendarItemsListView:
ListView ModelView ListViewInterface ConfigurableMetadataView MetadataView View

Public Member Functions

 __construct ($controllerId, $moduleId, $calendarItems, $params)
 getGridViewId ()

Static Public Member Functions

static getDefaultMetadata ()
static getDesignerRulesType ()

Protected Member Functions

 getCGridViewPagerParams ()
 getDataProvider ()
 resolveConfigForDataProvider ()
 renderContent ()
 renderScripts ()
 getCGridViewColumns ()
 getCGridViewLastColumn ()

Static Protected Member Functions

static getPagerCssClass ()
static getSummaryText ()

Protected Attributes

 $calendarItems
 $params

Detailed Description

Calendar Items list view display.

Definition at line 40 of file CalendarItemsListView.php.


Constructor & Destructor Documentation

__construct ( controllerId,
moduleId,
calendarItems,
params 
)

Class constructor.

Parameters:
string $controllerId
string $moduleId
string $calendarItems
string $params

Definition at line 53 of file CalendarItemsListView.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 61 of file CalendarItemsListView.php.

static getPagerCssClass (  )  [static, protected]

Gets pager css class.

Returns:
string

Reimplemented from ListView.

Definition at line 117 of file CalendarItemsListView.php.

static getSummaryText (  )  [static, protected]

Gets summary text.

Returns:
string

Reimplemented from ListView.

Definition at line 126 of file CalendarItemsListView.php.

getCGridViewPagerParams (  )  [protected]

Gets grid view pager params.

Returns:
array

Reimplemented from ListView.

Definition at line 135 of file CalendarItemsListView.php.

static getDesignerRulesType (  )  [static]

Gets designer rule type.

Returns:
null

Reimplemented from ListView.

Definition at line 152 of file CalendarItemsListView.php.

getDataProvider (  )  [protected]

Gets data provider.

Returns:
CalendarListItemsDataProvider

Reimplemented from ListView.

Definition at line 161 of file CalendarItemsListView.php.

resolveConfigForDataProvider (  )  [protected]

Resolve configuration for data provider

Returns:
array

Definition at line 170 of file CalendarItemsListView.php.

getGridViewId (  ) 

Gets grid view id.

Returns:
string

Reimplemented from ListView.

Definition at line 183 of file CalendarItemsListView.php.

renderContent (  )  [protected]

Renders the content by adding the scripts necessary for the view.

Returns:
string

Reimplemented from ListView.

Definition at line 193 of file CalendarItemsListView.php.

renderScripts (  )  [protected]

Render script for interaction.js

Reimplemented from ListView.

Definition at line 203 of file CalendarItemsListView.php.

getCGridViewColumns (  )  [protected]

Get the meta data and merge with standard CGridView column elements to create a column array that fits the CGridView columns API

Reimplemented from ListView.

Definition at line 215 of file CalendarItemsListView.php.

getCGridViewLastColumn (  )  [protected]

Gets grid view last column.

Returns:
array

Reimplemented from ListView.

Definition at line 245 of file CalendarItemsListView.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Mon Nov 20 07:10:22 2017