示例#1
0
 public function get_redirect()
 {
     // NULL means do not redirect
     if ($this->redirect === NULL) {
         return NULL;
     }
     // If this submission doesn't have an explicit redirect,
     // defer to the form's default
     if (empty($this->redirect)) {
         $redirect = $this->form->get_redirect();
         if (empty($redirect)) {
             return '';
         }
         return $redirect;
     }
     return $this->redirect;
 }