Procedural File: userInfoLib.php
Source Location: /main/user/userInfoLib.php
Page Details:
cleanout_cat_content [line 408]
- cleanout_cat_content(
- $user_id, $definition_id, - $definition_id,)
|
|
clean the content of a bloc for information category
Tags:
Parameters
| - |
$definition_id, |
|
| - |
$user_id |
|
| |
$definition_id |
|
create_cat_def [line 44]
- create_cat_def(
[- $title = ""], [- $comment = ""], [- $nbline = "5"])
|
|
create a new category definition for the user information
Tags:
Parameters
| - |
$title |
string $title - category title |
| - |
$comment |
string $comment - title comment |
| - |
$nbline |
int$nbline - lines number for the field the user will fill. |
edit_cat_content [line 364]
- edit_cat_content(
$definition_id, $user_id, [- $content = ""], [ $user_ip = ""], - $definition_id,, - $user_id,, - $user_ip,)
|
|
edit a bloc for information category
Tags:
Parameters
| - |
$definition_id, |
|
| - |
$user_id, |
|
| - |
$user_ip, |
DEFAULT $REMOTE_ADDR |
| - |
$content |
; if empty call delete the bloc |
| |
$definition_id |
|
| |
$user_id |
|
| |
$user_ip |
|
edit_cat_def [line 87]
- edit_cat_def(
- $id, - $title, - $comment, - $nbline)
|
|
modify the definition of a user information category
Tags:
Parameters
| - |
$id |
int $id - id of the category |
| - |
$title |
string $title - category title |
| - |
$comment |
string $comment - title comment |
| - |
$nbline |
int$nbline - lines number for the field the user will fill. |
fill_new_cat_content [line 306]
- fill_new_cat_content(
$definition_id, $user_id, [- $content = ""], [ $user_ip = ""], - $definition_id,, - $user_id,, - $user_ip,)
|
|
fill a bloc for information category
Tags:
Parameters
| - |
$definition_id, |
|
| - |
$user_id, |
|
| - |
$user_ip, |
|
| - |
$content |
|
| |
$definition_id |
|
| |
$user_id |
|
| |
$user_ip |
|
get_cat_content [line 519]
- get_cat_content(
- $userId, - $catId)
|
|
get the user content of a categories plus the categories definition
Tags:
Parameters
| - |
$userId |
int $userId - id of the user |
| - |
$catId |
int $catId - id of the categories |
get_cat_def [line 554]
get the definition of a category
Tags:
Parameters
| - |
$catId |
int $catId - id of the categories |
get_cat_def_list [line 584]
get list of all this course categories
Tags:
get_course_user_info [line 441]
- get_course_user_info(
- $user_id)
|
|
get the user info from the user id
Tags:
Parameters
| - |
$user_id |
int $user_id user id as stored in the Dokeos main db |
get_main_user_info [line 477]
- get_main_user_info(
- $user_id, $courseCode)
|
|
get the main user information
Tags:
Parameters
| - |
$user_id |
int $user_id user id as stored in the Dokeos main db |
| |
$courseCode |
|
htmlize [line 614]
transform content in a html display
Tags:
Parameters
| - |
$phrase |
string $string string to htmlize @ return - string htmlized |
move_cat_rank [line 169]
- move_cat_rank(
- $id, - $direction)
|
|
move a category in the category list
Tags:
Parameters
| - |
$id |
int $id - id of the category |
| - |
$direction |
direction "up" or "down" : "up" decrease the rank of gived $id by switching rank with the just lower "down" increase the rank of gived $id by switching rank with the just upper |
move_cat_rank_by_rank [line 205]
- move_cat_rank_by_rank(
- $rank, - $direction)
|
|
move a category in the category list
Tags:
Parameters
| - |
$rank |
int $rank - actual rank of the category |
| - |
$direction |
direction "up" or "down" : "up" decrease the rank of gived $rank by switching rank with the just lower "down" increase the rank of gived $rank by switching rank with the just upper |
remove_cat_def [line 124]
- remove_cat_def(
- $id, [- $force = false], - 2)
|
|
remove a category from the category list
Tags:
Parameters
| - |
2 |
int $nbline - lines number for the field the user will fill. |
| - |
$id |
int $id - id of the category or "ALL" for all category |
| - |
$force |
boolean $force - FALSE (default) : prevents removal if users have already fill this category TRUE : bypass user content existence check |
replace_dangerous_char [line 628]
- replace_dangerous_char(
- $string)
|
|
replaces some dangerous character in a string for HTML use
Tags:
Parameters
| - |
$string |
string (string) string |
update_user_course_properties [line 259]
boolean update_user_course_properties(
int $user_id, string $course_code, array $properties)
|
|
Tags:
Parameters
| int |
$user_id |
|
| string |
$course_code |
|
| array |
$properties |
- should contain 'role', 'status', 'tutor_id' |
|
|