Example #1
0
    /**
     * Create JS function for retrieving parent form
     *
     * @return void
     */
    protected function _createGetParentFormFunction()
    {
        $function = <<<EOJ
if (zend == undefined) {
    var zend = {};
}
zend.findParentForm = function(elementNode) {
    while (elementNode.nodeName.toLowerCase() != 'form') {
        elementNode = elementNode.parentNode;
    }
    return elementNode;
};
EOJ;
        $this->dojo->addJavascript($function);
    }
Example #2
0
 /**
  * Set view object
  *
  * @param  Zend\View\Renderer $view
  * @return void
  */
 public function setView(View $view)
 {
     $this->view = $view;
     $this->_container->setView($view);
 }