コード例 #1
0
 /**
  * Redirects the user to another action of the module.
  *
  * @param string The id given to the module on execution
  * @param string The action that this form should do when the form is submitted
  * @param string The id to eventually return to when the module is finished it's task
  * @param string An array of params that should be inlucded in the URL of the link.	 These should be in a $key=>$value format.
  * @param boolean A flag to determine if actions should be handled inline (no moduleinterface.php -- only works for frontend)
  */
 function Redirect($id, $action, $returnid = '', $params = array(), $inline = false)
 {
     if ($returnid == '') {
         if (is_array($this->__errors) && count($this->__errors)) {
             $params['__errors'] = implode('::err::', $this->__errors);
         }
         if (is_array($this->__messages) && count($this->__messages)) {
             $params['__messages'] = implode('::msg::', $this->__messages);
         }
     }
     $this->LoadRedirectMethods();
     return cms_module_Redirect($this, $id, $action, $returnid, $params, $inline);
 }
コード例 #2
0
 function myRedirect($id, $action, $returnid, $params = array(), $ignore_returnto = false)
 {
     if (isset($params['returnto']) && !$ignore_returnto) {
         list($mod, $act) = explode(',', $params['returnto']);
         $this->LoadRedirectMethods();
         $modobj =& $this->GetModuleInstance($mod);
         $tmp = array();
         return cms_module_Redirect($modobj, $id, $act, $returnid);
     }
     $this->Redirect($id, $action, $returnid, $params);
 }
コード例 #3
0
 /**
  * Redirects the user to another action of the module.
  *
  * @param string The id given to the module on execution
  * @param string The action that this form should do when the form is submitted
  * @param string The id to eventually return to when the module is finished it's task
  * @param string An array of params that should be inlucded in the URL of the link.	 These should be in a $key=>$value format.
  * @param boolean A flag to determine if actions should be handled inline (no moduleinterface.php -- only works for frontend)
  */
 function Redirect($id, $action, $returnid = '', $params = array(), $inline = false)
 {
     $this->LoadRedirectMethods();
     return cms_module_Redirect($this, $id, $action, $returnid, $params, $inline);
 }