claroline/claroline/inc/lib/course_home.lib.php File Reference
Go to the source code of this file.
Function Documentation
| delete_course_tool |
( |
$ |
toolId |
) |
|
| get_course_tool_settings |
( |
$ |
toolId |
) |
|
Get all the settings from a specific tool
- Author:
- Hugues Peeters <hugues.peeters@claroline.net>
- Parameters:
-
| int | $toolId id of the tool |
- Returns:
- array containing 'id', 'name', 'visibility', 'rank', 'url', 'label', 'icon', 'access_manager'
Definition at line 78 of file course_home.lib.php.
| get_next_course_tool_rank |
( |
|
) |
|
| insert_course_tool |
( |
$ |
tool_label |
) |
|
| insert_local_course_tool |
( |
$ |
name, |
|
|
$ |
url, |
|
|
$ |
visibility = true | |
|
) |
| | |
| move_course_tool |
( |
$ |
reqToolId, |
|
|
$ |
moveDirection | |
|
) |
| | |
| move_down_course_tool |
( |
$ |
toolId |
) |
|
| move_up_course_tool |
( |
$ |
toolId |
) |
|
| offset_course_tool_rank_from |
( |
$ |
startRank, |
|
|
$ |
offset = 1 | |
|
) |
| | |
offset the tools rank from a start rank until a certain number of rank leaving free ranks between both
- Author:
- Hugues Peeters <hugues.peeters@claroline.net>
- Parameters:
-
| int | $startRank |
| inti | $offset (optional) |
- Returns:
- boolean true if succeeds, false otherwise
Definition at line 272 of file course_home.lib.php.
| set_course_tool_visibility |
( |
$ |
toolId, |
|
|
$ |
value | |
|
) |
| | |
Set the visibility of this tool.
- Parameters:
-
| int | $toolId |
| boolean | $value |
- Returns:
Definition at line 122 of file course_home.lib.php.
| set_local_course_tool |
( |
$ |
toolId, |
|
|
$ |
name, |
|
|
$ |
url | |
|
) |
| | |
Update an local tool data
- Author:
- Hugues Peeters <hugues.peeters@claroline.net>
- Parameters:
-
| int | $toolId tool to update |
| string | $name new name |
| string | $url new url |
- Returns:
- bool true if it suceeds, false otherwise
Definition at line 149 of file course_home.lib.php.