Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • CBaseListView
  • CBreadcrumbs
  • CDetailView
  • CListView
  • CMenu
  • CPortlet
  • MobileActivityFeedListView
  • RecordIndexListView
  • TopicsListView
  • Overview
  • Package
  • Class
  • Tree

Class CPortlet

CPortlet is the base class for portlet widgets.

A portlet displays a fragment of content, usually in terms of a block on the side bars of a Web page.

To specify the content of the portlet, override the CPortlet::renderContent() method, or insert the content code between the CBaseController::beginWidget() and CBaseController::endWidget() calls. For example,

<?php $this->beginWidget('zii.widgets.CPortlet'); ?>
    ...insert content here...
<?php $this->endWidget(); ?>

A portlet also has an optional CPortlet::$title. One may also override CPortlet::renderDecoration() to further customize the decorative display of a portlet (e.g. adding min/max buttons).

CComponent
Extended by CBaseController
Extended by CWidget
Extended by CPortlet

Direct known subclasses

LeftWidget

Indirect known subclasses

ProfileInfo, RecentItems, TopContacts
Package: zii\widgets
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.1
Located at x2engine/framework/zii/widgets/CPortlet.php
Methods summary
public
# init( )

Initializes the widget. This renders the open tags needed by the portlet. It also renders the decoration, if any.

Initializes the widget. This renders the open tags needed by the portlet. It also renders the decoration, if any.

Overrides

CWidget::init()
public
# run( )

Renders the content of the portlet.

Renders the content of the portlet.

Overrides

CWidget::run()
protected
# renderDecoration( )

Renders the decoration for the portlet. The default implementation will render the title if it is set.

Renders the decoration for the portlet. The default implementation will render the title if it is set.

protected
# renderContent( )

Renders the content of the portlet. Child classes should override this method to render the actual content.

Renders the content of the portlet. Child classes should override this method to render the actual content.

Methods inherited from CWidget
__construct(), actions(), getController(), getId(), getOwner(), getViewFile(), getViewPath(), render(), setId()
Methods inherited from CBaseController
beginCache(), beginClip(), beginContent(), beginWidget(), createWidget(), endCache(), endClip(), endContent(), endWidget(), renderFile(), renderInternal(), widget()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Properties summary
public string $tagName 'div'
#

the tag name for the portlet container tag. Defaults to 'div'.

the tag name for the portlet container tag. Defaults to 'div'.

public array $htmlOptions array('class'=>'portlet')
#

the HTML attributes for the portlet container tag.

the HTML attributes for the portlet container tag.

public string $title
#

the title of the portlet. Defaults to null. When this is not set, Decoration will not be displayed. Note that the title will not be HTML-encoded when rendering.

the title of the portlet. Defaults to null. When this is not set, Decoration will not be displayed. Note that the title will not be HTML-encoded when rendering.

public string $decorationCssClass 'portlet-decoration'
#

the CSS class for the decoration container tag. Defaults to 'portlet-decoration'.

the CSS class for the decoration container tag. Defaults to 'portlet-decoration'.

public string $titleCssClass 'portlet-title'
#

the CSS class for the portlet title tag. Defaults to 'portlet-title'.

the CSS class for the portlet title tag. Defaults to 'portlet-title'.

public string $contentCssClass 'portlet-content'
#

the CSS class for the content container tag. Defaults to 'portlet-content'.

the CSS class for the content container tag. Defaults to 'portlet-content'.

public boolean $hideOnEmpty true
#

whether to hide the portlet when the body content is empty. Defaults to true.

whether to hide the portlet when the body content is empty. Defaults to true.

Since

1.1.4
Properties inherited from CWidget
$actionPrefix, $skin
Magic properties inherited from CWidget
$controller, $id, $owner, $viewPath
API documentation generated by ApiGen 2.8.0