"Fossies" - the Fresh Open Source Software Archive

Member "yii-docs-1.1.24.a5ab20/api/IBehavior.html" (7 Jun 2021, 8363 Bytes) of package /linux/www/yii-docs-1.1.24.a5ab20.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. You can here alternatively try to browse the pure source code or just view or download the uninterpreted raw source code. If the rendering is insufficient you may try to find and view the page on the project site itself.

Yii Framework v1.1.24 Class Reference

IBehavior

Package system.base
Inheritance interface IBehavior
Subclasses CActiveRecordBehavior, CBehavior, CConsoleCommandBehavior, CModelBehavior, CTimestampBehavior
Source Code framework/base/interfaces.php
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.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
attach() Attaches the behavior object to the component. IBehavior
detach() Detaches the behavior object from the component. IBehavior
getEnabled() Returns whether this behavior is enabled IBehavior
setEnabled() Sets whether this behavior is enabled IBehavior

Method Details

attach() method
abstract public void attach(CComponent $component)
$component CComponent the component that this behavior is to be attached to.
Source Code: framework/base/interfaces.php#513 (show)
public function attach($component);

Attaches the behavior object to the component.

detach() method
abstract public void detach(CComponent $component)
$component CComponent the component that this behavior is to be detached from.
Source Code: framework/base/interfaces.php#518 (show)
public function detach($component);

Detaches the behavior object from the component.

getEnabled() method
abstract public boolean getEnabled()
{return} boolean whether this behavior is enabled
Source Code: framework/base/interfaces.php#522 (show)
public function getEnabled();

setEnabled() method
abstract public void setEnabled(boolean $value)
$value boolean whether this behavior is enabled
Source Code: framework/base/interfaces.php#526 (show)
public function setEnabled($value);

© 2008-2013 by Yii Software LLC
All Rights Reserved.