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
  • None
  • system
    • base
    • caching
    • console
    • db
      • ar
      • schema
    • validators
    • web
      • actions
      • auth
      • helpers
      • widgets
        • captcha
        • pagers
  • zii
    • widgets
      • grid

Classes

  • X2CheckBoxColumn
  • X2DataColumnGeneric
  • Overview
  • Package
  • Class
  • Tree

Class X2DataColumnGeneric

CDataColumn represents a grid view column that is associated with a data attribute or PHP expression.

Either CDataColumn::$name or CDataColumn::$value should be specified. The former specifies a data attribute name, while the latter a PHP expression whose value should be rendered instead.

The property CDataColumn::$sortable determines whether the grid view can be sorted according to this column. Note that the CDataColumn::$name should always be set if the column needs to be sortable. The CDataColumn::$name value will be used by CSort to render a clickable link in the header cell to trigger the sorting.

CComponent
Extended by CGridColumn
Extended by CDataColumn
Extended by X2DataColumnGeneric
Package: zii\widgets\grid
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.1
Located at x2engine/protected/components/X2GridView/X2DataColumnGeneric.php
Methods summary
public
# init( )

Initializes the column.

Initializes the column.

Overrides

CDataColumn::init()
public
# renderDataCell( integer $row )

This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/

This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/

Parameters

$row
integer
$row the row number (zero-based)

Overrides

CGridColumn::renderDataCell()
public
# evaluateHtmlOptions( array $options, mixed $data )

Allows php snippets to be included in html option values

Allows php snippets to be included in html option values

protected
# renderFilterCellContent( )

Renders the filter cell content. This method will render the CDataColumn::$filter as is if it is a string. If CDataColumn::$filter is an array, it is assumed to be a list of options, and a dropdown selector will be rendered. Otherwise if CDataColumn::$filter is not false, a text field is rendered.

Renders the filter cell content. This method will render the CDataColumn::$filter as is if it is a string. If CDataColumn::$filter is an array, it is assumed to be a list of options, and a dropdown selector will be rendered. Otherwise if CDataColumn::$filter is not false, a text field is rendered.

Since

1.1.1 This method is Copyright (c) 2008-2014 by Yii Software LLC http://www.yiiframework.com/license/

Overrides

CGridColumn::renderFilterCellContent()
public
# renderFilterCellByType( )
Methods inherited from CDataColumn
getDataCellContent(), getFilterCellContent(), getHeaderCellContent()
Methods inherited from CGridColumn
__construct(), getFooterCellContent(), getHasFooter(), renderDataCellContent(), renderFilterCell(), renderFooterCell(), renderFooterCellContent(), renderHeaderCell(), renderHeaderCellContent()
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 $filterType
#

$filterType

$filterType

public mixed $width
#
Properties inherited from CDataColumn
$filter, $name, $sortable, $type, $value
Properties inherited from CGridColumn
$cssClassExpression, $filterHtmlOptions, $footer, $footerHtmlOptions, $grid, $header, $headerHtmlOptions, $htmlOptions, $id, $visible
Magic properties inherited from CGridColumn
$filterCellContent, $footerCellContent, $hasFooter, $headerCellContent
X2CRM Documentation API documentation generated by ApiGen 2.8.0