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;
        }
    }
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;
        }
    }
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 ; } }
main invoke method, it sets the postaction attribute
if possible and checks sesskey_protected if needed
main invoke method it sets the postaction attribute if possible and checks sesskey_protected if needed