Procedural File: announcements.inc.php
Source Location: /main/announcements/announcements.inc.php
Page Details:
Include file with functions for the announcements module.
change_visibility [line 571]
void change_visibility(
$tool, $id)
|
|
This functions swithes the visibility a course resource using the visibility field in 'item_property' values: 0 = invisibility for
Parameters
construct_not_selected_select_form [line 133]
void construct_not_selected_select_form(
[ $group_list = null], [ $user_list = null], $to_already_selected)
|
|
this function shows the form for sending a message to a specific group or user.
Parameters
| |
$group_list |
|
| |
$user_list |
|
| |
$to_already_selected |
|
construct_selected_select_form [line 173]
void construct_selected_select_form(
[ $group_list = null], [ $user_list = null], $to_already_selected)
|
|
this function shows the form for sending a message to a specific group or user.
Parameters
| |
$group_list |
|
| |
$user_list |
|
| |
$to_already_selected |
|
display_announcement [line 41]
void display_announcement(
$announcement_id, $announcement_id)
|
|
displays one specific announcement
Tags:
Parameters
| $announcement_id, |
$announcement_id |
the id of the announcement you want to display |
edit_advalvas_item [line 652]
void edit_advalvas_item(
$id, $emailTitle, $newContent, $to)
|
|
This function stores the announcement Item in the table announcement and updates the item_property also
Parameters
| |
$id |
|
| |
$emailTitle |
|
| |
$newContent |
|
| |
$to |
|
get_course_groups [line 237]
void get_course_groups(
)
|
|
this function gets all the groups of the course, not including linked courses
get_course_users [line 224]
this function gets all the users of the course, including users from linked courses
load_edit_users [line 250]
void load_edit_users(
$tool, $id)
|
|
This tools loads all the users and all the groups who have received a specific item (in this case an announcement item)
Parameters
send_announcement_email [line 708]
void send_announcement_email(
$user_list, $course_code, $_course, $mail_title, $mail_content)
|
|
Sends an announcement by email to a list of users. Emails are sent one by one to try to avoid antispam.
Parameters
| |
$user_list |
|
| |
$course_code |
|
| |
$_course |
|
| |
$mail_title |
|
| |
$mail_content |
|
sent_to [line 529]
void sent_to(
$tool, $id)
|
|
returns all the users and all the groups a specific announcement item has been sent to
Parameters
sent_to_form [line 413]
void sent_to_form(
$sent_to_array)
|
|
constructs the form to display all the groups and users the message has been sent to input: $sent_to_array is a 2 dimensional array containing the groups and the users the first level is a distinction between groups and users: $sent_to_array['groups'] * and $sent_to_array['users'] $sent_to_array['groups'] (resp. $sent_to_array['users']) is also an array containing all the id's of the groups (resp. users) who have received this message.
Tags:
Parameters
separate_users_groups [line 498]
void separate_users_groups(
$to)
|
|
This function separates the users from the groups users have a value USER:XXX (with XXX the dokeos id groups have a value GROUP:YYY (with YYY the group id)
Parameters
show_to_form [line 92]
void show_to_form(
$to_already_selected)
|
|
this function shows the form for sending a message to a specific group or user.
Parameters
store_advalvas_item [line 598]
void store_advalvas_item(
$emailTitle, $newContent, $order, $to)
|
|
Parameters
| |
$emailTitle |
|
| |
$newContent |
|
| |
$order |
|
| |
$to |
|
to_javascript [line 310]
returns all the javascript that is required for easily setting the target people/groups this goes into the $htmlHeadXtra[] array
update_mail_sent [line 736]
void update_mail_sent(
$insert_id)
|
|
Parameters
user_group_filter_javascript [line 287]
void user_group_filter_javascript(
)
|
|
returns the javascript for setting a filter this goes into the $htmlHeadXtra[] array
|