[phpwebapp-commits] CVS: documentation/templates/user_manual/manual_pages transitions.txt,1.2,1.3 ev
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-07-21 17:15:45
|
Update of /cvsroot/phpwebapp/documentation/templates/user_manual/manual_pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5212/templates/user_manual/manual_pages Modified Files: transitions.txt events.txt Log Message: Index: transitions.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/user_manual/manual_pages/transitions.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** transitions.txt 20 Aug 2003 07:31:55 -0000 1.2 --- transitions.txt 21 Jul 2004 17:15:31 -0000 1.3 *************** *** 51,57 **** ----------------------------------------- Like usual links which can send variables to the server, like this: ! <a href="page1.php?var1=val1&var2=val2"> Link </a> a transition can send variables as well: ! <a href="javascript: GoTo('page1.html?var1=val1&var2=val2')"> Link </a> These variables will be declared as PHP global variables by the framework and may be used in the PHP code of the application. However --- 51,57 ---- ----------------------------------------- Like usual links which can send variables to the server, like this: ! <a href="page1.php?var1=val1&var2=val2"> Link </a> a transition can send variables as well: ! <a href="javascript: GoTo('page1.html?var1=val1&var2=val2')"> Link </a> These variables will be declared as PHP global variables by the framework and may be used in the PHP code of the application. However Index: events.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/user_manual/manual_pages/events.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** events.txt 20 Aug 2003 07:31:55 -0000 1.3 --- events.txt 21 Jul 2004 17:15:31 -0000 1.4 *************** *** 120,149 **** - Predefined (Framework) Events - ------------------------------ - Predefined events are events that are triggered by the framework - itself in certain cases. They are not related with a certain webox - or with a certain page. The files that contain the event handlers - should be placed in the EVENTHANDLER_PATH and they must be named - "on.eventName.php" and must contain a function named - "on_eventName()", which is called by the framework. - If an event handler for a predefined event is not defined, then - nothing happens (no error is generated). - - For the time being there are only three predefined events: - - 1 - firstTime ( on.firstTime.php, on_firstTime() ) - Triggered when the application is opened for the first time, i.e - when the user enters the application for the first time. This is - used to initialize the application, e.g. it tells the framework - which is the first page that will be displayed. - - 2 - beforePage (on.beforePage.php on_beforePage() ) - Triggered before any page i constructed. - - 3 - afterPage ( on.afterPage.php on_afterPage() ) - Triggered after any page is constructed. - - Handeling Free (Application) Events ------------------------------------ --- 120,123 ---- *************** *** 152,165 **** in general. So, it cannot be handled by a webox, as usually, but is handled in a special way. The event handler for this event is the ! function "on_eventName($event)", which is not associated with any ! webox, and is found in the file "on.eventName.php". ! ! The file "on.eventName.php" is found in the following way: ! - First the folder of the targetPage is searched for it ! - If it is not found, then the folder of the sourcePage is ! searched for it. ! - If it is not found, then the folder EVENTHANDLER_PATH is ! searched for it (defined in 'config/const.Paths.php'). ! - If it is not found, then an error message is generated. In the case of the free events, the 'targetPage' is just --- 126,131 ---- in general. So, it cannot be handled by a webox, as usually, but is handled in a special way. The event handler for this event is the ! file "on.eventName.php" which must be placed in the folder of the ! sourcePage. In the case of the free events, the 'targetPage' is just |