◆ add_action()
| add_action |
( |
|
$course_id = '-' | ) |
|
This method is sent using AJAX to add a study area to a course.
- Parameters
-
| string | the MD5ish ID of the course |
- Returns
- void
◆ before_filter()
| before_filter |
( |
& |
$action, |
|
|
& |
$args |
|
) |
| |
◆ expand_action()
| expand_action |
( |
|
$course_id = '-', |
|
|
|
$id = NULL |
|
) |
| |
This method is sent using AJAX to expand a study area subtree whose root is the specified $id.
- Parameters
-
| string | the MD5ish ID of the course |
| string | the ID of the study area to expand |
- Returns
- void
◆ get_selection()
| get_selection |
( |
|
$course_id | ) |
|
Returns a StudipStudyAreaSelection object for a given course ID. If the course ID is falsy, use the session variable from admin_seminare_assi.
NOTE: This is a hack – remove it ASAP.
- Parameters
-
| string | either the MD5ish ID of a course or something falsy to indicate a course that is currently being created |
- Returns
- mixed a "bean" of class StudipStudyAreaSelection representing the selection form
◆ isCourseId()
Every (non-empty) string is a valid course ID except the string '-'
- Parameters
-
- Returns
- bool TRUE if it is courseID-ish, FALSE otherwise
◆ remove_action()
| remove_action |
( |
|
$course_id = '-' | ) |
|
This method is sent using AJAX to remove a study area from a course.
- Parameters
-
| string | the MD5ish ID of the course |
- Returns
- void
◆ set_course()
◆ show_action()
| show_action |
( |
|
$course_id = '-' | ) |
|
This method shows the study area selection form for a given course ID.
- Parameters
-
| string | the MD5ish ID of the course |
- Returns
- void
◆ store_selection()
| store_selection |
( |
|
$course_id, |
|
|
|
$selection |
|
) |
| |
◆ update_selection()
| update_selection |
( |
|
$study_areas | ) |
|
The documentation for this class was generated from the following file: