Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
TwilloConnector Class Reference

Static Public Member Functions

static getHttpProxy ()
 
static getTwilloUserID ($user_id=null)
 
static uploadMaterial (OERMaterial $material, $user_id=null)
 
static deleteFromTwillo ($oer_id, $user_id=null)
 

Static Public Attributes

static $twillo_base_url = 'https://www.twillo.de/edu-sharing'
 

Static Protected Attributes

static $ticket = null
 

Detailed Description

Class TwilloConnector manages all transactions between Stud.IP and twillo.de.

Member Function Documentation

static deleteFromTwillo (   $oer_id,
  $user_id = null 
)
static
static getHttpProxy ( )
static
static getTwilloUserID (   $user_id = null)
static

Returns the DFN-AAI-ID for the given user. This ID must be the content of a datafield with the datafield_id in the global config OERCAMPUS_TWILLO_DFNAAIID_DATAFIELD. If either this config or the content of the datafield is null, this method returns false;

Parameters
null$user_id
Returns
false|string
static uploadMaterial ( OERMaterial  $material,
  $user_id = null 
)
static

Transfers the material to twillo.

Parameters
OERMaterial$material: the material to transfer
null | string$user_id: The user in whose filesystem of twillo the material should be uploaded to.
Returns
bool|string : true on success, on failure a text-string as error-message
Exceptions
Exception

Field Documentation

$ticket = null
staticprotected
$twillo_base_url = 'https://www.twillo.de/edu-sharing'
static

The documentation for this class was generated from the following file: