system system.base system.caching system.caching.dependencies system.collections system.console system.db system.db.ar system.db.schema system.db.schema.mssql system.db.schema.mysql system.db.schema.oci system.db.schema.pgsql system.db.schema.sqlite system.i18n system.i18n.gettext system.logging system.utils system.validators system.web system.web.actions system.web.auth system.web.filters system.web.helpers system.web.renderers system.web.services system.web.widgets system.web.widgets.captcha system.web.widgets.pagers

IBehavior

system.base
继承 interface IBehavior
子类 CActiveRecordBehavior, CBehavior, CModelBehavior
可用自 1.0.2
版本 $Id$
IBehavior interfaces is implemented by all behavior classes.

A behavior is a way to enhance a component with additional methods that are defined in the behavior class and not available in the component class.

公共方法

隐藏继承的方法

方法描述被定义在
attach() Attaches the behavior object to the component. IBehavior
detach() Detaches the behavior object from the component. IBehavior
getEnabled() IBehavior
setEnabled() IBehavior

方法详情

attach() 方法
abstract public void attach(CComponent $component)
$component CComponent the component that this behavior is to be attached to.

Attaches the behavior object to the component.

detach() 方法
abstract public void detach(CComponent $component)
$component CComponent the component that this behavior is to be detached from.

Detaches the behavior object from the component.

getEnabled() 方法
abstract public boolean getEnabled()
{return} boolean whether this behavior is enabled

setEnabled() 方法
abstract public void setEnabled(boolean $value)
$value boolean whether this behavior is enabled