<?php
/**
* Example Web Services
*
* Example structure for a more complex web service
* that can support multiple endpoints and service types:
* /path/to/plugin/
* webservices/
* TYPE/ (EG: rest)
* ENDPOINTNAME.php (EG: user.php)
* model/
* response/ (Store response classes here)
* service/ (Store service classes here)
*
* @author Mark Nielsen
* @package blocks/helloworld
***/
define('NO_DEBUG_DISPLAY', true);
define('NO_MOODLE_COOKIES', true);
require_once('../../config.php');
require($CFG->dirroot.'/local/mr/bootstrap.php');
require($CFG->dirroot.'/blocks/helloworld/lib/server/service.php');
require($CFG->dirroot.'/blocks/helloworld/lib/server/response.php');
// Server validation (Mix and match)
$validator = new Zend_Validate();
$server =
new mr_server_rest('blocks_helloworld_lib_server_service', 'blocks_helloworld_lib_server_response', $validator);