|
Stud.IP
jlu_4.1 Revision
|

Public Member Functions | |
| __construct ($course_id=NULL) | |
| getSearchKey () | |
| setSearchKey ($searchKey) | |
| searched () | |
| clearSearchResult () | |
| getSearchResult () | |
| getSelected () | |
| setSelected ($selected, $type=null) | |
| getShowAll () | |
| setShowAll ($showAll) | |
| toggleShowAll () | |
| getLvGruppenIDs () | |
| getAreas () | |
| setLvgruppen ($areas) | |
| includes ($area) | |
| size () | |
| add ($area) | |
| remove ($area) | |
| getTrail () | |
Static Public Member Functions | |
| static | getRootItem () |
| static | sortSearchResult ($a, $b) |
Objects of this class represent the state of the LV-Gruppe selection form.
| __construct | ( | $course_id = NULL | ) |
This constructor can be called with or without a course ID. If a course ID has been sent, the selected lvgruppen are populated by that course's already chosen lvgruppen. If no course ID is given, it is assumed that you are creating a new course at the moment.
| string | optional; the ID of the course to prepopulate the form with |

| add | ( | $area | ) |
This method adds an area to the selected LV-Gruppen.
| mixed | the ID of the LV-Gruppe to add or a LV-Gruppe object |


| clearSearchResult | ( | ) |
Clears the current search result.

| getAreas | ( | ) |
Returns all the selected LV-Gruppen.
| getLvGruppenIDs | ( | ) |
Returns all the IDs of the already selected LV-Gruppen.
|
static |
Returns the not really existing root of the tree.

| getSearchKey | ( | ) |
| getSearchResult | ( | ) |
Returns an array of search results.

| getSelected | ( | ) |
| getShowAll | ( | ) |
| getTrail | ( | ) |
| includes | ( | $area | ) |
Returns true if this LV-Gruppe is selected, false otherwise.
| mixed | the id of a LV-Gruppe or the LV-Gruppe object itself |
| remove | ( | $area | ) |
This method removes given LV-Gruppe from the already selected LV-Gruppen.
| mixed | the ID of the LV-Gruppe to add or a LV-Gruppe object |
| searched | ( | ) |
| setLvgruppen | ( | $areas | ) |
| setSearchKey | ( | $searchKey | ) |
| string | a search term |

| setSelected | ( | $selected, | |
$type = null |
|||
| ) |
Sets the selected tree item.
| mixed | $selected | Either the id of a tree item to select or the tree item object itself |
| setShowAll | ( | $showAll | ) |
| bool | the new state of the expansion of subtrees |
| size | ( | ) |
|
static |
| toggleShowAll | ( | ) |
Toggles the state of the expansion of subtrees.