SocialItemsListView Class Reference

Inheritance diagram for SocialItemsListView:
ListView ModelView ListViewInterface ConfigurableMetadataView MetadataView View

Public Member Functions

 __construct (RedBeanModelDataProvider $dataProvider, $controllerId, $moduleId, $paginationRoute, $paginationParams, $redirectUrl, $uniquePageId, $params, $renderToUserString=false)
 isUniqueToAPage ()
 getRenderToUserString ()

Static Public Member Functions

static getDefaultMetadata ()

Data Fields

 $redirectUrl

Protected Member Functions

 renderContent ()
 getCGridViewParams ()
 getCGridViewLastColumn ()
 getCGridViewPagerParams ()
 getCGridViewAfterAjaxUpdate ()
 getShowTableOnEmpty ()

Static Protected Member Functions

static getGridTemplate ()

Protected Attributes

 $controllerId
 $moduleId
 $dataProvider
 $paginationRoute
 $paginationParams
 $uniquePageId
 $params
 $renderToUserString = false
 $emptyText = ''

Detailed Description

Social items list view.

Definition at line 40 of file SocialItemsListView.php.


Constructor & Destructor Documentation

__construct ( RedBeanModelDataProvider dataProvider,
controllerId,
moduleId,
paginationRoute,
paginationParams,
redirectUrl,
uniquePageId,
params,
renderToUserString = false 
)
Parameters:
RedBeanModelDataProvider $dataProvider
string $controllerId
string $moduleId
string $paginationRoute
array $paginationParams
string $redirectUrl
string $uniquePageId
array $params
bool $renderToUserString

Definition at line 99 of file SocialItemsListView.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 130 of file SocialItemsListView.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 145 of file SocialItemsListView.php.

getCGridViewAfterAjaxUpdate (  )  [protected]

Override to not run global eval, since it causes doubling up of ajax requests on the pager. (non-PHPdoc)

See also:
ListView::getCGridViewAfterAjaxUpdate()

Reimplemented from ListView.

Definition at line 196 of file SocialItemsListView.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 205 of file SocialItemsListView.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Dec 12 07:10:29 2017