public function view_page($action) {
        if ($action == 'uploadfiles') {
            $users = required_param('selectedusers', PARAM_SEQUENCE);
            return $this->view_batch_upload_files(explode(',', $users));
        }
        if ($action == 'uploadzip') {
            return $this->view_upload_zip();
        }

        return '';
    }
public function view_page($action) {
        if ($action == 'uploadfiles') {
            $users = required_param('selectedusers', PARAM_SEQUENCE);
            return $this->view_batch_upload_files(explode(',', $users));
        }
        if ($action == 'uploadzip') {
            return $this->view_upload_zip();
        }

        return '';
    }
public function view_page ( $ action ) { if ( $ action == 'uploadfiles' ) { $ users = required_param ( 'selectedusers' , PARAM_SEQUENCE ) ; return $ this -> view_batch_upload_files ( explode ( ',' , $ users ) ) ; } if ( $ action == 'uploadzip' ) { return $ this -> view_upload_zip ( ) ; } return '' ; }
Called by the assignment module when someone chooses something from the
grading navigation or batch operations list.

@param string $action - The page to view
@return string - The html response
Called by the assignment module when someone chooses something from the grading navigation or batch operations list .