mirror of
https://github.com/moodle/moodle.git
synced 2025-02-24 20:13:14 +01:00
48 lines
887 B
PHP
48 lines
887 B
PHP
<?php
|
|
/*
|
|
* Created on 01/12/2008
|
|
*
|
|
* Moodle base webservice api
|
|
*
|
|
* @author Jerome Mouneyrac
|
|
*/
|
|
|
|
/**
|
|
* DO NOT USE ANYTHING FROM THIS FILE - WORK IN PROGRESS
|
|
*/
|
|
abstract class moodle_external {
|
|
|
|
protected $descriptions;
|
|
|
|
/**
|
|
* Constructor - We set the description of this API in order to be access by Web service
|
|
*/
|
|
function __construct () {
|
|
$this->descriptions = array();
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param string $functionname
|
|
* @return array
|
|
*/
|
|
public function get_function_webservice_description($functionname) {
|
|
if (key_exists($functionname, $this->descriptions)) {
|
|
return $this->descriptions[$functionname];
|
|
}
|
|
else {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return array
|
|
*/
|
|
public function get_descriptions() {
|
|
return $this->descriptions;
|
|
}
|
|
|
|
}
|
|
?>
|