Go to the source code of this file.
Functions | |
| class_get_properties ($classId) | |
| class_create ($className, $parentId) | |
| class_set_properties ($classId, $className, $parentId=0) | |
| delete_class ($class_id) | |
| move_class ($class_id, $class_id_towards) | |
| register_class_to_course ($class_id, $course_code) | |
| unregister_class_to_course ($class_id, $course_code) | |
| user_add_to_class ($user_id, $class_id) | |
| user_remove_to_class ($user_id, $class_id) | |
| class_remove_all_users ($classId) | |
| display_tree_class_in_admin ($class_list, $parent_class=null, $deep=0) | |
| get_class_user_number ($class_id) | |
| get_class_cours_number ($class_id) | |
| display_tree_class_in_user ($class_list, $course_code, $parent_class=null, $deep=0) | |
| displaySelectBox ($selected=null, $space=" ") | |
| buildSelectClass ($classes, $selected, $father=null, $space=" ") | |
| getSubClasses ($class_id) | |
| get_class_list_by_course ($courseId) | |
| get_class_list_of_course ($courseId) | |
| get_class_list_user_id_list ($classId) | |
This function create the list for the select box to choose the parent class
| tab | containing at least all the classes with their id, parent_id and name | |
| parent_id | of the class we want to display the children of | |
| the | pre-selected class'id in the select box | |
| space | to display for children to show deepness |
Definition at line 1051 of file class.lib.php.
| class_create | ( | $ | className, | |
| $ | parentId | |||
| ) |
| class_get_properties | ( | $ | classId | ) |
CLAROLINE
Library for class
2001-2008 Universite catholique de Louvain (UCL)c http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE
| integer | $classId |
Definition at line 26 of file class.lib.php.
| class_remove_all_users | ( | $ | classId | ) |
unsubscribe all users of the class
| int | $class_id course code from the class table |
Definition at line 683 of file class.lib.php.
| class_set_properties | ( | $ | classId, | |
| $ | className, | |||
| $ | parentId = 0 | |||
| ) |
Update class data
| $classId | integer | |
| $className | string | |
| $parentId | integer |
Definition at line 76 of file class.lib.php.
| delete_class | ( | $ | class_id | ) |
This function delete a class and all this trace
| int | class_id |
Definition at line 106 of file class.lib.php.
| display_tree_class_in_admin | ( | $ | class_list, | |
| $ | parent_class = null, |
|||
| $ | deep = 0 | |||
| ) |
Display the tree of classes
| unknown_type | $class_list list of all the classes informations of the platform | |
| unknown_type | $parent_class | |
| unknown_type | $deep |
Definition at line 712 of file class.lib.php.
| display_tree_class_in_user | ( | $ | class_list, | |
| $ | course_code, | |||
| $ | parent_class = null, |
|||
| $ | deep = 0 | |||
| ) |
Display the tree of classes
| list | of all the classes informations of the platform | |
| list | of the classes that must be visible |
Definition at line 905 of file class.lib.php.
This function create the select box to choose the parent class
| the | pre-selected class'id in the select box | |
| space | to display for children to show deepness $tbl_class get_lang('TopLevel') |
Definition at line 1023 of file class.lib.php.
| get_class_cours_number | ( | $ | class_id | ) |
Get the number of cours link with class
| id | of the class from which we want to know the number of cours |
Definition at line 875 of file class.lib.php.
| get_class_list_by_course | ( | $ | courseId | ) |
return list of class subscribed to a given course.
| string | $courseId |
Definition at line 1117 of file class.lib.php.
| get_class_list_of_course | ( | $ | courseId | ) |
return list of class subscribed to a given course. similar to get_class_list_by_course($courseId) except that this function return only the enrolled class to the course
| string | $courseId |
Definition at line 1143 of file class.lib.php.
| get_class_list_user_id_list | ( | $ | classId | ) |
return list of user_id of the users enrolled in a class.
| string | $classId |
Definition at line 1166 of file class.lib.php.
| get_class_user_number | ( | $ | class_id | ) |
Get the number of users in a class, including sublclasses
| id | of the (parent) class ffrom which we want to know the number of users |
Definition at line 833 of file class.lib.php.
| getSubClasses | ( | $ | class_id | ) |
return subClass of a given class
| unknown_type | $class_id |
Definition at line 1083 of file class.lib.php.
| move_class | ( | $ | class_id, | |
| $ | class_id_towards | |||
| ) |
This function move a class in the class tree
| int | class_id , id of the class what you want to move | |
| int | class_id_towards, id of the parent destination class |
Definition at line 201 of file class.lib.php.
| register_class_to_course | ( | $ | class_id, | |
| $ | course_code | |||
| ) |
Enter description here...
| integer | $class_id | |
| string | $course_code |
Definition at line 276 of file class.lib.php.
| unregister_class_to_course | ( | $ | class_id, | |
| $ | course_code | |||
| ) |
unregister a class to course
| int | class_id | |
| string | course_code |
Definition at line 398 of file class.lib.php.
| user_add_to_class | ( | $ | user_id, | |
| $ | class_id | |||
| ) |
subscribe a specific user to a class
| int | $user_id user ID from the course_user table | |
| int | $class_id class id from the class table |
Definition at line 485 of file class.lib.php.
| user_remove_to_class | ( | $ | user_id, | |
| $ | class_id | |||
| ) |
unsubscribe a specific user to a class
| int | $user_id user ID from the course_user table | |
| int | $class_id course code from the class table |
Definition at line 575 of file class.lib.php.
1.6.3