src/eforms/classes/Form.php
public function processActions()
    {
        $Eresus = Eresus_CMS::getLegacyKernel();

        $this->parse();
        $actionsElement = $this->xml->getElementsByTagNameNS(self::NS, 'actions');

        if ($actionsElement)
        {
            $actions = $actionsElement->item(0)->childNodes;
            for ($i = 0; $i < $actions->length; $i++)
            {
                $action = $actions->item($i);
                if ($action->nodeType == XML_ELEMENT_NODE)
                {
                    $this->processAction($action);
                }
            }
        }

        if ($this->redirect)
        {
            $url = $this->redirect;
            if (!is_null($this->marker))
            {
                $url .= '#' . $this->marker;
            }
            HTTP::redirect($url);
        }
        elseif (!$this->html)
        {
            HTTP::redirect($Eresus->request['referer']);
        }
        return $this->html;
    }
public function processActions()
    {
        $Eresus = Eresus_CMS::getLegacyKernel();

        $this->parse();
        $actionsElement = $this->xml->getElementsByTagNameNS(self::NS, 'actions');

        if ($actionsElement)
        {
            $actions = $actionsElement->item(0)->childNodes;
            for ($i = 0; $i < $actions->length; $i++)
            {
                $action = $actions->item($i);
                if ($action->nodeType == XML_ELEMENT_NODE)
                {
                    $this->processAction($action);
                }
            }
        }

        if ($this->redirect)
        {
            $url = $this->redirect;
            if (!is_null($this->marker))
            {
                $url .= '#' . $this->marker;
            }
            HTTP::redirect($url);
        }
        elseif (!$this->html)
        {
            HTTP::redirect($Eresus->request['referer']);
        }
        return $this->html;
    }
public function processActions ( ) { $ Eresus = Eresus_CMS :: getLegacyKernel ( ) ; $ this -> parse ( ) ; $ actionsElement = $ this -> xml -> getElementsByTagNameNS ( self :: NS , 'actions' ) ; if ( $ actionsElement ) { $ actions = $ actionsElement -> item ( 0 ) -> childNodes ; for ( $ i = 0 ; $ i < $ actions -> length ; $ i ++ ) { $ action = $ actions -> item ( $ i ) ; if ( $ action -> nodeType == XML_ELEMENT_NODE ) { $ this -> processAction ( $ action ) ; } } } if ( $ this -> redirect ) { $ url = $ this -> redirect ; if ( ! is_null ( $ this -> marker ) ) { $ url .= '#' . $ this -> marker ; } HTTP :: redirect ( $ url ) ; } elseif ( ! $ this -> html ) { HTTP :: redirect ( $ Eresus -> request [ 'referer' ] ) ; } return $ this -> html ; }
Process form actions
Process form actions