/**
  * @param string $action action selector where form will be submit
  * @param array $actionParams  parameters for the action
  */
 public function setAction($action, $actionParams)
 {
     $this->_action = $action;
     $this->_actionParams = $actionParams;
     $this->_name = jFormsBuilderBase::generateFormName($this->_form->getSelector());
     if ($GLOBALS['gJCoord']->response != null && $GLOBALS['gJCoord']->response->getType() == 'html') {
         $this->_endt = $GLOBALS['gJCoord']->response->isXhtml() ? '/>' : '>';
     }
 }
Ejemplo n.º 2
0
 /**
  * @param string $action action selector where form will be submit
  * @param array $actionParams  parameters for the action
  */
 public function setAction($action, $actionParams)
 {
     $this->_action = $action;
     $this->_actionParams = $actionParams;
     $this->_name = self::generateFormName($this->_form->getSelector());
     if (\jApp::coord()->response != null && \jApp::coord()->response->getType() == 'html') {
         $this->_endt = \jApp::coord()->response->isXhtml() ? '/>' : '>';
     }
 }