Class CFormStringElement
CFormStringElement represents a string in a form.
- CComponent
- CFormElement
- CFormStringElement
Package: system\web\form
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/web/form/CFormStringElement.php
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/web/form/CFormStringElement.php
public
string
|
#
getOn( )
Returns a value indicating under which scenarios this string is visible. If the value is empty, it means the string is visible under all scenarios. Otherwise, only when the model is in the scenario whose name can be found in this value, will the string be visible. See CModel::scenario for more information about model scenarios. |
public
|
|
public
string
|
#
render( )
Renders this element. The default implementation simply returns |
protected
boolean
|
#
evaluateVisible( )
Evaluates the visibility of this element. This method will check the on property to see if the model is in a scenario that should have this string displayed. |
__construct(),
__get(),
__isset(),
__set(),
__toString(),
configure(),
getParent(),
getVisible(),
setVisible()
|
public
string
|
$content |
|
#
the string content |
$attributes
|
public
string
|
$on |
#
Scenario names separated by commas. Defaults to null. |
$parent,
$visible
|