original_string: function invoke() {
  
          global $SESSION;
  
          // Sesskey protection
          if ($this->sesskey_protected) {
              require_sesskey();
          }
  
          // If we are used any dir, save it in the lastused session object
          // Some actions can use it to perform positioning
          if ($lastused = optional_param ('dir', NULL, PARAM_PATH)) {
              $SESSION->lastused = $lastused;
          }
  
          $this->postaction = optional_param ('postaction', NULL, PARAM_ALPHAEXT);
          // Avoid being recursive
          if ($this->title == $this->postaction) {
              $this->postaction = NULL;
          }
      }
code: function invoke() {
  
          global $SESSION;
  
          // Sesskey protection
          if ($this->sesskey_protected) {
              require_sesskey();
          }
  
          // If we are used any dir, save it in the lastused session object
          // Some actions can use it to perform positioning
          if ($lastused = optional_param ('dir', NULL, PARAM_PATH)) {
              $SESSION->lastused = $lastused;
          }
  
          $this->postaction = optional_param ('postaction', NULL, PARAM_ALPHAEXT);
          // Avoid being recursive
          if ($this->title == $this->postaction) {
              $this->postaction = NULL;
          }
      }
code_tokens: function invoke ( ) { global $ SESSION ; // Sesskey protection if ( $ this -> sesskey_protected ) { require_sesskey ( ) ; } // If we are used any dir, save it in the lastused session object // Some actions can use it to perform positioning if ( $ lastused = optional_param ( 'dir' , NULL , PARAM_PATH ) ) { $ SESSION -> lastused = $ lastused ; } $ this -> postaction = optional_param ( 'postaction' , NULL , PARAM_ALPHAEXT ) ; // Avoid being recursive if ( $ this -> title == $ this -> postaction ) { $ this -> postaction = NULL ; } }
docstring: main invoke method, it sets the postaction attribute
  if possible and checks sesskey_protected if needed
docstring_tokens: main invoke method it sets the postaction attribute if possible and checks sesskey_protected if needed