Phundament App Class Reference
  • Package
  • Class
  • Tree

Packages

  • bootstrap
    • widgets
      • input
  • Image
  • None
  • p3admin
  • p3extensions
    • behaviors
    • commands
    • components
    • helpers
    • widgets
  • p3media
    • actions
    • controllers
    • models
  • p3pages
    • models
  • p3widgets
    • components
    • models
  • PHP
  • system
    • db
      • ar
    • gii
    • web
      • auth
      • helpers
      • widgets
  • yiiext
    • widgets
      • fancybox
      • lipsum
  • zii
    • widgets
      • grid

Classes

  • EditableColumn

Class EditableColumn

CDataColumn represents a grid view column that is associated with a data attribute or 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 EditableColumn
Package: zii\widgets\grid
Copyright: Copyright © Vitaliy Potapov 2012
License: New BSD License
Author: Qiang Xue <qiang.xue@gmail.com>
Version: $Id$
Since: 1.1
Located at vitalets/yii-bootstrap-editable/EditableColumn.php

Methods summary

public
# init( )

Initializes the column.

Initializes the column.

Overrides

CDataColumn::init
protected
# renderDataCellContent( integer $row, mixed $data )

Renders the data cell content. This method evaluates CDataColumn::$value or CDataColumn::$name and renders the result.

Renders the data cell content. This method evaluates CDataColumn::$value or CDataColumn::$name and renders the result.

Parameters

$row
integer
$row the row number (zero-based)
$data
mixed
$data the data associated with the row

Overrides

CDataColumn::renderDataCellContent
protected
# attachAjaxUpdateEvent( )

Unfortunatly Yii yet does not support custom js events in it's widgets. So we need to invoke it manually to ensure update of editables on grid ajax update.

Unfortunatly Yii yet does not support custom js events in it's widgets. So we need to invoke it manually to ensure update of editables on grid ajax update.

issue in Yii github: https://github.com/yiisoft/yii/issues/1313

protected
# isEditable( mixed $model )

determines wether column currently editable or not

determines wether column currently editable or not

Parameters

$model
mixed
$model

Methods inherited from CDataColumn

renderFilterCellContent(), renderHeaderCellContent()

Methods inherited from CGridColumn

__construct(), getHasFooter(), renderDataCell(), renderFilterCell(), renderFooterCell(), renderFooterCellContent(), renderHeaderCell()

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()

Magic methods summary

Properties summary

public array $editable
#
protected boolean $isScriptRendered
#

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

$hasFooter

Phundament App Class Reference API documentation generated by ApiGen 2.8.0