|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | webservice |
Variables | |
| $node = $PAGE->settingsnav->find('externalservice', navigation_node::TYPE_SETTING) | |
| $newnode = $PAGE->settingsnav->find('externalservices', navigation_node::TYPE_SETTING) | |
| $id = required_param('id', PARAM_INT) | |
| $action = optional_param('action', '', PARAM_ACTION) | |
| $confirm = optional_param('confirm', 0, PARAM_BOOL) | |
| $webservicemanager = new webservice | |
| $renderer = $PAGE->get_renderer('core', 'webservice') | |
| $returnurl = "/settings.php?section=externalservices" | |
| $service = $id ? $webservicemanager->get_external_service_by_id($id, MUST_EXIST) : null | |
| if($action== 'delete'and confirm_sesskey() and $service and empty($service->component)) | $mform = new external_service_form(null, $service) |
| DELETE operation. | |
| if($mform->is_cancelled()) else | if ($servicedata=$mform->get_data()) |
| $action = optional_param('action', '', PARAM_ACTION) |
Definition at line 43 of file service.php.
| $confirm = optional_param('confirm', 0, PARAM_BOOL) |
Definition at line 44 of file service.php.
| $id = required_param('id', PARAM_INT) |
Definition at line 42 of file service.php.
| if ($action== 'delete'and confirm_sesskey() and $service and empty($service->component)) $mform = new external_service_form(null, $service) |
DELETE operation.
EDIT/CREATE/CANCEL operations => at the end redirect to add function page / main service page
Definition at line 66 of file service.php.
| $newnode = $PAGE->settingsnav->find('externalservices', navigation_node::TYPE_SETTING) |
Definition at line 34 of file service.php.
| $node = $PAGE->settingsnav->find('externalservice', navigation_node::TYPE_SETTING) |
Definition at line 33 of file service.php.
| $renderer = $PAGE->get_renderer('core', 'webservice') |
Definition at line 46 of file service.php.
| $returnurl = "/settings.php?section=externalservices" |
Definition at line 47 of file service.php.
| $service = $id ? $webservicemanager->get_external_service_by_id($id, MUST_EXIST) : null |
Definition at line 48 of file service.php.
| $webservicemanager = new webservice |
Definition at line 45 of file service.php.
Definition at line 69 of file service.php.