/** * Processes request data to determine which Distributor is being accessed. */ function process_request() { // Process the basic data parent::process_request(); // Grab the Distributor data if (!($this->distributor = get_record('sloodle_distributor', 'sloodleid', $this->sloodle->id))) { error('Failed to get SLOODLE Distributor data.'); } }
/** * Uses the parent class to process basic request information, then obtains additional Controller data. */ function process_request() { // Process basic data first parent::process_request(); // Obtain the Controller-specific data if (!($this->controller = get_record('sloodle_controller', 'sloodleid', $this->sloodle->id))) { error('Failed to locate Controller data'); } }
/** * Processes request data to determine which Presenter is being accessed. */ function process_request() { // Process the basic data parent::process_request(); // Grab any feedback left from a previous action if (!empty($_SESSION['sloodle_presenter_feedback'])) { $this->feedback = $_SESSION['sloodle_presenter_feedback']; } unset($_SESSION['sloodle_presenter_feedback']); // Construct a SLOODLE Session and load a module $this->_session = new SloodleSession(false); $this->presenter = new SloodleModulePresenter($this->_session); if (!$this->presenter->load($this->cm->id)) { return false; } $this->_session->module = $this->presenter; // Load available Presenter plugins if (!$this->_session->plugins->load_plugins('presenter')) { error('Failed to load Presenter plugins.'); return false; } }