Yii Framework v1.1.10 绫诲弬鑰

IBehavior

system.base
缁ф壙 interface IBehavior
瀛愮被 CActiveRecordBehavior, CBehavior, CModelBehavior, CTimestampBehavior
鐗堟湰 $Id: interfaces.php 3515 2011-12-28 12:29:24Z mdomba $
婧愮爜 framework/base/interfaces.php
IBehavior鏄墍鏈夎涓虹被蹇呴』瀹炵幇鐨勬帴鍙c

琛屼负鏄竴绉嶅彲浠ュ寮虹粍浠剁殑闄勫姞鏂规硶闄勫姞鏂规硶瀹氫箟鍦ㄨ涓虹被涓紝 鑰屽湪缁勪欢绫讳腑娌℃湁銆

鍏叡鏂规硶

闅愯棌缁ф壙鏂规硶

鏂规硶鎻忚堪瀹氫箟鍦
attach() 闄勫姞琛屼负瀵硅薄鍒扮粍浠躲 IBehavior
detach() 浠庣粍浠跺垎绂昏涓恒 IBehavior
getEnabled() 杩斿洖鏄惁鍚敤琛屼负 IBehavior
setEnabled() 璁剧疆琛屼负鏄惁琚惎鐢 IBehavior

鏂规硶璇︾粏

attach() 鏂规硶
abstract public void attach(CComponent $component)
$component CComponent 瑕侀檮鍔犺涓虹殑缁勪欢銆
婧愮爜锛 framework/base/interfaces.php#515 (鏄剧ず)
public function attach($component);

闄勫姞琛屼负瀵硅薄鍒扮粍浠躲

detach() 鏂规硶
abstract public void detach(CComponent $component)
$component CComponent 瑕佸垎绂昏涓虹殑缁勪欢銆
婧愮爜锛 framework/base/interfaces.php#520 (鏄剧ず)
public function detach($component);

浠庣粍浠跺垎绂昏涓恒

getEnabled() 鏂规硶
abstract public boolean getEnabled()
{return} boolean 鏄惁鍚敤琛屼负
婧愮爜锛 framework/base/interfaces.php#524 (鏄剧ず)
public function getEnabled();

setEnabled() 鏂规硶
abstract public void setEnabled(boolean $value)
$value boolean 琛屼负鏄惁琚惎鐢
婧愮爜锛 framework/base/interfaces.php#528 (鏄剧ず)
public function setEnabled($value);

Copyright © 2008-2011 by Yii Software LLC
All Rights Reserved.