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

Procedural File: myagenda.inc.php

Source Location: /main/calendar/myagenda.inc.php



Page Details:

Settings (you may alter this at will



Tags:

filesource:  Source Code for this file








delete_personal_agenda [line 742]

void delete_personal_agenda( $id)

This function deletes a personal agenda item

There is an additional check to make sure that one cannot delete an item that does not belong to him/her




Parameters

   $id  
[ Top ]



display_myminimonthcalendar [line 244]

void display_myminimonthcalendar( $agendaitems, $month, $year, $monthName)

Show the mini calender of the given month



Parameters

   $agendaitems  
   $month  
   $year  
   $monthName  
[ Top ]



display_mymonthcalendar [line 181]

void display_mymonthcalendar( array $agendaitems, int $month, int $year, [array $weekdaynames = array()], string $monthName)

Show the monthcalender of the given month



Tags:

return:  Direct output


Parameters

array   $agendaitems   Agendaitems
int   $month   Month number
int   $year   Year number
array   $weekdaynames   Array of strings containing long week day names (deprecated, you can send an empty array instead)
string   $monthName   The month name
[ Top ]



get_courses_of_user [line 505]

void get_courses_of_user( )

This function finds all the courses of the user and returns an array containing the database name of the courses.



[ Top ]



get_myagendaitems [line 66]

void get_myagendaitems( $courses_dbs, $month, $year)

This function retrieves all the agenda items of all the courses the user is subscribed to



Parameters

   $courses_dbs  
   $month  
   $year  
[ Top ]



get_personal_agenda_item [line 618]

array get_personal_agenda_item( int $id)

This function retrieves one personal agenda item returns it.



Tags:

return:  The results of the database query, or null if not found


Parameters

int   $id   The agenda item ID
[ Top ]



get_personal_agenda_items [line 527]

void get_personal_agenda_items( $agendaitems, [ $day = ""], [ $month = ""], [ $year = ""], [ $week = ""], $type)

This function retrieves all the personal agenda items and add them to the agenda items found by the other functions.



Parameters

   $agendaitems  
   $day  
   $month  
   $year  
   $week  
   $type  
[ Top ]



show_new_personal_item_form [line 316]

void show_new_personal_item_form( [ $id = ""])

This function shows all the forms that are needed form adding /editing a new personal agenda item

when there is no $id passed in the function we are adding a new agenda item, if there is a $id we are editing attention: we have to check that the student is editing an item that belongs to him/her




Parameters

   $id  
[ Top ]



show_personal_agenda [line 640]

void show_personal_agenda( )

This function retrieves all the personal agenda items of the user and shows

these items in one list (ordered by date and grouped by month (the month_bar)




[ Top ]



store_personal_item [line 485]

void store_personal_item( $day, $month, $year, $hour, $minute, $title, $content, [ $id = ""])

This function shows all the forms that are needed form adding a new personal agenda item



Parameters

   $day  
   $month  
   $year  
   $hour  
   $minute  
   $title  
   $content  
   $id  
[ Top ]



Documentation generated on Thu, 12 Jun 2008 14:06:30 -0500 by phpDocumentor 1.4.1