Attaches the behavior object to the component. The default implementation
will set the owner property and attach event handlers as declared in
CBehavior::events(). This method will also set enabled to true. Make sure
you've declared handler as public and call the parent implementation if you
override this method.

Attaches the behavior object to the component. The default implementation
will set the owner property and attach event handlers as declared in
CBehavior::events(). This method will also set enabled to true. Make sure
you've declared handler as public and call the parent implementation if you
override this method.

Parameters

$owner

CComponent$owner the component that this behavior is to be attached to.