ILIAS  Release_4_4_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilECSCourseUrl Class Reference

Represents a ecs course url. More...

+ Collaboration diagram for ilECSCourseUrl:

Public Member Functions

 __construct ()
 Constructor.
 setCmsLectureId ($a_id)
 Set lecture id.
 setECSId ($a_id)
 Set ecs course id.
 addLmsCourseUrls (ilECSCourseLmsUrl $lms_url=null)
 Add lms url.
 send (ilECSSetting $setting, $ecs_receiver_mid)
 Send urls to ecs.

Data Fields

const COURSE_URL_PREFIX = 'campusconnect/course/'
 $cms_lecture_id = ''
 $ecs_course_url = ''
 $lms_course_urls = null

Detailed Description

Represents a ecs course url.

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e $Id$

Definition at line 12 of file class.ilECSCourseUrl.php.

Constructor & Destructor Documentation

ilECSCourseUrl::__construct ( )

Constructor.

Definition at line 25 of file class.ilECSCourseUrl.php.

{
}

Member Function Documentation

ilECSCourseUrl::addLmsCourseUrls ( ilECSCourseLmsUrl  $lms_url = null)

Add lms url.

Parameters
ilECSCourseLmsUrl$lms_url

Definition at line 52 of file class.ilECSCourseUrl.php.

{
$this->lms_course_urls[] = $lms_url;
}
ilECSCourseUrl::send ( ilECSSetting  $setting,
  $ecs_receiver_mid 
)

Send urls to ecs.

Definition at line 60 of file class.ilECSCourseUrl.php.

References $GLOBALS.

{
include_once './Services/WebServices/ECS/classes/Course/class.ilECSCourseUrlConnector.php';
try
{
$con = new ilECSCourseUrlConnector($setting);
$url_id = $con->addUrl($this, $ecs_receiver_mid);
$GLOBALS['ilLog']->write(__METHOD__.': Received new url id ' . $url_id);
}
catch(Exception $e)
{
$GLOBALS['ilLog']->write(__METHOD__.': '.$e->getMessage());
}
}
ilECSCourseUrl::setCmsLectureId (   $a_id)

Set lecture id.

Parameters
type$a_id

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

{
$this->cms_lecture_id = $a_id;
}
ilECSCourseUrl::setECSId (   $a_id)

Set ecs course id.

Parameters
int$a_id

Definition at line 43 of file class.ilECSCourseUrl.php.

{
$this->ecs_course_url = self::COURSE_URL_PREFIX.$a_id;
}

Field Documentation

ilECSCourseUrl::$cms_lecture_id = ''

Definition at line 17 of file class.ilECSCourseUrl.php.

ilECSCourseUrl::$ecs_course_url = ''

Definition at line 18 of file class.ilECSCourseUrl.php.

ilECSCourseUrl::$lms_course_urls = null

Definition at line 19 of file class.ilECSCourseUrl.php.

const ilECSCourseUrl::COURSE_URL_PREFIX = 'campusconnect/course/'

Definition at line 14 of file class.ilECSCourseUrl.php.


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