Class X2ButtonColumn
Display column for attributes of X2Model subclasses.
- CComponent
- CGridColumn
- CButtonColumn
- X2ButtonColumn
protected
|
|
protected
|
getDataCellContent(),
init(),
renderButton()
|
__construct(),
getFilterCellContent(),
getFooterCellContent(),
getHasFooter(),
getHeaderCellContent(),
renderDataCell(),
renderDataCellContent(),
renderFilterCell(),
renderFilterCellContent(),
renderFooterCell(),
renderFooterCellContent(),
renderHeaderCell(),
renderHeaderCellContent()
|
__call(),
__get(),
__isset(),
__set(),
__unset(),
asa(),
attachBehavior(),
attachBehaviors(),
attachEventHandler(),
canGetProperty(),
canSetProperty(),
detachBehavior(),
detachBehaviors(),
detachEventHandler(),
disableBehavior(),
disableBehaviors(),
enableBehavior(),
enableBehaviors(),
evaluateExpression(),
getEventHandlers(),
hasEvent(),
hasEventHandler(),
hasProperty(),
raiseEvent()
|
public
string
|
$viewButtonImageUrl | false |
#
the image URL for the view button. If not set, an integrated image will be used. You may set this property to be false to render a text link instead. |
public
string
|
$updateButtonImageUrl | false |
#
the image URL for the update button. If not set, an integrated image will be used. You may set this property to be false to render a text link instead. |
public
string
|
$deleteButtonImageUrl | false |
#
the image URL for the delete button. If not set, an integrated image will be used. You may set this property to be false to render a text link instead. |
public
mixed
|
$name |
|
|
public
string
|
$viewButtonUrl | '
$data instanceof X2Model ?
Yii::app()->createUrl(
"/".lcfirst (X2Model::getModuleName (get_class ($data)))."/view",
array("id"=>$data->primaryKey)) :
Yii::app()->controller->createUrl("view", array("id"=>$data->primaryKey))' |
#
a PHP expression that is evaluated for every view button and whose result is
used as the URL for the view button. In this expression, you can use the
following variables:
CComponent::evaluateExpression() .
A PHP expression can be any PHP code that has a value. To learn more about what an expression is, please refer to the php manual. |
public
string
|
$updateButtonUrl | '
$data instanceof X2Model ?
Yii::app()->createUrl(
"/".lcfirst (X2Model::getModuleName (get_class ($data)))."/update",
array("id"=>$data->primaryKey)) :
Yii::app()->controller->createUrl("update", array("id"=>$data->primaryKey))' |
#
a PHP expression that is evaluated for every update button and whose result is
used as the URL for the update button. In this expression, you can use the
following variables:
CComponent::evaluateExpression() .
A PHP expression can be any PHP code that has a value. To learn more about what an expression is, please refer to the php manual. |
public
string
|
$deleteButtonUrl | '
$data instanceof X2Model ?
Yii::app()->createUrl(
"/".lcfirst (X2Model::getModuleName (get_class ($data)))."/delete",
array("id"=>$data->primaryKey)) :
Yii::app()->controller->createUrl("delete", array("id"=>$data->primaryKey))' |
#
a PHP expression that is evaluated for every delete button and whose result is
used as the URL for the delete button. In this expression, you can use the
following variables:
CComponent::evaluateExpression() .
A PHP expression can be any PHP code that has a value. To learn more about what an expression is, please refer to the php manual. |
$afterDelete,
$buttons,
$deleteButtonLabel,
$deleteButtonOptions,
$deleteConfirmation,
$footerHtmlOptions,
$headerHtmlOptions,
$htmlOptions,
$template,
$updateButtonLabel,
$updateButtonOptions,
$viewButtonLabel,
$viewButtonOptions
|
$cssClassExpression,
$filterHtmlOptions,
$footer,
$grid,
$header,
$id,
$visible
|
$filterCellContent,
$footerCellContent,
$hasFooter,
$headerCellContent
|