original_string: public function get_return_action() {
          global $PAGE;
  
          // Web services don't set a URL, we should avoid debugging when ussing the url object.
          if (!WS_SERVER) {
              $params = $PAGE->url->params();
          }
  
          if (!empty($params['action'])) {
              return $params['action'];
          }
          return '';
      }
code: public function get_return_action() {
          global $PAGE;
  
          // Web services don't set a URL, we should avoid debugging when ussing the url object.
          if (!WS_SERVER) {
              $params = $PAGE->url->params();
          }
  
          if (!empty($params['action'])) {
              return $params['action'];
          }
          return '';
      }
code_tokens: public function get_return_action ( ) { global $ PAGE ; // Web services don't set a URL, we should avoid debugging when ussing the url object. if ( ! WS_SERVER ) { $ params = $ PAGE -> url -> params ( ) ; } if ( ! empty ( $ params [ 'action' ] ) ) { return $ params [ 'action' ] ; } return '' ; }
docstring: Return an action that can be used to get back to the current page.
  
  @return string action
docstring_tokens: Return an action that can be used to get back to the current page .