Talk:Creating a web service and a web service function: Difference between revisions
From MoodleDocs
No edit summary |
David Mudrak (talk | contribs) m (Text replacement - "</code>" to "</syntaxhighlight>") |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
Seemed to have missed a vital bit.. how to set up the class. Looking at other bits of code I assume: | Seemed to have missed a vital bit.. how to set up the class. Looking at other bits of code I assume: | ||
< | <syntaxhighlight lang="php"> | ||
require_once("$CFG->libdir/externallib.php"); | require_once("$CFG->libdir/externallib.php"); | ||
class moodle_group_external extends external_api { | class moodle_group_external extends external_api { | ||
</ | </syntaxhighlight>--[[User:Howard Miller|Howard Miller]] 15:16, 21 July 2010 (UTC) |
Latest revision as of 20:22, 14 July 2021
I'm trying to say something constructive... but this is unbelievably complicated. What we really need are a progression from REALLY trivial examples (say, pass 1 single parameter and just return it again) and build up to more complicated and general examples. The discussion here concentrates on a service that is probably WAY more complicated that anyone will ever need and is just going to frighten potential users away. --Howard Miller 14:39, 21 July 2010 (UTC)
Seemed to have missed a vital bit.. how to set up the class. Looking at other bits of code I assume:
require_once("$CFG->libdir/externallib.php");
class moodle_group_external extends external_api {
--Howard Miller 15:16, 21 July 2010 (UTC)