dokeos-announcements
[ class tree: dokeos-announcements ] [ index: dokeos-announcements ] [ all elements ]

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

   $tool  
   $id  
[ Top ]



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  
[ Top ]



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  
[ Top ]



display_announcement [line 41]

void display_announcement( $announcement_id, $announcement_id)

displays one specific announcement



Tags:

todo:  remove globals
todo:  more security checking


Parameters

$announcement_id,   $announcement_id   the id of the announcement you want to display
[ Top ]



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  
[ Top ]



get_course_groups [line 237]

void get_course_groups( )

this function gets all the groups of the course,

not including linked courses




[ Top ]



get_course_users [line 224]

void get_course_users( )

this function gets all the users of the course,

including users from linked courses




[ Top ]



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

   $tool  
   $id  
[ Top ]



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  
[ Top ]



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

   $tool  
   $id  
[ Top ]



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:

author:  Patrick Cool <patrick.cool@>


Parameters

   $sent_to_array  
[ Top ]



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

   $to  
[ Top ]



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

   $to_already_selected  
[ Top ]



store_advalvas_item [line 598]

void store_advalvas_item( $emailTitle, $newContent, $order, $to)



Parameters

   $emailTitle  
   $newContent  
   $order  
   $to  
[ Top ]



to_javascript [line 310]

void to_javascript( )

returns all the javascript that is required for easily

setting the target people/groups this goes into the $htmlHeadXtra[] array




[ Top ]



update_mail_sent [line 736]

void update_mail_sent( $insert_id)



Parameters

   $insert_id  
[ Top ]



user_group_filter_javascript [line 287]

void user_group_filter_javascript( )

returns the javascript for setting a filter

this goes into the $htmlHeadXtra[] array




[ Top ]



Documentation generated on Wed, 05 Sep 2007 06:14:23 +0200 by phpDocumentor 1.4.0