LeaderboardListView Class Reference

Inheritance diagram for LeaderboardListView:
ListView ModelView ListViewInterface ConfigurableMetadataView MetadataView View

Public Member Functions

 isUniqueToAPage ()
 getRowsAreSelectable ()
 getTableColumnGroup ()

Static Public Member Functions

static getDefaultMetadata ()

Protected Member Functions

 getGridViewMenuColumn ()
 getCGridViewLastColumn ()
 getCGridViewPagerParams ()

Detailed Description

A view that displays the gamification leaderboard

Definition at line 41 of file LeaderboardListView.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 43 of file LeaderboardListView.php.

isUniqueToAPage (  ) 

Tells View that it can render the extending class' divs with and id matching their name. Must be overridden to return false in extending classes that can be rendered multiple times within a page to avoid generating a page with non-unique ids which will fail XHtml validation. For those it will render a class attribute with their name.

Reimplemented from View.

Definition at line 85 of file LeaderboardListView.php.

getRowsAreSelectable (  ) 

For a Kanban Board view, the rows are never selectable.

Returns:
bool

Reimplemented from ListView.

Definition at line 90 of file LeaderboardListView.php.


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