ProjectsFeedListView Class Reference

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

Public Member Functions

 getGridViewId ()

Static Public Member Functions

static getDefaultMetadata ()
static getDesignerRulesType ()

Protected Member Functions

 renderContent ()
 getCGridViewPagerParams ()
 getListActionId ()
 isHeaderHidden ()
 getCGridViewLastColumn ()

Static Protected Member Functions

static getPagerCssClass ()
static getSummaryText ()

Detailed Description

Definition at line 37 of file ProjectsFeedListView.php.


Member Function Documentation

renderContent (  )  [protected]

Renders content for a list view. Utilizes a CActiveDataprovider and a CGridView widget. and form layout.

Returns:
A string containing the element's content.

Reimplemented from ListView.

Definition at line 45 of file ProjectsFeedListView.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))',
                    )
                );
            ?>

Reimplemented from ListView.

Definition at line 58 of file ProjectsFeedListView.php.

getCGridViewPagerParams (  )  [protected]
Returns:
array

Reimplemented from ListView.

Definition at line 86 of file ProjectsFeedListView.php.

static getPagerCssClass (  )  [static, protected]
Returns:
string

Reimplemented from ListView.

Definition at line 102 of file ProjectsFeedListView.php.

static getSummaryText (  )  [static, protected]
Returns:
string

Reimplemented from ListView.

Definition at line 110 of file ProjectsFeedListView.php.

getListActionId (  )  [protected]
Returns:
string

Reimplemented from ListView.

Definition at line 118 of file ProjectsFeedListView.php.

isHeaderHidden (  )  [protected]

Checks if header cells have to be hidden

Returns:
bool

Reimplemented from ListView.

Definition at line 127 of file ProjectsFeedListView.php.

getCGridViewLastColumn (  )  [protected]
Returns:
array

Reimplemented from SecuredListView.

Definition at line 135 of file ProjectsFeedListView.php.

getGridViewId (  ) 
Returns:
string

Reimplemented from ListView.

Definition at line 143 of file ProjectsFeedListView.php.

static getDesignerRulesType (  )  [static]

Override in each sub-class if you have applicable designer rules for handling the modification of metadata layouts

Returns:
null or a DesignerRules Class;

Reimplemented from ListView.

Definition at line 148 of file ProjectsFeedListView.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Thu Jun 22 07:10:28 2017