338 Part II: Developing Intranet Solutions (Web design company) Central Login/Logout
Friday, November 30th, 2007338 Part II: Developing Intranet Solutions Central Login/Logout Messages Calendar Events User Home Interface PHP Application Framework Message Object Intranet Calendar Applications Event Object class.Message.php class.Events.php Figure 10-2: Intranet calendar manager system diagram. The Event class provides the Event object. The class is used to manipulate each event. It allows an application to create and delete events. The ch10/apps/class/ class.Event.php in the CDROM is an implementation of this class. This class implements the following methods: . Event (): This is the constructor method. It performs the following functions: Sets an object variable named dbi to point to the class.DBI.phpprovided object, which is passed to the constructor by an application. dbi holds the DBI object that is used to communicate with the back- end database. Sets a member variable named event_tbl to $CALENDAR_EVENT_TBL, which is loaded from the calendar.conf file. $CALENDAR_EVENT_TBL holds the name of the calendar event table. Sets a member variable named event_view_tbl to $CALENDAR_EVENT_ VIEW_TBL, which is loaded from the calendar.conf file. $CALENDAR_ EVENT_VIEW_TBL holds the name of the event view table. Sets a member variable named event_repeat_tbl to $CALENDAR_ EVENT_REPEAT_TBL, which is loaded from the calendar.conf file. $CALENDAR_EVENT_REPEAT_TBL holds the name of the event repeat table. Sets a member variable called std_fields as an associative array to hold the attributes of the calendar event table and their data types (text/number).