framework/base/Component.php
public function attachBehaviors($behaviors)
    {
        $this->ensureBehaviors();
        foreach ($behaviors as $name => $behavior) {
            $this->attachBehaviorInternal($name, $behavior);
        }
    }
public function attachBehaviors($behaviors)
    {
        $this->ensureBehaviors();
        foreach ($behaviors as $name => $behavior) {
            $this->attachBehaviorInternal($name, $behavior);
        }
    }
public function attachBehaviors ( $ behaviors ) { $ this -> ensureBehaviors ( ) ; foreach ( $ behaviors as $ name => $ behavior ) { $ this -> attachBehaviorInternal ( $ name , $ behavior ) ; } }
Attaches a list of behaviors to the component.
Each behavior is indexed by its name and should be a [[Behavior]] object,
a string specifying the behavior class, or an configuration array for creating the behavior.
@param array $behaviors list of behaviors to be attached to the component
@see attachBehavior()
Attaches a list of behaviors to the component . Each behavior is indexed by its name and should be a [[ Behavior ]] object a string specifying the behavior class or an configuration array for creating the behavior .