ILIAS  Release_4_2_x_branch Revision 61807
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilECSUtils Class Reference
+ Collaboration diagram for ilECSUtils:

Static Public Member Functions

static _fetchEContentIdFromHeader ($a_header)
 fetch new econtent id from location header
static _getOptionalEContentFields ()
 get optional econtent fields These fields might be mapped against AdvancedMetaData field definitions
static _getOptionalECourseFields ()
 get optional econtent fields These fields might be mapped against AdvancedMetaData field definitions
static lookupParticipantName ($a_owner)
 Lookup participant name.

Detailed Description

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 34 of file class.ilECSUtils.php.

Member Function Documentation

static ilECSUtils::_fetchEContentIdFromHeader (   $a_header)
static

fetch new econtent id from location header

public

Parameters
arrayheader array

Definition at line 44 of file class.ilECSUtils.php.

References $ilLog.

Referenced by ilECSConnector\addResource().

{
global $ilLog;
if(!isset($a_header['Location']))
{
return false;
}
$end_path = strrpos($a_header['Location'],"/");
if($end_path === false)
{
$ilLog->write(__METHOD__.': Cannot find path seperator.');
return false;
}
$econtent_id = substr($a_header['Location'],$end_path + 1);
$ilLog->write(__METHOD__.': Received EContentId '.$econtent_id);
return (int) $econtent_id;
}

+ Here is the caller graph for this function:

static ilECSUtils::_getOptionalEContentFields ( )
static

get optional econtent fields These fields might be mapped against AdvancedMetaData field definitions

public

Definition at line 72 of file class.ilECSUtils.php.

Referenced by ilECSSettingsGUI\initMappingsForm().

{
return array(
'study_courses',
'lecturer',
'courseType',
'courseID',
'term',
'credits',
'semester_hours',
'begin',
'end',
'room',
'cycle');
}

+ Here is the caller graph for this function:

static ilECSUtils::_getOptionalECourseFields ( )
static

get optional econtent fields These fields might be mapped against AdvancedMetaData field definitions

public

Definition at line 96 of file class.ilECSUtils.php.

Referenced by ilECSSettingsGUI\initMappingsForm().

{
return array(
'study_courses',
'lecturer',
'courseType',
'courseID',
'term',
'credits',
'semester_hours',
'begin',
'end',
'room',
'cycle');
}

+ Here is the caller graph for this function:

static ilECSUtils::lookupParticipantName (   $a_owner)
static

Lookup participant name.

Parameters
int$a_ownerMid of participant
Returns

Definition at line 117 of file class.ilECSUtils.php.

References $ilLog, $reader, and ilECSCommunityReader\_getInstance().

Referenced by ilECSCategoryMappingRule\participantsToString().

{
global $ilLog;
try {
include_once './Services/WebServices/ECS/classes/class.ilECSCommunityReader.php';
if($part = $reader->getParticipantByMID($a_owner))
{
return $part->getParticipantName();
}
return '';
}
{
$ilLog->write(__METHOD__.': Error reading participants.');
return '';
}
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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