@@ -8,194 +8,194 @@ |
||
8 | 8 | */ |
9 | 9 | class CourseCopyLearnpath extends Coursecopy\Resource |
10 | 10 | { |
11 | - /** |
|
12 | - * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)) |
|
13 | - */ |
|
14 | - public $lp_type; |
|
15 | - /** |
|
16 | - * The name |
|
17 | - */ |
|
18 | - public $name; |
|
19 | - /** |
|
20 | - * The reference |
|
21 | - */ |
|
22 | - public $ref; |
|
23 | - /** |
|
24 | - * The description |
|
25 | - */ |
|
26 | - public $description; |
|
27 | - /** |
|
28 | - * Path to the learning path files |
|
29 | - */ |
|
30 | - public $path; |
|
31 | - /** |
|
32 | - * Whether additional commits should be forced or not |
|
33 | - */ |
|
34 | - public $force_commit; |
|
35 | - /** |
|
36 | - * View mode by default ('embedded' or 'fullscreen') |
|
37 | - */ |
|
38 | - public $default_view_mod; |
|
39 | - /** |
|
40 | - * Default character encoding |
|
41 | - */ |
|
42 | - public $default_encoding; |
|
43 | - /** |
|
44 | - * Display order |
|
45 | - */ |
|
46 | - public $display_order; |
|
47 | - /** |
|
48 | - * Content editor/publisher |
|
49 | - */ |
|
50 | - public $content_maker; |
|
51 | - /** |
|
52 | - * Location of the content (local or remote) |
|
53 | - */ |
|
54 | - public $content_local; |
|
55 | - /** |
|
56 | - * License of the content |
|
57 | - */ |
|
58 | - public $content_license; |
|
59 | - /** |
|
60 | - * Whether to prevent reinitialisation or not |
|
61 | - */ |
|
62 | - public $prevent_reinit; |
|
63 | - /** |
|
64 | - * JavaScript library used |
|
65 | - */ |
|
66 | - public $js_lib; |
|
67 | - /** |
|
68 | - * Debug level for this lp |
|
69 | - */ |
|
70 | - public $debug; |
|
71 | - /** |
|
72 | - * The items |
|
73 | - */ |
|
74 | - public $items; |
|
75 | - /** |
|
76 | - * The learnpath visibility on the homepage |
|
77 | - */ |
|
78 | - public $visibility; |
|
11 | + /** |
|
12 | + * Type of learnpath (can be dokeos (1), scorm (2), aicc (3)) |
|
13 | + */ |
|
14 | + public $lp_type; |
|
15 | + /** |
|
16 | + * The name |
|
17 | + */ |
|
18 | + public $name; |
|
19 | + /** |
|
20 | + * The reference |
|
21 | + */ |
|
22 | + public $ref; |
|
23 | + /** |
|
24 | + * The description |
|
25 | + */ |
|
26 | + public $description; |
|
27 | + /** |
|
28 | + * Path to the learning path files |
|
29 | + */ |
|
30 | + public $path; |
|
31 | + /** |
|
32 | + * Whether additional commits should be forced or not |
|
33 | + */ |
|
34 | + public $force_commit; |
|
35 | + /** |
|
36 | + * View mode by default ('embedded' or 'fullscreen') |
|
37 | + */ |
|
38 | + public $default_view_mod; |
|
39 | + /** |
|
40 | + * Default character encoding |
|
41 | + */ |
|
42 | + public $default_encoding; |
|
43 | + /** |
|
44 | + * Display order |
|
45 | + */ |
|
46 | + public $display_order; |
|
47 | + /** |
|
48 | + * Content editor/publisher |
|
49 | + */ |
|
50 | + public $content_maker; |
|
51 | + /** |
|
52 | + * Location of the content (local or remote) |
|
53 | + */ |
|
54 | + public $content_local; |
|
55 | + /** |
|
56 | + * License of the content |
|
57 | + */ |
|
58 | + public $content_license; |
|
59 | + /** |
|
60 | + * Whether to prevent reinitialisation or not |
|
61 | + */ |
|
62 | + public $prevent_reinit; |
|
63 | + /** |
|
64 | + * JavaScript library used |
|
65 | + */ |
|
66 | + public $js_lib; |
|
67 | + /** |
|
68 | + * Debug level for this lp |
|
69 | + */ |
|
70 | + public $debug; |
|
71 | + /** |
|
72 | + * The items |
|
73 | + */ |
|
74 | + public $items; |
|
75 | + /** |
|
76 | + * The learnpath visibility on the homepage |
|
77 | + */ |
|
78 | + public $visibility; |
|
79 | 79 | |
80 | - /** |
|
81 | - * Author info |
|
82 | - */ |
|
83 | - public $author; |
|
80 | + /** |
|
81 | + * Author info |
|
82 | + */ |
|
83 | + public $author; |
|
84 | 84 | |
85 | - /** |
|
86 | - * Author's image |
|
87 | - */ |
|
88 | - public $preview_image; |
|
85 | + /** |
|
86 | + * Author's image |
|
87 | + */ |
|
88 | + public $preview_image; |
|
89 | 89 | |
90 | - /** |
|
91 | - * Create a new learnpath |
|
92 | - * @param integer ID |
|
93 | - * @param integer Type (1,2,3,...) |
|
94 | - * @param string $name |
|
95 | - * @param string $path |
|
96 | - * @param string $ref |
|
97 | - * @param string $description |
|
98 | - * @param string $content_local |
|
99 | - * @param string $default_encoding |
|
100 | - * @param string $default_view_mode |
|
101 | - * @param bool $prevent_reinit |
|
102 | - * @param bool $force_commit |
|
103 | - * @param string $content_maker |
|
104 | - * @param integer $display_order |
|
105 | - * @param string $js_lib |
|
106 | - * @param string $content_license |
|
107 | - * @param integer $debug |
|
108 | - * @param string $visibility |
|
109 | - * @param array $items |
|
110 | - */ |
|
111 | - public function __construct( |
|
112 | - $id, |
|
113 | - $type, |
|
114 | - $name, |
|
115 | - $path, |
|
116 | - $ref, |
|
117 | - $description, |
|
118 | - $content_local, |
|
119 | - $default_encoding, |
|
120 | - $default_view_mode, |
|
121 | - $prevent_reinit, |
|
122 | - $force_commit, |
|
123 | - $content_maker, |
|
124 | - $display_order, |
|
125 | - $js_lib, |
|
126 | - $content_license, |
|
127 | - $debug, |
|
128 | - $visibility, |
|
129 | - $author, |
|
130 | - $preview_image, |
|
131 | - $use_max_score, |
|
132 | - $autolaunch, |
|
133 | - $created_on, |
|
134 | - $modified_on, |
|
135 | - $publicated_on, |
|
136 | - $expired_on, |
|
137 | - $session_id, |
|
138 | - $items |
|
139 | - ) { |
|
140 | - parent::__construct($id, RESOURCE_LEARNPATH); |
|
141 | - $this->lp_type = $type; |
|
142 | - $this->name = $name; |
|
143 | - $this->path = $path; |
|
144 | - $this->ref = $ref; |
|
145 | - $this->description = $description; |
|
146 | - $this->content_local = $content_local; |
|
147 | - $this->default_encoding = $default_encoding; |
|
148 | - $this->default_view_mod = $default_view_mode; |
|
149 | - $this->prevent_reinit = $prevent_reinit; |
|
150 | - $this->force_commit = $force_commit; |
|
151 | - $this->content_maker = $content_maker; |
|
152 | - $this->display_order = $display_order; |
|
153 | - $this->js_lib = $js_lib; |
|
154 | - $this->content_license = $content_license; |
|
155 | - $this->debug = $debug; |
|
156 | - $this->visibility=$visibility; |
|
90 | + /** |
|
91 | + * Create a new learnpath |
|
92 | + * @param integer ID |
|
93 | + * @param integer Type (1,2,3,...) |
|
94 | + * @param string $name |
|
95 | + * @param string $path |
|
96 | + * @param string $ref |
|
97 | + * @param string $description |
|
98 | + * @param string $content_local |
|
99 | + * @param string $default_encoding |
|
100 | + * @param string $default_view_mode |
|
101 | + * @param bool $prevent_reinit |
|
102 | + * @param bool $force_commit |
|
103 | + * @param string $content_maker |
|
104 | + * @param integer $display_order |
|
105 | + * @param string $js_lib |
|
106 | + * @param string $content_license |
|
107 | + * @param integer $debug |
|
108 | + * @param string $visibility |
|
109 | + * @param array $items |
|
110 | + */ |
|
111 | + public function __construct( |
|
112 | + $id, |
|
113 | + $type, |
|
114 | + $name, |
|
115 | + $path, |
|
116 | + $ref, |
|
117 | + $description, |
|
118 | + $content_local, |
|
119 | + $default_encoding, |
|
120 | + $default_view_mode, |
|
121 | + $prevent_reinit, |
|
122 | + $force_commit, |
|
123 | + $content_maker, |
|
124 | + $display_order, |
|
125 | + $js_lib, |
|
126 | + $content_license, |
|
127 | + $debug, |
|
128 | + $visibility, |
|
129 | + $author, |
|
130 | + $preview_image, |
|
131 | + $use_max_score, |
|
132 | + $autolaunch, |
|
133 | + $created_on, |
|
134 | + $modified_on, |
|
135 | + $publicated_on, |
|
136 | + $expired_on, |
|
137 | + $session_id, |
|
138 | + $items |
|
139 | + ) { |
|
140 | + parent::__construct($id, RESOURCE_LEARNPATH); |
|
141 | + $this->lp_type = $type; |
|
142 | + $this->name = $name; |
|
143 | + $this->path = $path; |
|
144 | + $this->ref = $ref; |
|
145 | + $this->description = $description; |
|
146 | + $this->content_local = $content_local; |
|
147 | + $this->default_encoding = $default_encoding; |
|
148 | + $this->default_view_mod = $default_view_mode; |
|
149 | + $this->prevent_reinit = $prevent_reinit; |
|
150 | + $this->force_commit = $force_commit; |
|
151 | + $this->content_maker = $content_maker; |
|
152 | + $this->display_order = $display_order; |
|
153 | + $this->js_lib = $js_lib; |
|
154 | + $this->content_license = $content_license; |
|
155 | + $this->debug = $debug; |
|
156 | + $this->visibility=$visibility; |
|
157 | 157 | |
158 | - $this->use_max_score=$use_max_score; |
|
159 | - $this->autolaunch=$autolaunch; |
|
160 | - $this->created_on=$created_on; |
|
161 | - $this->modified_on=$modified_on; |
|
162 | - $this->publicated_on=$publicated_on; |
|
163 | - $this->expired_on=$expired_on; |
|
164 | - $this->session_id=$session_id; |
|
158 | + $this->use_max_score=$use_max_score; |
|
159 | + $this->autolaunch=$autolaunch; |
|
160 | + $this->created_on=$created_on; |
|
161 | + $this->modified_on=$modified_on; |
|
162 | + $this->publicated_on=$publicated_on; |
|
163 | + $this->expired_on=$expired_on; |
|
164 | + $this->session_id=$session_id; |
|
165 | 165 | |
166 | - $this->author= $author; |
|
167 | - $this->preview_image= $preview_image; |
|
166 | + $this->author= $author; |
|
167 | + $this->preview_image= $preview_image; |
|
168 | 168 | |
169 | - $this->items = $items; |
|
170 | - } |
|
171 | - /** |
|
172 | - * Get the items |
|
173 | - */ |
|
174 | - function get_items() |
|
175 | - { |
|
176 | - return $this->items; |
|
177 | - } |
|
169 | + $this->items = $items; |
|
170 | + } |
|
171 | + /** |
|
172 | + * Get the items |
|
173 | + */ |
|
174 | + function get_items() |
|
175 | + { |
|
176 | + return $this->items; |
|
177 | + } |
|
178 | 178 | |
179 | - /** |
|
180 | - * Check if a given resource is used as an item in this chapter |
|
181 | - */ |
|
182 | - function has_item($resource) |
|
183 | - { |
|
184 | - foreach ($this->items as $item) { |
|
185 | - if ($item['id'] == $resource->get_id() && |
|
186 | - isset($item['type']) && $item['type'] == $resource->get_type() |
|
187 | - ) { |
|
188 | - return true; |
|
189 | - } |
|
190 | - } |
|
191 | - return false; |
|
192 | - } |
|
179 | + /** |
|
180 | + * Check if a given resource is used as an item in this chapter |
|
181 | + */ |
|
182 | + function has_item($resource) |
|
183 | + { |
|
184 | + foreach ($this->items as $item) { |
|
185 | + if ($item['id'] == $resource->get_id() && |
|
186 | + isset($item['type']) && $item['type'] == $resource->get_type() |
|
187 | + ) { |
|
188 | + return true; |
|
189 | + } |
|
190 | + } |
|
191 | + return false; |
|
192 | + } |
|
193 | 193 | |
194 | - /** |
|
195 | - * Show this learnpath |
|
196 | - */ |
|
197 | - function show() { |
|
198 | - parent::show(); |
|
199 | - echo $this->name; |
|
200 | - } |
|
194 | + /** |
|
195 | + * Show this learnpath |
|
196 | + */ |
|
197 | + function show() { |
|
198 | + parent::show(); |
|
199 | + echo $this->name; |
|
200 | + } |
|
201 | 201 | } |
@@ -13,28 +13,28 @@ |
||
13 | 13 | public $params = array(); |
14 | 14 | public $attendance_calendar = array(); |
15 | 15 | |
16 | - /** |
|
17 | - * Create a new Thematic |
|
18 | - * |
|
19 | - * @param array parameters |
|
20 | - */ |
|
16 | + /** |
|
17 | + * Create a new Thematic |
|
18 | + * |
|
19 | + * @param array parameters |
|
20 | + */ |
|
21 | 21 | public function __construct($params) |
22 | 22 | { |
23 | - parent::__construct($params['id'], RESOURCE_ATTENDANCE); |
|
24 | - $this->params = $params; |
|
25 | - } |
|
23 | + parent::__construct($params['id'], RESOURCE_ATTENDANCE); |
|
24 | + $this->params = $params; |
|
25 | + } |
|
26 | 26 | |
27 | 27 | /** |
28 | 28 | * @inheritdoc |
29 | 29 | */ |
30 | 30 | public function show() |
31 | 31 | { |
32 | - parent::show(); |
|
33 | - echo $this->params['name']; |
|
34 | - } |
|
32 | + parent::show(); |
|
33 | + echo $this->params['name']; |
|
34 | + } |
|
35 | 35 | |
36 | 36 | public function add_attendance_calendar($data) |
37 | 37 | { |
38 | - $this->attendance_calendar[] = $data; |
|
39 | - } |
|
38 | + $this->attendance_calendar[] = $data; |
|
39 | + } |
|
40 | 40 | } |
@@ -10,93 +10,93 @@ |
||
10 | 10 | */ |
11 | 11 | class SurveyQuestion extends Coursecopy\Resource |
12 | 12 | { |
13 | - /** |
|
14 | - * Survey ID |
|
15 | - */ |
|
16 | - public $survey_id; |
|
17 | - /** |
|
18 | - * Question and question comment |
|
19 | - */ |
|
20 | - public $survey_question; |
|
21 | - public $survey_question_comment; |
|
22 | - /** |
|
23 | - * Question type |
|
24 | - */ |
|
25 | - public $survey_question_type; |
|
26 | - /** |
|
27 | - * Display ? |
|
28 | - */ |
|
29 | - public $display; |
|
30 | - /** |
|
31 | - * Sorting order |
|
32 | - */ |
|
33 | - public $sort; |
|
34 | - /** |
|
35 | - * Shared question ID |
|
36 | - */ |
|
37 | - public $shared_question_id; |
|
38 | - /** |
|
39 | - * Maximum value for the vote |
|
40 | - */ |
|
41 | - public $max_value; |
|
13 | + /** |
|
14 | + * Survey ID |
|
15 | + */ |
|
16 | + public $survey_id; |
|
17 | + /** |
|
18 | + * Question and question comment |
|
19 | + */ |
|
20 | + public $survey_question; |
|
21 | + public $survey_question_comment; |
|
22 | + /** |
|
23 | + * Question type |
|
24 | + */ |
|
25 | + public $survey_question_type; |
|
26 | + /** |
|
27 | + * Display ? |
|
28 | + */ |
|
29 | + public $display; |
|
30 | + /** |
|
31 | + * Sorting order |
|
32 | + */ |
|
33 | + public $sort; |
|
34 | + /** |
|
35 | + * Shared question ID |
|
36 | + */ |
|
37 | + public $shared_question_id; |
|
38 | + /** |
|
39 | + * Maximum value for the vote |
|
40 | + */ |
|
41 | + public $max_value; |
|
42 | 42 | |
43 | - /** |
|
44 | - * Question's options |
|
45 | - */ |
|
46 | - public $options; |
|
43 | + /** |
|
44 | + * Question's options |
|
45 | + */ |
|
46 | + public $options; |
|
47 | 47 | |
48 | - /** |
|
49 | - * Create a new SurveyQuestion |
|
50 | - * @param int $id |
|
51 | - * @param int $survey_id |
|
52 | - * @param string $survey_question |
|
53 | - * @param string $survey_question_comment |
|
54 | - * @param string $type |
|
55 | - * @param string $display |
|
56 | - * @param int $sort |
|
57 | - * @param int $shared_question_id |
|
58 | - * @param int $max_value |
|
59 | - */ |
|
60 | - function __construct( |
|
61 | - $id, |
|
62 | - $survey_id, |
|
63 | - $survey_question, |
|
64 | - $survey_question_comment, |
|
65 | - $type, |
|
66 | - $display, |
|
67 | - $sort, |
|
68 | - $shared_question_id, |
|
69 | - $max_value |
|
70 | - ) { |
|
71 | - parent::__construct($id,RESOURCE_SURVEYQUESTION); |
|
72 | - $this->survey_id = $survey_id; |
|
73 | - $this->survey_question = $survey_question; |
|
74 | - $this->survey_question_comment = $survey_question_comment; |
|
75 | - $this->survey_question_type = $type; |
|
76 | - $this->display = $display; |
|
77 | - $this->sort = $sort; |
|
78 | - $this->shared_question_id = $shared_question_id; |
|
79 | - $this->max_value = $max_value; |
|
80 | - $this->answers = array(); |
|
81 | - } |
|
82 | - /** |
|
83 | - * Add an answer option to this SurveyQuestion |
|
84 | - * @param string $option_text |
|
85 | - * @param int $sort |
|
86 | - */ |
|
87 | - function add_answer($option_text,$sort) |
|
88 | - { |
|
89 | - $answer = array(); |
|
90 | - $answer['option_text'] = $option_text; |
|
91 | - $answer['sort'] = $sort; |
|
92 | - $this->answers[] = $answer; |
|
93 | - } |
|
94 | - /** |
|
95 | - * Show this question |
|
96 | - */ |
|
97 | - function show() |
|
98 | - { |
|
99 | - parent::show(); |
|
100 | - echo $this->survey_question; |
|
101 | - } |
|
48 | + /** |
|
49 | + * Create a new SurveyQuestion |
|
50 | + * @param int $id |
|
51 | + * @param int $survey_id |
|
52 | + * @param string $survey_question |
|
53 | + * @param string $survey_question_comment |
|
54 | + * @param string $type |
|
55 | + * @param string $display |
|
56 | + * @param int $sort |
|
57 | + * @param int $shared_question_id |
|
58 | + * @param int $max_value |
|
59 | + */ |
|
60 | + function __construct( |
|
61 | + $id, |
|
62 | + $survey_id, |
|
63 | + $survey_question, |
|
64 | + $survey_question_comment, |
|
65 | + $type, |
|
66 | + $display, |
|
67 | + $sort, |
|
68 | + $shared_question_id, |
|
69 | + $max_value |
|
70 | + ) { |
|
71 | + parent::__construct($id,RESOURCE_SURVEYQUESTION); |
|
72 | + $this->survey_id = $survey_id; |
|
73 | + $this->survey_question = $survey_question; |
|
74 | + $this->survey_question_comment = $survey_question_comment; |
|
75 | + $this->survey_question_type = $type; |
|
76 | + $this->display = $display; |
|
77 | + $this->sort = $sort; |
|
78 | + $this->shared_question_id = $shared_question_id; |
|
79 | + $this->max_value = $max_value; |
|
80 | + $this->answers = array(); |
|
81 | + } |
|
82 | + /** |
|
83 | + * Add an answer option to this SurveyQuestion |
|
84 | + * @param string $option_text |
|
85 | + * @param int $sort |
|
86 | + */ |
|
87 | + function add_answer($option_text,$sort) |
|
88 | + { |
|
89 | + $answer = array(); |
|
90 | + $answer['option_text'] = $option_text; |
|
91 | + $answer['sort'] = $sort; |
|
92 | + $this->answers[] = $answer; |
|
93 | + } |
|
94 | + /** |
|
95 | + * Show this question |
|
96 | + */ |
|
97 | + function show() |
|
98 | + { |
|
99 | + parent::show(); |
|
100 | + echo $this->survey_question; |
|
101 | + } |
|
102 | 102 | } |
@@ -66,19 +66,19 @@ |
||
66 | 66 | $attachment_comment = null, |
67 | 67 | $all_day = 0 |
68 | 68 | ) { |
69 | - parent::__construct($id, RESOURCE_EVENT); |
|
69 | + parent::__construct($id, RESOURCE_EVENT); |
|
70 | 70 | |
71 | - $this->title = $title; |
|
72 | - $this->content = $content; |
|
73 | - $this->start_date = $start_date; |
|
74 | - $this->end_date = $end_date; |
|
75 | - $this->all_day = $all_day; |
|
71 | + $this->title = $title; |
|
72 | + $this->content = $content; |
|
73 | + $this->start_date = $start_date; |
|
74 | + $this->end_date = $end_date; |
|
75 | + $this->all_day = $all_day; |
|
76 | 76 | |
77 | - $this->attachment_path = $attachment_path; |
|
78 | - $this->attachment_filename = $attachment_filename; |
|
79 | - $this->attachment_size = $attachment_size; |
|
80 | - $this->attachment_comment = $attachment_comment; |
|
81 | - } |
|
77 | + $this->attachment_path = $attachment_path; |
|
78 | + $this->attachment_filename = $attachment_filename; |
|
79 | + $this->attachment_size = $attachment_size; |
|
80 | + $this->attachment_comment = $attachment_comment; |
|
81 | + } |
|
82 | 82 | |
83 | 83 | /** |
84 | 84 | * Show this Event |
@@ -10,33 +10,33 @@ |
||
10 | 10 | */ |
11 | 11 | class Glossary extends Coursecopy\Resource |
12 | 12 | { |
13 | - public $glossary_id; |
|
14 | - public $name; |
|
15 | - public $description; |
|
16 | - public $display_order; |
|
13 | + public $glossary_id; |
|
14 | + public $name; |
|
15 | + public $description; |
|
16 | + public $display_order; |
|
17 | 17 | |
18 | - /** |
|
19 | - * Create a new Glossary |
|
20 | - * @param int $id |
|
21 | - * @param string $name |
|
22 | - * @param string $description |
|
23 | - * @param int $display_order |
|
24 | - */ |
|
18 | + /** |
|
19 | + * Create a new Glossary |
|
20 | + * @param int $id |
|
21 | + * @param string $name |
|
22 | + * @param string $description |
|
23 | + * @param int $display_order |
|
24 | + */ |
|
25 | 25 | public function __construct($id,$name,$description,$display_order) |
26 | - { |
|
27 | - parent::__construct($id,RESOURCE_GLOSSARY); |
|
28 | - $this->glossary_id = $id; |
|
29 | - $this->name = $name; |
|
30 | - $this->description = $description; |
|
31 | - $this->display_order = $display_order; |
|
32 | - } |
|
26 | + { |
|
27 | + parent::__construct($id,RESOURCE_GLOSSARY); |
|
28 | + $this->glossary_id = $id; |
|
29 | + $this->name = $name; |
|
30 | + $this->description = $description; |
|
31 | + $this->display_order = $display_order; |
|
32 | + } |
|
33 | 33 | |
34 | - /** |
|
35 | - * Show this glossary |
|
36 | - */ |
|
37 | - public function show() |
|
34 | + /** |
|
35 | + * Show this glossary |
|
36 | + */ |
|
37 | + public function show() |
|
38 | 38 | { |
39 | - parent::show(); |
|
40 | - echo $this->name; |
|
41 | - } |
|
39 | + parent::show(); |
|
40 | + echo $this->name; |
|
41 | + } |
|
42 | 42 | } |
@@ -11,33 +11,33 @@ discard block |
||
11 | 11 | */ |
12 | 12 | class Link extends Coursecopy\Resource |
13 | 13 | { |
14 | - /** |
|
15 | - * The title |
|
16 | - */ |
|
14 | + /** |
|
15 | + * The title |
|
16 | + */ |
|
17 | 17 | public $title; |
18 | - /** |
|
19 | - * The URL |
|
20 | - */ |
|
18 | + /** |
|
19 | + * The URL |
|
20 | + */ |
|
21 | 21 | public $url; |
22 | - /** |
|
23 | - * The description |
|
24 | - */ |
|
22 | + /** |
|
23 | + * The description |
|
24 | + */ |
|
25 | 25 | public $description; |
26 | - /** |
|
27 | - * Id of this links category |
|
28 | - */ |
|
26 | + /** |
|
27 | + * Id of this links category |
|
28 | + */ |
|
29 | 29 | public $category_id; |
30 | - /** |
|
31 | - * Display link on course homepage |
|
32 | - */ |
|
30 | + /** |
|
31 | + * Display link on course homepage |
|
32 | + */ |
|
33 | 33 | public $on_homepage; |
34 | - /** |
|
35 | - * Create a new Link |
|
36 | - * @param int $id The id of this link in the Chamilo-course |
|
37 | - * @param string $title |
|
38 | - * @param string $url |
|
39 | - * @param string $description |
|
40 | - */ |
|
34 | + /** |
|
35 | + * Create a new Link |
|
36 | + * @param int $id The id of this link in the Chamilo-course |
|
37 | + * @param string $title |
|
38 | + * @param string $url |
|
39 | + * @param string $description |
|
40 | + */ |
|
41 | 41 | public function __construct( |
42 | 42 | $id, |
43 | 43 | $title, |
@@ -46,21 +46,21 @@ discard block |
||
46 | 46 | $category_id, |
47 | 47 | $on_homepage |
48 | 48 | ) |
49 | - { |
|
50 | - parent::__construct($id,RESOURCE_LINK); |
|
51 | - $this->title = $title; |
|
52 | - $this->url = $url; |
|
53 | - $this->description = $description; |
|
54 | - $this->category_id = $category_id; |
|
55 | - $this->on_homepage = $on_homepage; |
|
56 | - } |
|
49 | + { |
|
50 | + parent::__construct($id,RESOURCE_LINK); |
|
51 | + $this->title = $title; |
|
52 | + $this->url = $url; |
|
53 | + $this->description = $description; |
|
54 | + $this->category_id = $category_id; |
|
55 | + $this->on_homepage = $on_homepage; |
|
56 | + } |
|
57 | 57 | |
58 | 58 | /** |
59 | - * Show this resource |
|
60 | - */ |
|
59 | + * Show this resource |
|
60 | + */ |
|
61 | 61 | public function show() |
62 | - { |
|
63 | - parent::show(); |
|
64 | - echo $this->title.' ('.$this->url.')'; |
|
65 | - } |
|
62 | + { |
|
63 | + parent::show(); |
|
64 | + echo $this->title.' ('.$this->url.')'; |
|
65 | + } |
|
66 | 66 | } |
@@ -10,52 +10,52 @@ |
||
10 | 10 | */ |
11 | 11 | class SurveyInvitation extends Coursecopy\Resource |
12 | 12 | { |
13 | - /** |
|
14 | - * Survey code |
|
15 | - */ |
|
16 | - public $code; |
|
17 | - /** |
|
18 | - * User info |
|
19 | - */ |
|
20 | - public $user; |
|
21 | - /** |
|
22 | - * Invitation code |
|
23 | - */ |
|
24 | - public $invitation_code; |
|
25 | - /** |
|
26 | - * Invitation date |
|
27 | - */ |
|
28 | - public $invitation_date; |
|
29 | - /** |
|
30 | - * Reminder date |
|
31 | - */ |
|
32 | - public $reminder_date; |
|
13 | + /** |
|
14 | + * Survey code |
|
15 | + */ |
|
16 | + public $code; |
|
17 | + /** |
|
18 | + * User info |
|
19 | + */ |
|
20 | + public $user; |
|
21 | + /** |
|
22 | + * Invitation code |
|
23 | + */ |
|
24 | + public $invitation_code; |
|
25 | + /** |
|
26 | + * Invitation date |
|
27 | + */ |
|
28 | + public $invitation_date; |
|
29 | + /** |
|
30 | + * Reminder date |
|
31 | + */ |
|
32 | + public $reminder_date; |
|
33 | 33 | |
34 | - /** |
|
35 | - * Create a new SurveyInvitation |
|
36 | - * @param int $id |
|
37 | - * @param string $code |
|
38 | - * @param string $user |
|
39 | - * @param string $invitation_code |
|
40 | - * @param string $invitation_date |
|
41 | - * @param string $reminder_date |
|
42 | - */ |
|
43 | - public function __construct($id,$code,$user,$invitation_code,$invitation_date,$reminder_date) |
|
44 | - { |
|
45 | - parent::__construct($id, RESOURCE_SURVEYINVITATION); |
|
46 | - $this->code = $code; |
|
47 | - $this->user = $user; |
|
48 | - $this->invitation_code = $invitation_code; |
|
49 | - $this->invitation_date = $invitation_date; |
|
50 | - $this->reminder_date = $reminder_date; |
|
51 | - } |
|
34 | + /** |
|
35 | + * Create a new SurveyInvitation |
|
36 | + * @param int $id |
|
37 | + * @param string $code |
|
38 | + * @param string $user |
|
39 | + * @param string $invitation_code |
|
40 | + * @param string $invitation_date |
|
41 | + * @param string $reminder_date |
|
42 | + */ |
|
43 | + public function __construct($id,$code,$user,$invitation_code,$invitation_date,$reminder_date) |
|
44 | + { |
|
45 | + parent::__construct($id, RESOURCE_SURVEYINVITATION); |
|
46 | + $this->code = $code; |
|
47 | + $this->user = $user; |
|
48 | + $this->invitation_code = $invitation_code; |
|
49 | + $this->invitation_date = $invitation_date; |
|
50 | + $this->reminder_date = $reminder_date; |
|
51 | + } |
|
52 | 52 | |
53 | - /** |
|
54 | - * Show this invitation |
|
55 | - */ |
|
56 | - function show() |
|
57 | - { |
|
58 | - parent::show(); |
|
59 | - echo $this->invitation_code; |
|
60 | - } |
|
53 | + /** |
|
54 | + * Show this invitation |
|
55 | + */ |
|
56 | + function show() |
|
57 | + { |
|
58 | + parent::show(); |
|
59 | + echo $this->invitation_code; |
|
60 | + } |
|
61 | 61 | } |
@@ -10,39 +10,39 @@ |
||
10 | 10 | */ |
11 | 11 | class LinkCategory extends Coursecopy\Resource |
12 | 12 | { |
13 | - /** |
|
14 | - * The title |
|
15 | - */ |
|
16 | - public $title; |
|
17 | - /** |
|
18 | - * The description |
|
19 | - */ |
|
20 | - public $description; |
|
21 | - /** |
|
22 | - * The display order |
|
23 | - */ |
|
24 | - public $display_order; |
|
13 | + /** |
|
14 | + * The title |
|
15 | + */ |
|
16 | + public $title; |
|
17 | + /** |
|
18 | + * The description |
|
19 | + */ |
|
20 | + public $description; |
|
21 | + /** |
|
22 | + * The display order |
|
23 | + */ |
|
24 | + public $display_order; |
|
25 | 25 | |
26 | - /** |
|
27 | - * Create a new LinkCategory |
|
28 | - * @param int $id |
|
29 | - * @param string $title |
|
30 | - * @param string $description |
|
31 | - */ |
|
32 | - function __construct($id,$title,$description,$display_order) |
|
33 | - { |
|
34 | - parent::__construct($id,RESOURCE_LINKCATEGORY); |
|
35 | - $this->title = $title; |
|
36 | - $this->description = $description; |
|
37 | - $this->display_order = $display_order; |
|
38 | - } |
|
26 | + /** |
|
27 | + * Create a new LinkCategory |
|
28 | + * @param int $id |
|
29 | + * @param string $title |
|
30 | + * @param string $description |
|
31 | + */ |
|
32 | + function __construct($id,$title,$description,$display_order) |
|
33 | + { |
|
34 | + parent::__construct($id,RESOURCE_LINKCATEGORY); |
|
35 | + $this->title = $title; |
|
36 | + $this->description = $description; |
|
37 | + $this->display_order = $display_order; |
|
38 | + } |
|
39 | 39 | |
40 | - /** |
|
41 | - * Show this LinkCategory |
|
42 | - */ |
|
43 | - function show() |
|
44 | - { |
|
45 | - parent::show(); |
|
46 | - echo $this->title.' '.$this->description.'<br />'; |
|
47 | - } |
|
40 | + /** |
|
41 | + * Show this LinkCategory |
|
42 | + */ |
|
43 | + function show() |
|
44 | + { |
|
45 | + parent::show(); |
|
46 | + echo $this->title.' '.$this->description.'<br />'; |
|
47 | + } |
|
48 | 48 | } |
@@ -10,39 +10,39 @@ |
||
10 | 10 | */ |
11 | 11 | class CourseDescription extends Resource |
12 | 12 | { |
13 | - /** |
|
14 | - * The title |
|
15 | - */ |
|
16 | - public $title; |
|
17 | - /** |
|
18 | - * The content |
|
19 | - */ |
|
20 | - public $content; |
|
21 | - /** |
|
22 | - * The description type |
|
23 | - */ |
|
24 | - public $description_type; |
|
13 | + /** |
|
14 | + * The title |
|
15 | + */ |
|
16 | + public $title; |
|
17 | + /** |
|
18 | + * The content |
|
19 | + */ |
|
20 | + public $content; |
|
21 | + /** |
|
22 | + * The description type |
|
23 | + */ |
|
24 | + public $description_type; |
|
25 | 25 | |
26 | - /** |
|
27 | - * Create a new course description |
|
28 | - * @param int $id |
|
29 | - * @param string $title |
|
30 | - * @param string $content |
|
31 | - */ |
|
32 | - public function __construct($id,$title,$content,$description_type) |
|
33 | - { |
|
34 | - parent::__construct($id,RESOURCE_COURSEDESCRIPTION); |
|
35 | - $this->title = $title; |
|
36 | - $this->content = $content; |
|
37 | - $this->description_type = $description_type; |
|
38 | - } |
|
26 | + /** |
|
27 | + * Create a new course description |
|
28 | + * @param int $id |
|
29 | + * @param string $title |
|
30 | + * @param string $content |
|
31 | + */ |
|
32 | + public function __construct($id,$title,$content,$description_type) |
|
33 | + { |
|
34 | + parent::__construct($id,RESOURCE_COURSEDESCRIPTION); |
|
35 | + $this->title = $title; |
|
36 | + $this->content = $content; |
|
37 | + $this->description_type = $description_type; |
|
38 | + } |
|
39 | 39 | |
40 | - /** |
|
41 | - * Show this Event |
|
42 | - */ |
|
43 | - function show() |
|
44 | - { |
|
45 | - parent::show(); |
|
46 | - echo $this->title; |
|
47 | - } |
|
40 | + /** |
|
41 | + * Show this Event |
|
42 | + */ |
|
43 | + function show() |
|
44 | + { |
|
45 | + parent::show(); |
|
46 | + echo $this->title; |
|
47 | + } |
|
48 | 48 | } |