ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilECSCourseUrl Class Reference

Represents a ecs course url. More...

+ Collaboration diagram for ilECSCourseUrl:

Public Member Functions

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

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

◆ __construct()

ilECSCourseUrl::__construct ( )

Constructor.

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

26  {
27  }

Member Function Documentation

◆ addLmsCourseUrls()

ilECSCourseUrl::addLmsCourseUrls ( ilECSCourseLmsUrl  $lms_url = null)

Add lms url.

Parameters
ilECSCourseLmsUrl$lms_url

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

52  {
53  $this->lms_course_urls[] = $lms_url;
54  }

◆ send()

ilECSCourseUrl::send ( ilECSSetting  $setting,
  $ecs_receiver_mid 
)

Send urls to ecs.

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

References $GLOBALS.

60  {
61  include_once './Services/WebServices/ECS/classes/Course/class.ilECSCourseUrlConnector.php';
62  try {
63  $con = new ilECSCourseUrlConnector($setting);
64  $url_id = $con->addUrl($this, $ecs_receiver_mid);
65 
66  $GLOBALS['DIC']['ilLog']->write(__METHOD__ . ': Received new url id ' . $url_id);
67  } catch (Exception $e) {
68  $GLOBALS['DIC']['ilLog']->write(__METHOD__ . ': ' . $e->getMessage());
69  }
70  }
Connector for writing ecs course urls.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.

◆ setCmsLectureId()

ilECSCourseUrl::setCmsLectureId (   $a_id)

Set lecture id.

Parameters
type$a_id

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

34  {
35  $this->cms_lecture_id = $a_id;
36  }

◆ setECSId()

ilECSCourseUrl::setECSId (   $a_id)

Set ecs course id.

Parameters
int$a_id

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

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

Field Documentation

◆ $cms_lecture_id

ilECSCourseUrl::$cms_lecture_id = ''

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

◆ $ecs_course_url

ilECSCourseUrl::$ecs_course_url = ''

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

◆ $lms_course_urls

ilECSCourseUrl::$lms_course_urls = null

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

◆ COURSE_URL_PREFIX

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: