Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/externallib.php File Reference

Go to the source code of this file.

Data Structures

class  restricted_context_exception
class  external_api
class  external_description
class  external_value
class  external_single_structure
class  external_multiple_structure
class  external_function_parameters

Namespaces

namespace  core

Functions

 external_function_info ($function, $strictness=MUST_EXIST)
 external_generate_token ($tokentype, $serviceorid, $userid, $contextorid, $validuntil=0, $iprestriction='')
 external_create_service_token ($servicename, $context)

Function Documentation

external_create_service_token ( servicename,
context 
)

Create and return a session linked token. Token to be used for html embedded client apps that want to communicate with the Moodle server through web services. The token is linked to the current session for the current page request. It is expected this will be called in the script generating the html page that is embedding the client app and that the returned token will be somehow passed into the client app being embedded in the page.

Parameters:
string$servicenamename of the web service. Service name as defined in db/services.php
int$contextcontext within which the web service can operate.
Returns:
int returns token id.

Definition at line 486 of file externallib.php.

Here is the call graph for this function:

external_function_info ( function,
strictness = MUST_EXIST 
)

Returns detailed function information

Parameters:
string | object$functionname of external function or record from external_function
int$strictnessIGNORE_MISSING means compatible mode, false returned if record not found, debug message if more found; MUST_EXIST means throw exception if no record or multiple records found
Returns:
object description or false if not found or exception thrown

Definition at line 36 of file externallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

external_generate_token ( tokentype,
serviceorid,
userid,
contextorid,
validuntil = 0,
iprestriction = '' 
)

Definition at line 433 of file externallib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations