ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 
28  }

Member Function Documentation

◆ addLmsCourseUrls()

ilECSCourseUrl::addLmsCourseUrls ( ilECSCourseLmsUrl  $lms_url = null)

Add lms url.

Parameters
ilECSCourseLmsUrl$lms_url

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

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

◆ send()

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

Send urls to ecs.

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

References $GLOBALS.

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

◆ setCmsLectureId()

ilECSCourseUrl::setCmsLectureId (   $a_id)

Set lecture id.

Parameters
type$a_id

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

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

◆ setECSId()

ilECSCourseUrl::setECSId (   $a_id)

Set ecs course id.

Parameters
int$a_id

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

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

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: