_element = $targetElement; if ($this->_element) { $this->_element->addBehavior($this); } } /** * Abstract method. This method is invoked during the render cycle of the * behavior. The this method in invoked the context of the DHTML on the page will * contain a javascript reference to the element idenfitied by the target element * For example: * * * @param ZFormElement $element */ abstract public function emitClientBehavior($element); /** * Abstract method which must be implemented by subclasses. This method is * invoked before any rendering is started of the component. This give the * bahavior a chance to make any changes to the layout of the element * its children or its parent chain. * */ abstract public function applyClientBehavior(ZFormElement $element); } ?>