Prado\Util\TBehavior::attach PHP Method

attach() public method

The default implementation will set the {@link owner} property and attach event handlers as declared in {@link events}. Make sure you call the parent implementation if you override this method.
public attach ( $owner )
    public function attach($owner)
    {
        $this->_owner = $owner;
        foreach ($this->events() as $event => $handler) {
            $owner->attachEventHandler($event, array($this, $handler));
        }
    }