private attachBehaviorInternal ( string | integer $name, string | array | |
||
$name | string | integer | the name of the behavior. If this is an integer, it means the behavior is an anonymous one. Otherwise, the behavior is a named one and any existing behavior with the same name will be detached first. |
$behavior | string | array | |
the behavior to be attached |
return | the attached behavior. |