Example #1
0
 protected function _render()
 {
     $utils = Utils::getInstance();
     if ($utils->globals->session('send_operation') && $utils->globals->session('target_form') == $this->ref) {
         $this->_oNode->setAttribute('method', 'get');
         $this->_oNode->setAttribute('action', '#');
         DOMParser::replaceNodeContent($this->_getSendedMessage(), $this->_oNode);
     } else {
         if ($this->ignored !== $this->_getIgnoredInputs()) {
             $this->ignored = $this->_getIgnoredInputs();
             $this->save();
         }
         if ($utils->globals->has('send_operation', 'session') && $utils->globals->session('target_form') == $this->ref) {
             DOMNode::appendToNode($this->_getErrorMessage(), $this->_oNode);
         }
         $this->_oNode->setAttribute('method', 'post');
         if ($this->_sLang) {
             $this->_oNode->setAttribute('action', '/' . $this->_sLang . '/form/' . $this->ref . '/send.html');
         } else {
             $this->_oNode->setAttribute('action', '/form/' . $this->ref . '/send.html');
         }
     }
     unset($_SESSION['target_form']);
     unset($_SESSION['send_operation']);
 }