Adding External web service function

Adding External web service function

by Nilesh Pathade -
Number of replies: 0

Hi all,

Please help me.

I am trying to create new custom web service / External function. using custom local plugin.

followed by : https://github.com/moodlehq/moodle-local_wstemplate

I want to get return result like as : 

Array
(
    [keywords] => Array
        (
            [local] => stdClass Object
                (
                    [name] => local
                )
            [iomad] => stdClass Object
                (
                    [name] => iomad
                )
            [test] => stdClass Object
                (
                    [name] => test
                )
            [course] => stdClass Object
                (
                    [name] => course
                )
            [gird] => stdClass Object
                (
                    [name] => gird
                )
        )
    [warnings] => Array
        (
        )
)

for this can you help, how to create return function

     /**
     * Returns description of method result value
     * @return external_description
     */
    public static function get_keywords_returns() {
// just let me know how to write code here.....
    // for above result.....
    }
Average of ratings: -