phpwebapp-commits Mailing List for phpWebApp (Page 27)
Brought to you by:
dashohoxha
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(15) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(2) |
Feb
|
Mar
|
Apr
(5) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2003 |
Jan
|
Feb
(43) |
Mar
|
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(194) |
Sep
(60) |
Oct
(6) |
Nov
|
Dec
(16) |
2004 |
Jan
(73) |
Feb
(13) |
Mar
(5) |
Apr
|
May
(5) |
Jun
|
Jul
(183) |
Aug
|
Sep
(5) |
Oct
(30) |
Nov
|
Dec
|
2005 |
Jan
|
Feb
|
Mar
|
Apr
(9) |
May
(1) |
Jun
(35) |
Jul
(17) |
Aug
(2) |
Sep
(6) |
Oct
(19) |
Nov
(108) |
Dec
|
2006 |
Jan
(10) |
Feb
(1) |
Mar
(5) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Dashamir H. <das...@us...> - 2003-08-25 16:51:26
|
Update of /cvsroot/phpwebapp/empty-sample In directory sc8-pr-cvs1:/tmp/cvs-serv26960 Modified Files: init.php index.php Log Message: converted CRLF to LF Index: init.php =================================================================== RCS file: /cvsroot/phpwebapp/empty-sample/init.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** init.php 25 Aug 2003 13:43:35 -0000 1.2 --- init.php 25 Aug 2003 14:32:09 -0000 1.3 *************** *** 1,13 **** ! <?php ! /* This file is part of phpWebApp. */ ! ! /** ! * This file is included the first time that the application ! * is opened (when the session starts). ! * ! * @package sample-application ! */ ! /** */ ! ! //WebApp::message("init.php"); //debug ! ?> --- 1,13 ---- ! <?php ! /* This file is part of phpWebApp. */ ! ! /** ! * This file is included the first time that the application ! * is opened (when the session starts). ! * ! * @package sample-application ! */ ! /** */ ! ! //WebApp::message("init.php"); //debug ! ?> Index: index.php =================================================================== RCS file: /cvsroot/phpwebapp/empty-sample/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 25 Aug 2003 13:43:35 -0000 1.2 --- index.php 25 Aug 2003 14:32:09 -0000 1.3 *************** *** 1,34 **** ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! /** ! * Standard file for all the applications, ! * doesn't need to be modified. ! * ! * @package sample-application ! */ ! /** */ ! include_once "webapp.php"; ! ! //construct the target page of the transition ! $tpl_page = TPL_PATH.$event->targetPage; ! WebApp::constructHtmlPage($tpl_page); ?> --- 1,34 ---- ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! /** ! * Standard file for all the applications, ! * doesn't need to be modified. ! * ! * @package sample-application ! */ ! /** */ ! include_once "webapp.php"; ! ! //construct the target page of the transition ! $tpl_page = TPL_PATH.$event->targetPage; ! WebApp::constructHtmlPage($tpl_page); ?> |
From: Dashamir H. <das...@us...> - 2003-08-25 16:37:57
|
Update of /cvsroot/phpwebapp/documentation/templates/tutorial In directory sc8-pr-cvs1:/tmp/cvs-serv27288/templates/tutorial Modified Files: tutorial.html intro.html Log Message: converted CRLF to LF Index: tutorial.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/tutorial.html,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** tutorial.html 15 Aug 2003 07:37:30 -0000 1.3 --- tutorial.html 25 Aug 2003 14:34:23 -0000 1.4 *************** *** 1,7 **** ! <WebBox ID="tutorial"> ! <div class="white_box"> ! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs3.html" /> ! <WebObject Class="tabs3" Name="tutorial" /> ! <Include SRC="{{./}}{{tabs3::tutorial->selected_item}}.html" /> ! </div> ! </WebBox> --- 1,7 ---- ! <WebBox ID="tutorial"> ! <div class="white_box"> ! <Include SRC="{{WEBOBJ_PATH}}tabs/tabs3.html" /> ! <WebObject Class="tabs3" Name="tutorial" /> ! <Include SRC="{{./}}{{tabs3::tutorial->selected_item}}.html" /> ! </div> ! </WebBox> Index: intro.html =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/intro.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** intro.html 20 Aug 2003 07:31:55 -0000 1.4 --- intro.html 25 Aug 2003 14:34:23 -0000 1.5 *************** *** 1,144 **** ! <p>The tutorial consists of a list of sample applications which are ! built using phpWebApp. Each application uses some features of ! phpWebApp and has explanations about the features used. It also has ! code reviews which show how these features are used in the ! application, and exercises which require the reader to try himself ! some simple modifications to the application.</p> ! ! <p>Each application builds on the things explained on the previous ! applications and explains only the new features that are introduced ! in it, so it is recomended to study them in the given order.</p> ! ! <p>These sample applications may also serve as templates for your ! applications. Instead of building a new application from scratch, ! you can just copy one of the samples and modify it according to ! your needs.</p> ! <br> ! ! <table width="100%" align="center" cellspacing="0" cellpadding="20" border="0"> ! <tr> ! <td width="50%" valign="top" bgcolor="#EEEEEE"> ! <a href="javascript:tabs3_select('tabs3::tutorial','transitions')"> ! <strong>1 - Transitions</strong> ! </a> ! <br> ! A very simple application that has 2 or 3 HTML files which have ! transitions to each-other and have some links to external ! pages. Explains the folder structure of a simple application, ! explains what are the transitions and the difference between ! the transitions and the links. Explains how to debug ! transitions. ! </td> ! ! <td width="50%" valign="top" bgcolor="#F8F8F8"> ! <a href="javascript:tabs3_select('tabs3::tutorial','templates')"> ! <strong>2 - Templates</strong> ! </a> ! <br> ! The HTML files now become templates. This application uses the ! <Include> tag to insert the same header file at the ! beginning of each template and to break the templates into sub ! templates. It shows how to include the javascript code and the ! stylesheet of each template. It also explains the use of the ! framework comments and the difference between them and the HTML ! comments. Explains how to debug the template structure. ! </td> ! </tr> ! ! <tr> ! <td width="50%" valign="top" bgcolor="#F8F8F8"> ! <a href="javascript:tabs3_select('tabs3::tutorial','weboxes')"> ! <strong>3 - Introducing WebBox-es</strong> ! </a> ! <br> ! Some of the templates are turned into weboxes. Explains the ! fundamental difference between a template and a webox. The PHP ! code of the weboxes declares the function onRender(), where ! some variables are added using WebApp::addVar(), and these ! {{variables}} are used in the corresponding template. ! </td> ! ! <td width="50%" valign="top" bgcolor="#EEEEEE"> ! <a href="javascript:tabs3_select('tabs3::tutorial','events')"> ! <strong>4 - Sending and Handelling Events</strong> ! </a> ! <br> ! Some of the transitions send events to some of the weboxes. The ! target weboxes handle these events in their eventHandler() ! functions. Explains also the transitions to 'thisPage', sending ! an event to 'any' webox, and sending events to 'none' of the ! weboxes (independent events). ! </td> ! </tr> ! ! <tr> ! <td width="50%" valign="top" bgcolor="#EEEEEE"> ! <a href="javascript:tabs3_select('tabs3::tutorial','sess_var')"> ! <strong>5 - Session and Variables</strong> ! </a> ! <br> ! Explains what are the session variables and how to use them. ! Explains further how the {{template variables}} are evaluated. ! Explains how the session variables are used to keep the state ! of the weboxes and the states of the application (introduces ! the function onLoad() of the weboxes). Explains how the ! <If> elements are used to display templates ! conditionally. Explains how to debug the session ! variables. ! </td> ! ! <td width="50%" valign="top" bgcolor="#F8F8F8"> ! <a href="javascript:tabs3_select('tabs3::tutorial','database')"> ! <strong>6 - Interacting with a Database</strong> ! </a> ! <br> ! Explains how to set a default connection with a database. ! Explains the configuration file of a template (*.tpc) and the ! <Recordset> element. Explains the <Repeat> elements ! and how to use them inside a template. Explains the '.db' file ! of a webox, the <Recordset> and <dbCommand> ! elements inside it, and how to use the functions ! WebApp::execDBCmd(), WebApp::openRS() and WebApp::execQuery() ! inside the PHP code of the webox. Explains how to debug the ! recordsets of the page and the execution times of the queries ! (and other processes). ! </td> ! </tr> ! ! <tr> ! <td width="50%" valign="top" bgcolor="#F8F8F8"> ! <a href="javascript:tabs3_select('tabs3::tutorial','advanced')"> ! <strong>7 - All the rest of the advanced features</strong> ! </a> ! <br> ! A complicated, real and almost finished web application ! (which may evolve from the previous samples or may be ! independent of them), which makes use and explains almost all ! of the advanced features of framework which have not been ! explained in the previous samples. Such features may be: ! ! <ul> ! <li>Detailed explanation of the <Repeat> element and ! the page recordsets.</li> ! ! <li><Var> elements</li> ! ! <li>An <Include> element that uses a variable.</li> ! ! <li>Usage of an external webox.</li> ! ! <li>Etc.</li> ! </ul> ! </td> ! ! <td width="50%" valign="top" bgcolor="#EEEEEE"> ! <a href="javascript:tabs3_select('tabs3::tutorial','documentation')"> ! <strong>8 - The documentation application</strong> ! </a> ! <br> ! This web application (the 'phpWebApp documentation') is built ! using phpWebApp itself. This tutorial explains how this web ! application is constructed. ! </td> ! </tr> ! </table> --- 1,144 ---- ! <p>The tutorial consists of a list of sample applications which are ! built using phpWebApp. Each application uses some features of ! phpWebApp and has explanations about the features used. It also has ! code reviews which show how these features are used in the ! application, and exercises which require the reader to try himself ! some simple modifications to the application.</p> ! ! <p>Each application builds on the things explained on the previous ! applications and explains only the new features that are introduced ! in it, so it is recomended to study them in the given order.</p> ! ! <p>These sample applications may also serve as templates for your ! applications. Instead of building a new application from scratch, ! you can just copy one of the samples and modify it according to ! your needs.</p> ! <br> ! ! <table width="100%" align="center" cellspacing="0" cellpadding="20" border="0"> ! <tr> ! <td width="50%" valign="top" bgcolor="#EEEEEE"> ! <a href="javascript:tabs3_select('tabs3::tutorial','transitions')"> ! <strong>1 - Transitions</strong> ! </a> ! <br> ! A very simple application that has 2 or 3 HTML files which have ! transitions to each-other and have some links to external ! pages. Explains the folder structure of a simple application, ! explains what are the transitions and the difference between ! the transitions and the links. Explains how to debug ! transitions. ! </td> ! ! <td width="50%" valign="top" bgcolor="#F8F8F8"> ! <a href="javascript:tabs3_select('tabs3::tutorial','templates')"> ! <strong>2 - Templates</strong> ! </a> ! <br> ! The HTML files now become templates. This application uses the ! <Include> tag to insert the same header file at the ! beginning of each template and to break the templates into sub ! templates. It shows how to include the javascript code and the ! stylesheet of each template. It also explains the use of the ! framework comments and the difference between them and the HTML ! comments. Explains how to debug the template structure. ! </td> ! </tr> ! ! <tr> ! <td width="50%" valign="top" bgcolor="#F8F8F8"> ! <a href="javascript:tabs3_select('tabs3::tutorial','weboxes')"> ! <strong>3 - Introducing WebBox-es</strong> ! </a> ! <br> ! Some of the templates are turned into weboxes. Explains the ! fundamental difference between a template and a webox. The PHP ! code of the weboxes declares the function onRender(), where ! some variables are added using WebApp::addVar(), and these ! {{variables}} are used in the corresponding template. ! </td> ! ! <td width="50%" valign="top" bgcolor="#EEEEEE"> ! <a href="javascript:tabs3_select('tabs3::tutorial','events')"> ! <strong>4 - Sending and Handelling Events</strong> ! </a> ! <br> ! Some of the transitions send events to some of the weboxes. The ! target weboxes handle these events in their eventHandler() ! functions. Explains also the transitions to 'thisPage', sending ! an event to 'any' webox, and sending events to 'none' of the ! weboxes (independent events). ! </td> ! </tr> ! ! <tr> ! <td width="50%" valign="top" bgcolor="#EEEEEE"> ! <a href="javascript:tabs3_select('tabs3::tutorial','sess_var')"> ! <strong>5 - Session and Variables</strong> ! </a> ! <br> ! Explains what are the session variables and how to use them. ! Explains further how the {{template variables}} are evaluated. ! Explains how the session variables are used to keep the state ! of the weboxes and the states of the application (introduces ! the function onLoad() of the weboxes). Explains how the ! <If> elements are used to display templates ! conditionally. Explains how to debug the session ! variables. ! </td> ! ! <td width="50%" valign="top" bgcolor="#F8F8F8"> ! <a href="javascript:tabs3_select('tabs3::tutorial','database')"> ! <strong>6 - Interacting with a Database</strong> ! </a> ! <br> ! Explains how to set a default connection with a database. ! Explains the configuration file of a template (*.tpc) and the ! <Recordset> element. Explains the <Repeat> elements ! and how to use them inside a template. Explains the '.db' file ! of a webox, the <Recordset> and <dbCommand> ! elements inside it, and how to use the functions ! WebApp::execDBCmd(), WebApp::openRS() and WebApp::execQuery() ! inside the PHP code of the webox. Explains how to debug the ! recordsets of the page and the execution times of the queries ! (and other processes). ! </td> ! </tr> ! ! <tr> ! <td width="50%" valign="top" bgcolor="#F8F8F8"> ! <a href="javascript:tabs3_select('tabs3::tutorial','advanced')"> ! <strong>7 - All the rest of the advanced features</strong> ! </a> ! <br> ! A complicated, real and almost finished web application ! (which may evolve from the previous samples or may be ! independent of them), which makes use and explains almost all ! of the advanced features of framework which have not been ! explained in the previous samples. Such features may be: ! ! <ul> ! <li>Detailed explanation of the <Repeat> element and ! the page recordsets.</li> ! ! <li><Var> elements</li> ! ! <li>An <Include> element that uses a variable.</li> ! ! <li>Usage of an external webox.</li> ! ! <li>Etc.</li> ! </ul> ! </td> ! ! <td width="50%" valign="top" bgcolor="#EEEEEE"> ! <a href="javascript:tabs3_select('tabs3::tutorial','documentation')"> ! <strong>8 - The documentation application</strong> ! </a> ! <br> ! This web application (the 'phpWebApp documentation') is built ! using phpWebApp itself. This tutorial explains how this web ! application is constructed. ! </td> ! </tr> ! </table> |
From: Dashamir H. <das...@us...> - 2003-08-25 16:33:28
|
Update of /cvsroot/phpwebapp/web_app/webobjects/xlistbox In directory sc8-pr-cvs1:/tmp/cvs-serv9888/webobjects/xlistbox Modified Files: xlistbox.php xlistbox.js Log Message: Added the copying permission statement for the GNU GPL. Index: xlistbox.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/xlistbox/xlistbox.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** xlistbox.php 11 Aug 2003 16:17:50 -0000 1.3 --- xlistbox.php 25 Aug 2003 13:18:28 -0000 1.4 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * @package webobjects Index: xlistbox.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/webobjects/xlistbox/xlistbox.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xlistbox.js 16 Jul 2003 09:27:59 -0000 1.2 --- xlistbox.js 25 Aug 2003 13:18:28 -0000 1.3 *************** *** 1,3 **** --- 1,22 ---- //-*- mode: C; -*-//tells emacs to use mode C for this file + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ |
From: Dashamir H. <das...@us...> - 2003-08-25 16:30:26
|
Update of /cvsroot/phpwebapp/app3 In directory sc8-pr-cvs1:/tmp/cvs-serv26666 Modified Files: index.php Log Message: converted CRLF to LF Index: index.php =================================================================== RCS file: /cvsroot/phpwebapp/app3/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 25 Aug 2003 13:52:02 -0000 1.2 --- index.php 25 Aug 2003 14:30:38 -0000 1.3 *************** *** 1,28 **** ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! ! include_once "webapp.php"; ! ! //construct the target page of the transition ! $tpl_page = TPL_PATH.$event->targetPage; ! WebApp::constructHtmlPage($tpl_page); ?> --- 1,28 ---- ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! ! include_once "webapp.php"; ! ! //construct the target page of the transition ! $tpl_page = TPL_PATH.$event->targetPage; ! WebApp::constructHtmlPage($tpl_page); ?> |
From: Dashamir H. <das...@us...> - 2003-08-25 16:13:28
|
Update of /cvsroot/phpwebapp/web_app In directory sc8-pr-cvs1:/tmp/cvs-serv9888 Modified Files: const.Paths.php WebApp.php Log Message: Added the copying permission statement for the GNU GPL. Index: const.Paths.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/const.Paths.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** const.Paths.php 22 Aug 2003 15:54:43 -0000 1.3 --- const.Paths.php 25 Aug 2003 13:18:39 -0000 1.4 *************** *** 1,3 **** --- 1,23 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + /** * Constants for the paths of the application framework. Index: WebApp.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/WebApp.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** WebApp.php 22 Aug 2003 15:54:43 -0000 1.4 --- WebApp.php 25 Aug 2003 13:18:39 -0000 1.5 *************** *** 1,3 **** --- 1,23 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + //paths of the application framework include_once WEBAPP_PATH."const.Paths.php"; |
From: Dashamir H. <das...@us...> - 2003-08-25 15:54:51
|
Update of /cvsroot/phpwebapp/documentation In directory sc8-pr-cvs1:/tmp/cvs-serv16099 Modified Files: webapp.php index.php codeReview.php browse.php ToDo.txt Log Message: Added copying permission statement for GNU GPL. Index: webapp.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/webapp.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** webapp.php 22 Aug 2003 06:51:17 -0000 1.4 --- webapp.php 25 Aug 2003 13:29:19 -0000 1.5 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + //define APP_PATH and APP_URL $script_filename = $_SERVER["SCRIPT_FILENAME"]; Index: index.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.php 21 Feb 2003 08:18:22 -0000 1.1.1.1 --- index.php 25 Aug 2003 13:29:19 -0000 1.2 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + include_once "webapp.php"; Index: codeReview.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/codeReview.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** codeReview.php 6 Aug 2003 08:42:38 -0000 1.2 --- codeReview.php 25 Aug 2003 13:29:19 -0000 1.3 *************** *** 1,4 **** --- 1,26 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + include "webapp.php"; + WebApp::addSVar("codeViewer->codeFile", $file); WebApp::addSVar("codeViewer->showLineNr", "true"); *************** *** 6,9 **** --- 28,32 ---- WebApp::addSVar("codeViewer->highlightLines", $highlights); WebApp::addVar("file", basename($file)); + WebApp::constructHtmlPage("codeReview.html"); ?> Index: browse.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/browse.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** browse.php 22 Aug 2003 06:51:17 -0000 1.3 --- browse.php 25 Aug 2003 13:29:19 -0000 1.4 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + include "webapp.php"; Index: ToDo.txt =================================================================== RCS file: /cvsroot/phpwebapp/documentation/ToDo.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** ToDo.txt 22 Aug 2003 06:51:17 -0000 1.4 --- ToDo.txt 25 Aug 2003 13:29:19 -0000 1.5 *************** *** 3,8 **** * Write tutorials 4, 5 etc. * Put summaries of the tutorials in separate files. - * Review the code of web_app and improve the comments. * Generate the code documentation with doxygen and phpDocumentor and add links to it from Documentation/Developer Docs. --- 3,8 ---- * Write tutorials 4, 5 etc. + * Add GPL notice at the head of each file. * Put summaries of the tutorials in separate files. * Generate the code documentation with doxygen and phpDocumentor and add links to it from Documentation/Developer Docs. |
From: Dashamir H. <das...@us...> - 2003-08-25 15:54:51
|
Update of /cvsroot/phpwebapp/documentation/config In directory sc8-pr-cvs1:/tmp/cvs-serv16099/config Modified Files: const.Paths.php const.Options.php const.Debug.php Log Message: Added copying permission statement for GNU GPL. Index: const.Paths.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/config/const.Paths.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** const.Paths.php 22 Aug 2003 06:51:17 -0000 1.5 --- const.Paths.php 25 Aug 2003 13:29:19 -0000 1.6 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + //constants of the paths in the application define("WEBAPP_PATH", UP_PATH."web_app/"); Index: const.Options.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/config/const.Options.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** const.Options.php 7 Aug 2003 15:54:14 -0000 1.2 --- const.Options.php 25 Aug 2003 13:29:19 -0000 1.3 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * The constants defined in this file change the behaviour of the Index: const.Debug.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/config/const.Debug.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** const.Debug.php 21 Feb 2003 08:18:23 -0000 1.1.1.1 --- const.Debug.php 25 Aug 2003 13:29:19 -0000 1.2 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * The following constants are debug constants. |
From: Dashamir H. <das...@us...> - 2003-08-25 15:54:49
|
Update of /cvsroot/phpwebapp/documentation/templates In directory sc8-pr-cvs1:/tmp/cvs-serv16099/templates Modified Files: mainMenu_items.php content.php Log Message: Added copying permission statement for GNU GPL. Index: mainMenu_items.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/mainMenu_items.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** mainMenu_items.php 20 Aug 2003 07:31:55 -0000 1.3 --- mainMenu_items.php 25 Aug 2003 13:29:19 -0000 1.4 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * The $menu_items array contains the items of the mainMenu. Index: content.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/content.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** content.php 20 Aug 2003 07:31:55 -0000 1.2 --- content.php 25 Aug 2003 13:29:19 -0000 1.3 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + class content extends WebObject { |
From: Dashamir H. <das...@us...> - 2003-08-25 15:54:15
|
Update of /cvsroot/phpwebapp/documentation/templates/tutorial In directory sc8-pr-cvs1:/tmp/cvs-serv16099/templates/tutorial Modified Files: tutorial_items.php tutorial.js Log Message: Added copying permission statement for GNU GPL. Index: tutorial_items.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/tutorial_items.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** tutorial_items.php 20 Aug 2003 07:31:55 -0000 1.3 --- tutorial_items.php 25 Aug 2003 13:29:19 -0000 1.4 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * The $menu_items array contains the items Index: tutorial.js =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/tutorial/tutorial.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tutorial.js 15 Aug 2003 07:32:12 -0000 1.1 --- tutorial.js 25 Aug 2003 13:29:19 -0000 1.2 *************** *** 1,4 **** ! //this function opens a new window for displaying a code file function codeReview(file_path, highlights, lines) { --- 1,6 ---- + //-*- mode: C; -*-//tells emacs to use mode C for this file + /* This file is part of phpWebApp. */ ! /** This function opens a new window for displaying a code file. */ function codeReview(file_path, highlights, lines) { |
From: Dashamir H. <das...@us...> - 2003-08-25 15:54:14
|
Update of /cvsroot/phpwebapp/documentation/templates/webobjects In directory sc8-pr-cvs1:/tmp/cvs-serv16099/templates/webobjects Modified Files: wobj_page.php webobj_items.php Log Message: Added copying permission statement for GNU GPL. Index: wobj_page.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/wobj_page.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** wobj_page.php 23 Feb 2003 14:29:07 -0000 1.2 --- wobj_page.php 25 Aug 2003 13:29:19 -0000 1.3 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + class wobj_page extends WebObject { Index: webobj_items.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/webobjects/webobj_items.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** webobj_items.php 20 Aug 2003 07:31:54 -0000 1.3 --- webobj_items.php 25 Aug 2003 13:29:19 -0000 1.4 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * The $menu_items array contains the items |
From: Dashamir H. <das...@us...> - 2003-08-25 15:54:14
|
Update of /cvsroot/phpwebapp/documentation/webobjects/displaytxt In directory sc8-pr-cvs1:/tmp/cvs-serv16099/webobjects/displaytxt Modified Files: displaytxt.php Log Message: Added copying permission statement for GNU GPL. Index: displaytxt.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/webobjects/displaytxt/displaytxt.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** displaytxt.php 20 Aug 2003 07:31:54 -0000 1.2 --- displaytxt.php 25 Aug 2003 13:29:19 -0000 1.3 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + class displaytxt extends WebObject { |
From: Dashamir H. <das...@us...> - 2003-08-25 15:49:05
|
Update of /cvsroot/phpwebapp/documentation In directory sc8-pr-cvs1:/tmp/cvs-serv27288 Modified Files: index.php Log Message: converted CRLF to LF Index: index.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 25 Aug 2003 13:29:19 -0000 1.2 --- index.php 25 Aug 2003 14:34:23 -0000 1.3 *************** *** 1,28 **** ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! ! include_once "webapp.php"; ! ! //construct the target page of the transition ! $tpl_page = TPL_PATH.$event->targetPage; ! WebApp::constructHtmlPage($tpl_page); ?> --- 1,28 ---- ! <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... ! ! This file is part of phpWebApp. ! ! phpWebApp is free software; you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation; either version 2 of the License, or ! (at your option) any later version. ! ! phpWebApp is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with phpWebApp; if not, write to the Free Software ! Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ! */ ! ! ! include_once "webapp.php"; ! ! //construct the target page of the transition ! $tpl_page = TPL_PATH.$event->targetPage; ! WebApp::constructHtmlPage($tpl_page); ?> |
From: Dashamir H. <das...@us...> - 2003-08-25 15:43:05
|
Update of /cvsroot/phpwebapp/web_app/session In directory sc8-pr-cvs1:/tmp/cvs-serv9888/session Modified Files: wbSession.php tst.php func.GoTo.js class.Session.php class.Session.js class.Request.php class.Event.php Log Message: Added the copying permission statement for the GNU GPL. Index: wbSession.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/wbSession.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** wbSession.php 11 Aug 2003 16:17:51 -0000 1.4 --- wbSession.php 25 Aug 2003 13:18:30 -0000 1.5 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * Includes the session inside the HTML page. Index: tst.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/tst.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tst.php 11 Aug 2003 16:17:51 -0000 1.2 --- tst.php 25 Aug 2003 13:18:31 -0000 1.3 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** @package session */ /** */ Index: func.GoTo.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/func.GoTo.js,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** func.GoTo.js 22 Aug 2003 15:54:42 -0000 1.3 --- func.GoTo.js 25 Aug 2003 13:18:31 -0000 1.4 *************** *** 1,3 **** --- 1,22 ---- //-*- mode: C; -*-//tells emacs to use mode C for this file + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ Index: class.Session.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/class.Session.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.Session.php 22 Aug 2003 15:54:42 -0000 1.5 --- class.Session.php 25 Aug 2003 13:18:31 -0000 1.6 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * Used to keep session (state, persistent) variables. Index: class.Session.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/class.Session.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** class.Session.js 16 Jul 2003 09:27:59 -0000 1.2 --- class.Session.js 25 Aug 2003 13:18:31 -0000 1.3 *************** *** 1,3 **** --- 1,22 ---- //-*- mode: C; -*-//tells emacs to use mode C for this file + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ Index: class.Request.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/class.Request.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.Request.php 22 Aug 2003 15:54:42 -0000 1.4 --- class.Request.php 25 Aug 2003 13:18:31 -0000 1.5 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * Keeps the information comming from the browser. Index: class.Event.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/class.Event.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.Event.php 22 Aug 2003 15:54:42 -0000 1.4 --- class.Event.php 25 Aug 2003 13:18:31 -0000 1.5 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * Used to keep the data of an event. |
From: Dashamir H. <das...@us...> - 2003-08-25 15:43:05
|
Update of /cvsroot/phpwebapp/web_app/parser In directory sc8-pr-cvs1:/tmp/cvs-serv9888/parser Modified Files: package.ParseRender.php class.WebPage.php class.WebObjectTpl.php class.WebObject.php class.WebClassTpl.php class.VarStack.php class.Template.php class.RepeatTpl.php class.Render.php class.Parser.php class.MainTpl.php class.IfTpl.php class.FileTpl.php Log Message: Added the copying permission statement for the GNU GPL. Index: package.ParseRender.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/package.ParseRender.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** package.ParseRender.php 11 Aug 2003 16:17:51 -0000 1.2 --- package.ParseRender.php 25 Aug 2003 13:18:32 -0000 1.3 *************** *** 1,5 **** <?php ! /** @package parser */ /** */ include_once PARSER_PATH."class.WebPage.php"; --- 1,24 ---- <?php ! /* ! Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** @package parser */ /** */ include_once PARSER_PATH."class.WebPage.php"; Index: class.WebPage.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.WebPage.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** class.WebPage.php 22 Aug 2003 15:54:42 -0000 1.7 --- class.WebPage.php 25 Aug 2003 13:18:32 -0000 1.8 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** include timing functions */ include_once TIMER_PATH."class.Timer.php"; Index: class.WebObjectTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.WebObjectTpl.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.WebObjectTpl.php 22 Aug 2003 15:54:42 -0000 1.5 --- class.WebObjectTpl.php 25 Aug 2003 13:18:32 -0000 1.6 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * The template of a <WebObject> tag (which is copied Index: class.WebObject.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.WebObject.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.WebObject.php 22 Aug 2003 15:54:42 -0000 1.5 --- class.WebObject.php 25 Aug 2003 13:18:32 -0000 1.6 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * This is like an interface or a general class that should be Index: class.WebClassTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.WebClassTpl.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** class.WebClassTpl.php 22 Aug 2003 15:54:42 -0000 1.6 --- class.WebClassTpl.php 25 Aug 2003 13:18:32 -0000 1.7 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * The template of a <WebClass> element. Index: class.VarStack.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.VarStack.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.VarStack.php 22 Aug 2003 15:54:42 -0000 1.5 --- class.VarStack.php 25 Aug 2003 13:18:32 -0000 1.6 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * A stack of associative arrays, keeping variables in nesting scopes. Index: class.Template.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.Template.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** class.Template.php 22 Aug 2003 15:54:42 -0000 1.6 --- class.Template.php 25 Aug 2003 13:18:32 -0000 1.7 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * @package parser Index: class.RepeatTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.RepeatTpl.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.RepeatTpl.php 22 Aug 2003 15:54:42 -0000 1.4 --- class.RepeatTpl.php 25 Aug 2003 13:18:32 -0000 1.5 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * A template that is repeated for each record of a recordset. Index: class.Render.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.Render.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.Render.php 22 Aug 2003 15:54:42 -0000 1.5 --- class.Render.php 25 Aug 2003 13:18:32 -0000 1.6 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * Renders an HTML page from the templates and structures of the $webPage. Index: class.Parser.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.Parser.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.Parser.php 22 Aug 2003 15:54:42 -0000 1.5 --- class.Parser.php 25 Aug 2003 13:18:32 -0000 1.6 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * Parses the templates and constructs $webPage, which Index: class.MainTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.MainTpl.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.MainTpl.php 22 Aug 2003 15:54:42 -0000 1.5 --- class.MainTpl.php 25 Aug 2003 13:18:32 -0000 1.6 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * Represents the main (root) template in the tree of templates. Index: class.IfTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.IfTpl.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.IfTpl.php 22 Aug 2003 15:54:42 -0000 1.4 --- class.IfTpl.php 25 Aug 2003 13:18:32 -0000 1.5 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * A template that is renderd if the condition evaluates to true. Index: class.FileTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.FileTpl.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.FileTpl.php 22 Aug 2003 15:54:42 -0000 1.4 --- class.FileTpl.php 25 Aug 2003 13:18:32 -0000 1.5 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * A template that contains the content of a file that is |
From: Dashamir H. <das...@us...> - 2003-08-25 15:21:20
|
Update of /cvsroot/phpwebapp/documentation/templates/user_manual In directory sc8-pr-cvs1:/tmp/cvs-serv16099/templates/user_manual Modified Files: manual_page.php manual_items.php Log Message: Added copying permission statement for GNU GPL. Index: manual_page.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/user_manual/manual_page.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** manual_page.php 23 Feb 2003 14:29:07 -0000 1.2 --- manual_page.php 25 Aug 2003 13:29:19 -0000 1.3 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + class manual_page extends WebObject { Index: manual_items.php =================================================================== RCS file: /cvsroot/phpwebapp/documentation/templates/user_manual/manual_items.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** manual_items.php 20 Aug 2003 07:31:55 -0000 1.3 --- manual_items.php 25 Aug 2003 13:29:19 -0000 1.4 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * The $menu_items array contains the items |
From: Dashamir H. <das...@us...> - 2003-08-25 14:06:18
|
Update of /cvsroot/phpwebapp/documentation/external In directory sc8-pr-cvs1:/tmp/cvs-serv16326/external Modified Files: phpdoc.sh doxygen.cfg Log Message: Index: phpdoc.sh =================================================================== RCS file: /cvsroot/phpwebapp/documentation/external/phpdoc.sh,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** phpdoc.sh 15 Aug 2003 08:09:15 -0000 1.1 --- phpdoc.sh 25 Aug 2003 13:30:17 -0000 1.2 *************** *** 43,47 **** # * @var string PATH_PROJECT # */ ! PATH_PROJECT=$PWD/../../web_app #/** --- 43,47 ---- # * @var string PATH_PROJECT # */ ! PATH_PROJECT=$PWD/../../web_app,$PWD/../../empty-sample #/** Index: doxygen.cfg =================================================================== RCS file: /cvsroot/phpwebapp/documentation/external/doxygen.cfg,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** doxygen.cfg 15 Aug 2003 08:09:15 -0000 1.1 --- doxygen.cfg 25 Aug 2003 13:30:17 -0000 1.2 *************** *** 358,362 **** # with spaces. ! INPUT = ../../web_app # If the value of the INPUT tag contains directories, you can use the --- 358,362 ---- # with spaces. ! INPUT = ../../web_app ../../empty-sample # If the value of the INPUT tag contains directories, you can use the |
From: Dashamir H. <das...@us...> - 2003-08-25 13:52:49
|
Update of /cvsroot/phpwebapp/app1/config In directory sc8-pr-cvs1:/tmp/cvs-serv17951/config Modified Files: const.Paths.php const.Options.php const.Debug.php Log Message: Added copying permission statement for GNU GPL. Index: const.Paths.php =================================================================== RCS file: /cvsroot/phpwebapp/app1/config/const.Paths.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** const.Paths.php 15 Aug 2003 08:15:53 -0000 1.3 --- const.Paths.php 25 Aug 2003 13:41:13 -0000 1.4 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part if phpWebApp. */ + //constants of the paths in the application define("WEBAPP_PATH", UP_PATH."web_app/"); Index: const.Options.php =================================================================== RCS file: /cvsroot/phpwebapp/app1/config/const.Options.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** const.Options.php 21 Feb 2003 08:23:38 -0000 1.1.1.1 --- const.Options.php 25 Aug 2003 13:41:13 -0000 1.2 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * The constants defined in this file change the behaviour of the Index: const.Debug.php =================================================================== RCS file: /cvsroot/phpwebapp/app1/config/const.Debug.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** const.Debug.php 21 Feb 2003 08:23:38 -0000 1.1.1.1 --- const.Debug.php 25 Aug 2003 13:41:13 -0000 1.2 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * The following constants are debug constants. |
From: Dashamir H. <das...@us...> - 2003-08-25 13:46:56
|
Update of /cvsroot/phpwebapp/app2/config In directory sc8-pr-cvs1:/tmp/cvs-serv18826/config Modified Files: const.Paths.php const.Options.php const.Debug.php Log Message: Added copying permission statement for GNU GPL. Index: const.Paths.php =================================================================== RCS file: /cvsroot/phpwebapp/app2/config/const.Paths.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** const.Paths.php 15 Aug 2003 09:10:10 -0000 1.3 --- const.Paths.php 25 Aug 2003 13:46:53 -0000 1.4 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + //constants of the paths in the application define("WEBAPP_PATH", UP_PATH."web_app/"); Index: const.Options.php =================================================================== RCS file: /cvsroot/phpwebapp/app2/config/const.Options.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** const.Options.php 21 Feb 2003 08:24:12 -0000 1.1.1.1 --- const.Options.php 25 Aug 2003 13:46:53 -0000 1.2 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * The constants defined in this file change the behaviour of the Index: const.Debug.php =================================================================== RCS file: /cvsroot/phpwebapp/app2/config/const.Debug.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** const.Debug.php 21 Feb 2003 08:24:11 -0000 1.1.1.1 --- const.Debug.php 25 Aug 2003 13:46:53 -0000 1.2 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + /** * The following constants are debug constants. |
From: Dashamir H. <das...@us...> - 2003-08-25 13:46:56
|
Update of /cvsroot/phpwebapp/app2 In directory sc8-pr-cvs1:/tmp/cvs-serv18826 Modified Files: webapp.php index.php browse.php Log Message: Added copying permission statement for GNU GPL. Index: webapp.php =================================================================== RCS file: /cvsroot/phpwebapp/app2/webapp.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** webapp.php 15 Aug 2003 09:10:10 -0000 1.3 --- webapp.php 25 Aug 2003 13:46:53 -0000 1.4 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + //define APP_PATH and APP_URL $script_filename = $_SERVER["SCRIPT_FILENAME"]; *************** *** 26,30 **** include WEBAPP_PATH."WebApp.php"; ! if ($event->targetPage==UNDEFINED) { //first time that the user enters in the application --- 47,51 ---- include WEBAPP_PATH."WebApp.php"; ! if (WebApp::first_time()) { //first time that the user enters in the application Index: index.php =================================================================== RCS file: /cvsroot/phpwebapp/app2/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.php 21 Feb 2003 08:24:11 -0000 1.1.1.1 --- index.php 25 Aug 2003 13:46:53 -0000 1.2 *************** *** 1,3 **** --- 1,24 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + include_once "webapp.php"; Index: browse.php =================================================================== RCS file: /cvsroot/phpwebapp/app2/browse.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** browse.php 7 Aug 2003 16:00:59 -0000 1.2 --- browse.php 25 Aug 2003 13:46:53 -0000 1.3 *************** *** 1,5 **** <?php include "webapp.php"; WebApp::addVar("APP_STYLE", APP_URL."templates/styles.css"); WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html"); ! ?> --- 1,35 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + + include "webapp.php"; + + if (WebApp::first_time()) + { + $path = $_SERVER["QUERY_STRING"]; + WebApp::addSVar("folderListing->fileFilter", ".*"); + WebApp::addSVar("folderListing->root", APP_PATH); + WebApp::addSVar("folderListing->currentPath", $path); + } + WebApp::addVar("APP_STYLE", APP_URL."templates/styles.css"); WebApp::constructHtmlPage(BROWSER_PATH."fileBrowser.html"); ! ?> \ No newline at end of file |
From: Dashamir H. <das...@us...> - 2003-08-25 13:46:49
|
Update of /cvsroot/phpwebapp/empty-sample In directory sc8-pr-cvs1:/tmp/cvs-serv18306 Modified Files: webapp.php init.php index.php global.php browse.php before_page.php after_page.php Log Message: Added copying permission statement for GNU GPL. Index: webapp.php =================================================================== RCS file: /cvsroot/phpwebapp/empty-sample/webapp.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** webapp.php 22 Aug 2003 16:27:30 -0000 1.1.1.1 --- webapp.php 25 Aug 2003 13:43:35 -0000 1.2 *************** *** 1,3 **** --- 1,23 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + /** * Standard file for all the applications, Index: init.php =================================================================== RCS file: /cvsroot/phpwebapp/empty-sample/init.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** init.php 22 Aug 2003 16:27:30 -0000 1.1.1.1 --- init.php 25 Aug 2003 13:43:35 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * This file is included the first time that the application Index: index.php =================================================================== RCS file: /cvsroot/phpwebapp/empty-sample/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.php 22 Aug 2003 16:27:30 -0000 1.1.1.1 --- index.php 25 Aug 2003 13:43:35 -0000 1.2 *************** *** 1,3 **** --- 1,23 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + /** * Standard file for all the applications, Index: global.php =================================================================== RCS file: /cvsroot/phpwebapp/empty-sample/global.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** global.php 22 Aug 2003 16:27:30 -0000 1.1.1.1 --- global.php 25 Aug 2003 13:43:35 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * This file is included every time. It contains functions, Index: browse.php =================================================================== RCS file: /cvsroot/phpwebapp/empty-sample/browse.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** browse.php 22 Aug 2003 16:27:30 -0000 1.1.1.1 --- browse.php 25 Aug 2003 13:43:35 -0000 1.2 *************** *** 1,3 **** --- 1,23 ---- <?php + /* + Copyright 2001,2002,2003 Dashamir Hoxha, das...@us... + + This file is part of phpWebApp. + + phpWebApp is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + phpWebApp is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with phpWebApp; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + /** * This is a tool that is used to browse the files Index: before_page.php =================================================================== RCS file: /cvsroot/phpwebapp/empty-sample/before_page.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** before_page.php 22 Aug 2003 16:27:30 -0000 1.1.1.1 --- before_page.php 25 Aug 2003 13:43:35 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * This file is included before each page is parsed. Index: after_page.php =================================================================== RCS file: /cvsroot/phpwebapp/empty-sample/after_page.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** after_page.php 22 Aug 2003 16:27:30 -0000 1.1.1.1 --- after_page.php 25 Aug 2003 13:43:35 -0000 1.2 *************** *** 1,3 **** --- 1,5 ---- <?php + /* This file is part of phpWebApp. */ + /** * This file is included after each page is constructed. |
From: Dashamir H. <das...@us...> - 2003-08-23 04:21:03
|
Update of /cvsroot/phpwebapp/web_app In directory sc8-pr-cvs1:/tmp/cvs-serv6393 Modified Files: const.Paths.php class.WebApp.php WebApp.php Log Message: modified a little bit the comments Index: const.Paths.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/const.Paths.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** const.Paths.php 16 Jul 2003 09:28:00 -0000 1.2 --- const.Paths.php 22 Aug 2003 15:54:43 -0000 1.3 *************** *** 1,6 **** <?php ! //constants for the paths of the application framework ! //packages paths define("PARSER_PATH", WEBAPP_PATH."parser/"); define("SESSION_PATH", WEBAPP_PATH."session/"); --- 1,9 ---- <?php ! /** ! * Constants for the paths of the application framework. ! */ ! /** */ ! //package paths define("PARSER_PATH", WEBAPP_PATH."parser/"); define("SESSION_PATH", WEBAPP_PATH."session/"); Index: class.WebApp.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/class.WebApp.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** class.WebApp.php 22 Aug 2003 06:48:09 -0000 1.11 --- class.WebApp.php 22 Aug 2003 15:54:43 -0000 1.12 *************** *** 132,135 **** --- 132,136 ---- * It is useful when you want to construct a page * for sending it by e-mail. + * @see constructHtmlPage() */ function getHtmlPage($tpl_file) *************** *** 168,172 **** function reloadPage($tpl_file=UNDEFINED) { ! global $webPage; if ($tpl_file==UNDEFINED) //no parameter given --- 169,173 ---- function reloadPage($tpl_file=UNDEFINED) { ! global $webPage, $tplVars; if ($tpl_file==UNDEFINED) //no parameter given *************** *** 176,180 **** --- 177,183 ---- } unset($webPage); + unset($varStack); $webPage = new WebPage; + $tplVars = new VarStack; $webPage->load($tpl_file); } *************** *** 187,190 **** --- 190,194 ---- * Add a template variable in the current scope * (for the current webbox or template). + * @see addVars(), getVar(), addGlobalVar(), addGlobalVars() */ function addVar($var_name, $var_value) *************** *** 197,200 **** --- 201,205 ---- * Add a template variable in the global scope; * it will be available in all the application templates. + * @see addGlobalVars(), getVar(), addVar(), addVars() */ function addGlobalVar($var_name, $var_value) *************** *** 207,210 **** --- 212,216 ---- * Add a list (associative array) of template variables * at once. + * @see addVar(), getVar(), addGlobalVar(), addGlobalVars() */ function addVars($arrVars) *************** *** 214,218 **** } ! /** Add a list of global template variables at once */ function addGlobalVars($arrVars) { --- 220,227 ---- } ! /** ! * Add a list of global template variables at once. ! * @see addGlobalVar(), getVar(), addVar(), addVars() ! */ function addGlobalVars($arrVars) { *************** *** 224,227 **** --- 233,237 ---- * Returns the value of a template variable, * or UNDEFINED if such a variable does not exist. + * @see addVar(), addVars(), addGlobalVar(), addGlobalVars() */ function getVar($var_name) *************** *** 231,235 **** } ! /** Add a session variable. */ function addSVar($var_name, $var_value, $db =false) { --- 241,248 ---- } ! /** ! * Add a session variable. ! * @see getSVar(), setSVar() ! */ function addSVar($var_name, $var_value, $db =false) { *************** *** 238,242 **** } ! /** Set a new value to a session variable. */ function setSVar($var_name, $var_value) { --- 251,258 ---- } ! /** ! * Set a new value to a session variable. ! * @see addSVar(), getSVar() ! */ function setSVar($var_name, $var_value) { *************** *** 259,263 **** } ! /** Get the value of a session variable. */ function getSVar($var_name) { --- 275,282 ---- } ! /** ! * Get the value of a session variable. ! * @see addSVar(), setSVar() ! */ function getSVar($var_name) { *************** *** 298,301 **** --- 317,321 ---- * in the given $expr. Called by evaluate() (which will be declared * these variables as global). + * @see evaluate() */ function get_var_names($expr) *************** *** 384,387 **** --- 404,408 ---- * Get the quote which surrounds the $var_name: * single, double, or none. + * @see replaceVars() */ function get_quote($var_name) *************** *** 403,407 **** return array($var_name, $quote); } ! /** Escape all the quotes in the $var_value. */ function escape_quotes($var_value, $quote) { --- 424,431 ---- return array($var_name, $quote); } ! /** ! * Escape all the quotes in the $var_value. ! * @see replaceVars(), get_quote() ! */ function escape_quotes($var_value, $quote) { *************** *** 432,435 **** --- 456,460 ---- * Execute the given query. * @return Recordset + * @see execDBCmd(), openRS() */ function execQuery($query, $conn =UNDEFINED) *************** *** 457,460 **** --- 482,486 ---- * $params is an array of {{vars}} that are used in the query. * Returns TRUE or FALSE indicating success or failure. + * @see execQuery(), openRS() */ function execDBCmd($cmd_id, $params =array()) *************** *** 480,483 **** --- 506,510 ---- * $params is an array of {{vars}} that are used in the query. * @return Recordset + * @see execDBCmd(), execQuery() */ function openRS($rs_id, $params =array()) Index: WebApp.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/WebApp.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** WebApp.php 7 Aug 2003 16:12:22 -0000 1.3 --- WebApp.php 22 Aug 2003 15:54:43 -0000 1.4 *************** *** 20,26 **** define("WEBAPP_URL", WebApp::to_url(WEBAPP_PATH)); ! //declare some global variables $request = new Request; ! $tplVars = new VarStack; //keeps the template variables $webPage = new WebPage; $parser = new Parser; --- 20,26 ---- define("WEBAPP_URL", WebApp::to_url(WEBAPP_PATH)); ! //global variables $request = new Request; ! $tplVars = new VarStack; $webPage = new WebPage; $parser = new Parser; |
From: Dashamir H. <das...@us...> - 2003-08-23 02:58:48
|
Update of /cvsroot/phpwebapp/web_app/parser In directory sc8-pr-cvs1:/tmp/cvs-serv6393/parser Modified Files: class.WebPage.php class.WebObjectTpl.php class.WebObject.php class.WebClassTpl.php class.VarStack.php class.Template.php class.RepeatTpl.php class.Render.php class.Parser.php class.MainTpl.php class.IfTpl.php class.FileTpl.php Log Message: modified a little bit the comments Index: class.WebPage.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.WebPage.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** class.WebPage.php 20 Aug 2003 07:00:49 -0000 1.6 --- class.WebPage.php 22 Aug 2003 15:54:42 -0000 1.7 *************** *** 11,26 **** class WebPage { ! var $tpl_file; //the file name of the main template ! var $rootTpl; //reference to the main template of the page ! var $tpl_collection; //collection of all the templates of the page ! var $rs_collection; //collection of all the recordsets of the page ! //keeps a list of messages that are displayed with alert() ! //to the user after the page is loaded var $messages; ! //keeps a list of debug messages that are displayed ! //after the page is rendered var $dbg_messages; --- 11,32 ---- class WebPage { ! /** The file name of the main template. */ ! var $tpl_file; ! ! /** Reference to the main template of the page. */ ! var $rootTpl; ! /** Collection of all the templates of the page. */ ! var $tpl_collection; ! /** Collection of all the recordsets of the page. */ ! var $rs_collection; ! ! /** Keeps a list of messages that are displayed with alert() ! * to the user after the page is loaded. */ var $messages; ! /** Keeps a list of debug messages that are displayed ! * after the page is rendered. */ var $dbg_messages; *************** *** 41,46 **** } ! /** ! * Append the given line to the content of the <head> element. */ function append_to_head($line) { --- 47,51 ---- } ! /** Append the given line to the content of the <head> element. */ function append_to_head($line) { *************** *** 48,53 **** } ! /** ! * Append the given line to the content of the <body> element. */ function append_to_body($line) { --- 53,57 ---- } ! /** Append the given line to the content of the <body> element. */ function append_to_body($line) { *************** *** 55,59 **** } ! /** adds a template in the template collection */ function addTemplate($tpl) { --- 59,63 ---- } ! /** Adds a template in the template collection. */ function addTemplate($tpl) { *************** *** 105,109 **** } ! /** adds a recordset in the recordset collection */ function addRecordset(&$rs) { --- 109,113 ---- } ! /** Adds a recordset in the recordset collection. */ function addRecordset(&$rs) { *************** *** 123,144 **** } - /** adds a recordset in the recordset collection */ - function setRecordset(&$rs) - { - static $rsId = "recordset_00"; - if (!isset($rs->ID)) - { - print WebApp::error_msg("Error:WebPage::setRecordset(): unidentified recordset.\n"); - print $rs->toHtmlTable(); - return; - } - else if ($rs->ID==UNDEFINED) - { - $rsId++; - $rs->ID = $rsId; - } - $this->rs_collection[$rs->ID] = $rs; - } - /** * Returns the recordset with the given id from the collection, --- 127,130 ---- *************** *** 158,161 **** --- 144,148 ---- } + /** Add a debug message to the list of debug messages. */ function addDbgMsg($dbg_msg, $comment ="") { *************** *** 166,171 **** /** ! * returns JS code that displays an alert for ! * each message in the messages array */ function messages_to_js() --- 153,158 ---- /** ! * Returns JS code that displays an alert for ! * each message in the messages array. */ function messages_to_js() *************** *** 205,209 **** /*------------------ debug functions --------------------------*/ ! /** outputs the data of each template in $this->tpl_collection */ function template_list() { --- 192,196 ---- /*------------------ debug functions --------------------------*/ ! /** (debug) Outputs the data of each template in $this->tpl_collection. */ function template_list() { *************** *** 237,241 **** } ! /** returns the structure of the loaded templates as a tree */ function tpl_to_tree() //for debugging parse() { --- 224,228 ---- } ! /** (debug) Returns the structure of the loaded templates as a tree. */ function tpl_to_tree() //for debugging parse() { *************** *** 250,257 **** /** ! * returns a string in html format which displays * all the recordsets in $this->rs_collection */ ! function recordsets_to_html() //for debugging openRecordsets() { $html_recs = "<hr>\n"; --- 237,245 ---- /** ! * Returns a string in html format which displays * all the recordsets in $this->rs_collection + * (for debugging Recordsets). */ ! function recordsets_to_html() { $html_recs = "<hr>\n"; Index: class.WebObjectTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.WebObjectTpl.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.WebObjectTpl.php 11 Aug 2003 16:17:51 -0000 1.4 --- class.WebObjectTpl.php 22 Aug 2003 15:54:42 -0000 1.5 *************** *** 1,13 **** <?php ! /** @package parser */ class WebObjectTpl extends Template { ! var $class; //a reference to the WebClassTpl of this objectTpl ! var $params; //an associative array of parameters and their values ! var $scope; //a reference to the scope of the object in the var stack ! var $obj_count; //the count of the object ! function WebObjectTpl($webObjId) //constructor { //call constructor of the superclass --- 1,26 ---- <?php ! /** ! * The template of a <WebObject> tag (which is copied ! * from the corresponding WebClass). ! * @package parser ! */ class WebObjectTpl extends Template { ! /** A reference to the WebClassTpl of this objectTpl. ! * @see WebClassTpl */ ! var $class; ! /** An associative array of parameters and their values. */ ! var $params; ! /** A reference to the scope of the object in the var stack. */ ! var $scope; ! ! /** The count of the object. */ ! var $obj_count; ! ! ! /** Constructor */ ! function WebObjectTpl($webObjId) { //call constructor of the superclass *************** *** 35,38 **** --- 48,52 ---- } + /** This is called after the template of the WebObject is parsed. */ function after_parse() { *************** *** 44,52 **** /** ! * this function is called by beforeParse(); ! * if the event is targeted to this webobj, it calls ! * the event hadler of the event, which has the same ! * name as the event; if a specific event handler does ! * not exist, it calls eventHandler() of the webclass */ function handle_event() --- 58,67 ---- /** ! * This function is called by beforeParse(). ! * - If the event is targeted to this webobj, it calls ! * the event hadler of the event, which has the same ! * name as the event. ! * - If a specific event handler does not exist, ! * it calls eventHandler() of the webclass. */ function handle_event() *************** *** 72,76 **** } ! /** returns an array with all the evaluated parameters */ function getParams() { --- 87,91 ---- } ! /** Returns an array with all the evaluated parameters. */ function getParams() { *************** *** 123,128 **** } ! function attribs2html() //for debugging output ! { reset($this->params); while ( list($p_name,$expr) = each($this->params) ) --- 138,143 ---- } ! /** debug */ ! function attribs2html() { reset($this->params); while ( list($p_name,$expr) = each($this->params) ) Index: class.WebObject.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.WebObject.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.WebObject.php 11 Aug 2003 16:17:51 -0000 1.4 --- class.WebObject.php 22 Aug 2003 15:54:42 -0000 1.5 *************** *** 2,52 **** /** * This is like an interface or a general class that should be ! * extended by all the PHP classes of the <WebClass>-es. ! * * @package parser */ class WebObject extends WebObjectTpl { ! function init() ! { ! //This is an abstract function ! //that can be overriden by subclasses. ! //It is called only the first time that ! //the webobj is created (only once in a session) ! //and can be used to initialize the state variables ! } ! function eventHandler($event) ! { ! //This is an abstract function ! //that can be overriden by subclasses. ! //It is called by the framework when ! //an event is sent to the webobj. ! } ! function onParse() ! { ! //This is an abstract function ! //that can be overriden by subclasses. ! //This is called by the framework before ! //the webobj is parsed. ! } ! function afterParse() ! { ! //This is an abstract function ! //that can be overriden by subclasses. ! //This is called by the framework after ! //the webobj is parsed. ! } ! function onRender() ! { ! //This is an abstract function ! //that can be overriden by subclasses. ! //This is called by the framework before ! //the webobj is rendered. It is usually used ! //to add variables that are used in the template. ! } /** empty constructor */ --- 2,52 ---- /** * This is like an interface or a general class that should be ! * extended by all the PHP classes of the <WebClass> and <WebBox> ! * elements. * @package parser */ class WebObject extends WebObjectTpl { ! /** ! * This is an abstract function ! * that can be overriden by subclasses. ! * It is called only the first time that ! * the webobj is created (only once in a session) ! * and can be used to initialize the state variables. ! */ ! function init() {} ! /** ! * This is an abstract function ! * that can be overriden by subclasses. ! * It is called by the framework when ! * an event is sent to the webobj. ! */ ! function eventHandler($event) {} ! /** ! * This is an abstract function ! * that can be overriden by subclasses. ! * This is called by the framework before ! * the webobj is parsed. ! */ ! function onParse() {} ! /** ! * This is an abstract function ! * that can be overriden by subclasses. ! * This is called by the framework after ! * the webobj is parsed. ! */ ! function afterParse() {} ! /** ! * This is an abstract function ! * that can be overriden by subclasses. ! * This is called by the framework before ! * the webobj is rendered. It is usually used ! * to add variables that are used in the template. ! */ ! function onRender() {} /** empty constructor */ *************** *** 86,90 **** } ! /** add state var (session var) */ function addSVar($var_name, $var_value, $db =false) { --- 86,90 ---- } ! /** Add state var (session var). */ function addSVar($var_name, $var_value, $db =false) { *************** *** 94,98 **** } ! /** $arr_vars is an associative array */ function addSVars($arr_vars, $db =false) { --- 94,98 ---- } ! /** $arr_vars is a list of vars (an associative array). */ function addSVars($arr_vars, $db =false) { *************** *** 129,134 **** * The optional parameter $type accepts the values "DB" * and "JS", and depending on this parameter the function ! * returns DB vars, JS vars or all of them (if undefined) ! * */ function getSVars($type =UNDEFINED) --- 129,133 ---- * The optional parameter $type accepts the values "DB" * and "JS", and depending on this parameter the function ! * returns DB vars, JS vars or all of them (if undefined). */ function getSVars($type =UNDEFINED) Index: class.WebClassTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.WebClassTpl.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.WebClassTpl.php 11 Aug 2003 16:17:51 -0000 1.5 --- class.WebClassTpl.php 22 Aug 2003 15:54:42 -0000 1.6 *************** *** 1,11 **** <?php ! /** @package parser */ class WebClassTpl extends Template { ! var $path; //path where the WebClassTpl is located ! var $params; //array of parameters and their default values ! /** the number of the objects of this class, it is ! * incremented each time that a new object is created */ var $obj_count; --- 1,18 ---- <?php ! /** ! * The template of a <WebClass> element. ! * @package parser ! */ class WebClassTpl extends Template { ! /** Path where the WebClassTpl is located. */ ! var $path; ! /** Array of parameters and their default values. */ ! var $params; ! ! /** ! * The number of the objects of this class. It is ! * incremented each time that a new object is created. */ var $obj_count; *************** *** 33,37 **** } ! /** parse the .db file of the webclass, if it exists */ function parse_db_file() { --- 40,44 ---- } ! /** Parse the .db file of the webclass, if it exists. */ function parse_db_file() { *************** *** 50,54 **** * Looks for the PHP file in the same folder as WebClass * (with the same name as the webclass' ID) and includes it ! * if it exists; if not, define a dummy class for this webclass */ function include_php_class() --- 57,61 ---- * Looks for the PHP file in the same folder as WebClass * (with the same name as the webclass' ID) and includes it ! * if it exists; if not, define a dummy class for this webclass. */ function include_php_class() *************** *** 118,122 **** } ! function attribs2html() //for debugging output { reset($this->params); --- 125,130 ---- } ! /** for debug */ ! function attribs2html() { reset($this->params); Index: class.VarStack.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.VarStack.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.VarStack.php 11 Aug 2003 16:17:51 -0000 1.4 --- class.VarStack.php 22 Aug 2003 15:54:42 -0000 1.5 *************** *** 6,9 **** --- 6,10 ---- class VarStack { + /** array of associative arrays (stack of scopes) */ var $Vars; *************** *** 24,28 **** } ! /** returns a number, which is the index of the current scope */ function getCurrentScope() { --- 25,29 ---- } ! /** Returns a number, which is the index of the current scope. */ function getCurrentScope() { *************** *** 33,38 **** /** ! * add a variable to the specified scope; $scope_nr is optional, ! * if no scope is given, add it to the current scope */ function addVar($var_name, $var_value, $scope_nr=UNDEFINED) --- 34,39 ---- /** ! * Add a variable to the specified scope. $scope_nr is optional, ! * if no scope is given, add it to the current scope. */ function addVar($var_name, $var_value, $scope_nr=UNDEFINED) *************** *** 58,62 **** } ! /** add a variable to the first scope */ function addGlobalVar($var_name, $var_value) { --- 59,63 ---- } ! /** Add a variable to the first scope. */ function addGlobalVar($var_name, $var_value) { *************** *** 65,69 **** } ! /** add a list of vars to the current scope */ function addVars($arrVars) { --- 66,70 ---- } ! /** Add a list of vars to the current scope. */ function addVars($arrVars) { *************** *** 73,77 **** } ! /** add a list of vars to the first scope */ function addGlobalVars($arrVars) { --- 74,78 ---- } ! /** Add a list of vars to the first scope. */ function addGlobalVars($arrVars) { *************** *** 81,87 **** /** ! * returns the value of a variable; if it is not found * in the current scope, the scope above it is searched, ! * and so on; if it is not found at all, UNDEFINED is returned */ function getVar($var_name) --- 82,88 ---- /** ! * Returns the value of a variable. If it is not found * in the current scope, the scope above it is searched, ! * and so on. If it is not found at all, UNDEFINED is returned. */ function getVar($var_name) *************** *** 103,108 **** } ! /** returns the var stack as an HTML table */ ! function toHtmlTable() //for debug { $html = "<strong>VarStack</strong>\n"; --- 104,111 ---- } ! ///////////////////////////////////////////////////////////////// ! ! /** For debug; returns the var stack as an HTML table. */ ! function toHtmlTable() { $html = "<strong>VarStack</strong>\n"; *************** *** 132,137 **** } ! //////////////////////////////////////////// ! function test() //for debug { $vars = new VarStack; --- 135,141 ---- } ! ! /** For test and debug */ ! function test() { $vars = new VarStack; Index: class.Template.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.Template.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.Template.php 20 Aug 2003 07:00:49 -0000 1.5 --- class.Template.php 22 Aug 2003 15:54:42 -0000 1.6 *************** *** 1,14 **** <?php ! /** @package parser */ class Template { ! var $id; //template ID ! var $type; //"Template", "If", "Repeat", "WebBox", ! //"IfEmpty", "Header", "Footer" ! var $parent; //the parent template ! ! var $vars; //array that keeps the variables of the template ! var $content; //the lines of the template (array of lines) function Template($tplId =UNDEFINED, $type ="Template") { --- 1,27 ---- <?php ! /** ! * @package parser ! */ class Template { ! /** Template id. */ ! var $id; ! ! /** Template type: ! * 'Template', 'If', 'Repeat', 'WebBox', ! * 'IfEmpty', 'Header', 'Footer' */ ! var $type; + /** The parent template */ + var $parent; + + /** Array that keeps the variables of the template. */ + var $vars; + + /** The lines of the template (array of lines). */ + var $content; + + + /** Constructor */ function Template($tplId =UNDEFINED, $type ="Template") { *************** *** 21,25 **** } ! /** adds a new variable in the array of variables */ function addVar($var_name, $expression) { --- 34,38 ---- } ! /** Adds a new variable in the array of variables. */ function addVar($var_name, $expression) { *************** *** 28,32 **** } ! /** returns an array with all the evaluated variables */ function getVars() { --- 41,45 ---- } ! /** Returns an array with all the evaluated variables. */ function getVars() { *************** *** 41,46 **** } ! /************ debug functions *****************/ ! function toHtmlTable() { --- 54,58 ---- } ! /**#@+ Debug function. */ function toHtmlTable() { *************** *** 67,70 **** --- 79,83 ---- } + /** @see toHtmlTable() */ function attribs2html() { *************** *** 83,86 **** --- 96,100 ---- } + /** @see toHtmlTable() */ function content2html() { *************** *** 106,110 **** } ! /** returns the structure of loaded templates as a tree */ function to_tree($indent) { --- 120,124 ---- } ! /** Returns the structure of loaded templates as a tree. */ function to_tree($indent) { *************** *** 133,138 **** /** ! * prints a preview of this template only (without processing ! * subtemplates), for the benefit of the designer */ function print_preview() --- 147,152 ---- /** ! * Prints a preview of this template only (without processing ! * subtemplates), for the benefit of the designer. */ function print_preview() *************** *** 145,148 **** --- 159,163 ---- } } + /**#@-*/ } ?> Index: class.RepeatTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.RepeatTpl.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.RepeatTpl.php 11 Aug 2003 16:17:51 -0000 1.3 --- class.RepeatTpl.php 22 Aug 2003 15:54:42 -0000 1.4 *************** *** 6,14 **** class RepeatTpl extends Template { ! var $rsId; //the id of the recordset ! var $if_empty;//the template that is displayed if the RS is empty ! var $header; //the header template ! var $footer; //the footer template ! var $separator; //the separator template function RepeatTpl($rs_id) --- 6,23 ---- class RepeatTpl extends Template { ! /** The id of the recordset. */ ! var $rsId; ! ! /** The template that is displayed if the RS is empty. */ ! var $if_empty; ! ! /** The header template. */ ! var $header; ! ! /** The footer template. */ ! var $footer; ! ! /** The separator template. */ ! var $separator; function RepeatTpl($rs_id) *************** *** 24,28 **** } ! function attribs2html() //for debugging output { $html = Template::attribs2html() . " --- 33,38 ---- } ! /** for debug */ ! function attribs2html() { $html = Template::attribs2html() . " Index: class.Render.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.Render.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.Render.php 11 Aug 2003 16:17:51 -0000 1.4 --- class.Render.php 22 Aug 2003 15:54:42 -0000 1.5 *************** *** 3,6 **** --- 3,7 ---- * Renders an HTML page from the templates and structures of the $webPage. * @package parser + * @see WebPage */ class Render *************** *** 13,18 **** var $html_page; ! /** helps to render a well-indented page */ var $indent; function Render($collect =false) --- 14,20 ---- var $html_page; ! /** Helps to render a well-indented page. */ var $indent; + function Render($collect =false) Index: class.Parser.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.Parser.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.Parser.php 11 Aug 2003 16:17:51 -0000 1.4 --- class.Parser.php 22 Aug 2003 15:54:42 -0000 1.5 *************** *** 1,38 **** <?php ! /** @package parser */ class Parser { ! /** a stack of templates that are being parsed */ var $tpl_stack; ! /** the template that is being parsed currently */ var $current_tpl; ! ! /** ! * When $this->silent is true, $this->add_line() does not add ! * lines to the current template. ! */ var $silent; ! ! /** parsing mode, can be "file" or "array" */ var $mode; ! /** the path of the file that is being parsed */ var $path; ! /** the file pointer of the file that is being parsed */ var $fp; ! /** the array of lines that is being parsed */ var $lines; ! /** the index of line that is being parsed */ var $idx; ! /** a stack of the parsing states */ var $state_stack; function Parser() { --- 1,41 ---- <?php ! /** ! * Parses the templates and constructs $webPage, which ! * keeps the structure of the page. ! * ! * @package parser ! * @see WebPage, Render ! */ class Parser { ! /** A stack of templates that are being parsed. */ var $tpl_stack; ! /** The template that is being parsed currently. */ var $current_tpl; ! /** When $this->silent is true, $this->add_line() does not add ! * lines to the current template. */ var $silent; ! /** Parsing mode, can be "file" or "array". */ var $mode; ! /** The path of the file that is being parsed. */ var $path; ! /** The file pointer of the file that is being parsed. */ var $fp; ! /** The array of lines that is being parsed. */ var $lines; ! /** The index of line that is being parsed. */ var $idx; ! /** A stack of the parsing states. */ var $state_stack; + function Parser() { *************** *** 65,68 **** --- 68,72 ---- } + /** Parse the main (root) template of the page. */ function parse_main($tpl_file) { *************** *** 86,94 **** * Parse the filename into the template given as parameter. * ! * @param $filename the file to be parsed ! * @param $tpl (optional) the template or template reference ! * to be filled by parsing this file. ! * @return an object that contains the parsed $filename, ! * return UNDEFINED if $filename is not found. */ function parse_file($filename, $tpl =UNDEFINED) --- 90,98 ---- * Parse the filename into the template given as parameter. * ! * @param $filename the file to be parsed ! * @param $tpl (optional) the template or template reference ! * to be filled by parsing this file. ! * @return FileTpl an object that contains the parsed $filename, ! * return UNDEFINED if $filename is not found. */ function parse_file($filename, $tpl =UNDEFINED) *************** *** 139,149 **** * be parsed more then once (for each webobject of that webclass). * ! * @param $lines the array of lines to be parsed ! * @param $path path of the file from which these lines ! * have been extracted ! * @param $tpl (optional) the template or template reference ! * to be filled by parsing this array. ! * @return an object that contains the parsed $filename, ! * return UNDEFINED if $filename is not found. */ function parse_array($lines, $path, $tpl =UNDEFINED) --- 143,152 ---- * be parsed more then once (for each webobject of that webclass). * ! * @param $lines array lines to be parsed ! * @param $path string path of the file from which these lines ! * have been extracted ! * @param $tpl Template (optional) the template or template reference ! * to be filled by parsing this array ! * @return Template an object that contains the parsed lines */ function parse_array($lines, $path, $tpl =UNDEFINED) *************** *** 187,192 **** /** ! * loads the current template from ! * the file that is being parsed currently */ function parse() --- 190,195 ---- /** ! * Loads the current template from ! * the file that is being parsed currently. */ function parse() *************** *** 202,209 **** /** ! * return true when the line is the closing tag of a template; * if the line contains the opening tag of another template, call * a function to parse this template, else add the line to the ! * current template */ function parse_line($line) --- 205,212 ---- /** ! * Return true when the line is the closing tag of a template; * if the line contains the opening tag of another template, call * a function to parse this template, else add the line to the ! * current template. */ function parse_line($line) *************** *** 290,295 **** /** ! * make the given $tpl current, what will be ! * parsed from now on goes to this template */ function push(&$tpl) --- 293,298 ---- /** ! * Make the given $tpl current, what will be ! * parsed from now on goes to this template. */ function push(&$tpl) *************** *** 308,314 **** /** ! * the parsing of the current template ! * has finished; store it in template collection ! * and make current the top of the stack */ function pop() --- 311,317 ---- /** ! * The parsing of the current template has finished; ! * store it in template collection (in $webPage) ! * and make current the top of the stack. */ function pop() *************** *** 328,338 **** /** ! * copies the content of the element $tag_name ! * into $this->current_tpl->content; the difference * between copy_element() and parse() is that parse() * builds the template structure of the element, * however copy_element() just copies all the lines ! * up to the closing tag, without interpreting the template tags ! * $depth is the depth of recursion */ function copy_element($elem_tag, $depth =0) --- 331,341 ---- /** ! * Copies the content of the element $tag_name ! * into $this->current_tpl->content. The difference * between copy_element() and parse() is that parse() * builds the template structure of the element, * however copy_element() just copies all the lines ! * up to the closing tag, without interpreting the template tags. ! * @param $depth number the depth of recursion */ function copy_element($elem_tag, $depth =0) *************** *** 375,380 **** /** ! * creates and returns a new If template; ! * $line contains the starting tag of the If element */ function new_If($line) --- 378,384 ---- /** ! * Creates and returns a new If template. ! * @param $line string contains the starting tag of the If element ! * @return IfTpl */ function new_If($line) *************** *** 385,389 **** } ! /** creates and returns a new Template template; */ function new_Template($line) { --- 389,396 ---- } ! /** ! * Creates and returns a new Template template. ! * @return Template ! */ function new_Template($line) { *************** *** 393,398 **** /** ! * creates and returns a new Repeat template; ! * $line contains the starting tag of the Repeat element */ function new_Repeat($line) --- 400,406 ---- /** ! * Creates and returns a new Repeat template. ! * @param $line string contains the starting tag of the Repeat element ! * @return RepeatTpl */ function new_Repeat($line) *************** *** 403,407 **** } ! /** $tag has the values "IfEmpty", "Header", "Footer" or "Separator" */ function parse_Repeat_subtpl($tag) { --- 411,418 ---- } ! /** ! * $tag has the values "IfEmpty", "Header", "Footer" or "Separator" ! * @return Template ! */ function parse_Repeat_subtpl($tag) { *************** *** 838,844 **** /** ! * if the $line starts with an opening or closing tag ! * ('<tag_name' or '</tag_name') then it returns it ! * otherwise returns UNDEFINED */ function get_tag_name($line) --- 849,855 ---- /** ! * If the $line starts with an opening or closing tag ! * ('<tag_name' or '</tag_name') then it returns it, ! * otherwise returns UNDEFINED. */ function get_tag_name($line) *************** *** 856,862 **** /** ! * returns the value of the given attribute from the given * line (assuming that the line is a start element), or ! * UNDEFINED if not found */ function get_attr_value($line, $attrib) --- 867,873 ---- /** ! * Returns the value of the given attribute from the given * line (assuming that the line is a start element), or ! * UNDEFINED if not found. */ function get_attr_value($line, $attrib) *************** *** 877,882 **** ///////////////////////////////////////////////////////////// ! /** ! * Output the state of the parser. */ function debug() { --- 888,892 ---- ///////////////////////////////////////////////////////////// ! /** Output the state of the parser. */ function debug() { Index: class.MainTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.MainTpl.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.MainTpl.php 11 Aug 2003 16:17:52 -0000 1.4 --- class.MainTpl.php 22 Aug 2003 15:54:42 -0000 1.5 *************** *** 1,13 **** <?php /** ! * Represents the main (root) template in the page configuration. ! * * @package parser */ class MainTpl extends FileTpl { ! var $head; //template of the <head> of the page ! var $body; //template of the <body> of the page ! function MainTpl($filename) { --- 1,15 ---- <?php /** ! * Represents the main (root) template in the tree of templates. * @package parser */ class MainTpl extends FileTpl { ! /** Template of the <head> of the page. */ ! var $head; ! ! /** Template of the <body> of the page. */ ! var $body; ! function MainTpl($filename) { *************** *** 21,25 **** } ! /** returns the structure of loaded templates as a tree */ function to_tree() { --- 23,27 ---- } ! /** Debug function. Returns the structure of loaded templates as a tree. */ function to_tree() { Index: class.IfTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.IfTpl.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.IfTpl.php 11 Aug 2003 16:17:52 -0000 1.3 --- class.IfTpl.php 22 Aug 2003 15:54:42 -0000 1.4 *************** *** 2,6 **** /** * A template that is renderd if the condition evaluates to true. - * * @package parser */ --- 2,5 ---- *************** *** 16,21 **** $this->condition = $condition; } ! ! function attribs2html() //for debugging output { $html = Template::attribs2html() . " --- 15,21 ---- $this->condition = $condition; } ! ! /** for debug */ ! function attribs2html() { $html = Template::attribs2html() . " Index: class.FileTpl.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/parser/class.FileTpl.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.FileTpl.php 11 Aug 2003 16:17:52 -0000 1.3 --- class.FileTpl.php 22 Aug 2003 15:54:42 -0000 1.4 *************** *** 2,7 **** /** * A template that contains the content of a file that is ! * being parsed, e.g. the main file or a file that is included. ! * * @package parser */ --- 2,6 ---- /** * A template that contains the content of a file that is ! * being parsed, e.g. the root file or a file that is included. * @package parser */ *************** *** 20,24 **** } ! /** trims the indentation from the beginning of each line */ function unindent() { --- 19,23 ---- } ! /** Trims the indentation from the beginning of each line. */ function unindent() { *************** *** 31,35 **** } ! function attribs2html() //for debugging output { $html = Template::attribs2html() . " --- 30,35 ---- } ! /** for debug */ ! function attribs2html() { $html = Template::attribs2html() . " |
From: Dashamir H. <das...@us...> - 2003-08-23 02:58:48
|
Update of /cvsroot/phpwebapp/web_app/database In directory sc8-pr-cvs1:/tmp/cvs-serv6393/database Modified Files: package.DB.php class.TableRS.php class.StaticRS.php class.Recordset.php class.PagedRS.php class.MySQLCnn.php class.EditableRS.php class.Connection.php Log Message: modified a little bit the comments Index: package.DB.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/package.DB.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** package.DB.php 11 Aug 2003 16:17:52 -0000 1.3 --- package.DB.php 22 Aug 2003 15:54:42 -0000 1.4 *************** *** 8,12 **** switch (DB_TYPE) { - default: case "MySQL": $CnnType = "MySQLCnn"; --- 8,11 ---- *************** *** 16,19 **** --- 15,19 ---- case "ProgreSQL": case "SQLServer": + default: print "Sorry, DB_TYPE='".DB_TYPE."' is not implemented yet.<br>\n"; break; *************** *** 27,35 **** include_once DB_PATH."class.TableRS.php"; ! //Create a default connection for the application. Parameters ! //of this connection are specified in 'config/const.DB.php'. ! //This connection will be used for each interaction with a DB, ! //if no other connection is specified. The application, however, ! //can create and use other connections as well, or override this one. $cnn = new $CnnType; } --- 27,37 ---- include_once DB_PATH."class.TableRS.php"; ! /** ! * Create a default connection for the application. Parameters ! * of this connection are specified in 'config/const.DB.php'. ! * This connection will be used for each interaction with a DB, ! * if no other connection is specified. The application, however, ! * can create and use other connections as well, or override this one. ! */ $cnn = new $CnnType; } Index: class.TableRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.TableRS.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.TableRS.php 11 Aug 2003 16:17:52 -0000 1.3 --- class.TableRS.php 22 Aug 2003 15:54:42 -0000 1.4 *************** *** 10,16 **** * @package database */ ! class TableRecordset extends Recordset { ! function TableRecordset() { } --- 10,16 ---- * @package database */ ! class TableRS extends EditableRS { ! function TableRS() { } Index: class.StaticRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.StaticRS.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.StaticRS.php 11 Aug 2003 16:17:52 -0000 1.3 --- class.StaticRS.php 22 Aug 2003 15:54:42 -0000 1.4 *************** *** 13,17 **** class StaticRS extends Recordset { ! var $opened; /** true when the recordset is opened */ function StaticRS($id =UNDEFINED, $query =UNDEFINED, $conn =UNDEFINED) --- 13,18 ---- class StaticRS extends Recordset { ! /** true when the recordset is opened */ ! var $opened; function StaticRS($id =UNDEFINED, $query =UNDEFINED, $conn =UNDEFINED) *************** *** 33,41 **** } ! function Close() ! { ! //override the Close() of superclass ! //with an empty function ! } } ?> --- 34,42 ---- } ! /** ! * Override the Close() of superclass ! * with an empty function. ! */ ! function Close() {} } ?> Index: class.Recordset.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.Recordset.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.Recordset.php 11 Aug 2003 16:17:52 -0000 1.5 --- class.Recordset.php 22 Aug 2003 15:54:42 -0000 1.6 *************** *** 5,10 **** * connection with a database. If no connection is specified, then * it uses the global connection of the framework: $cnn. - * In case of modifying the class for a DB other than MySQL, only - * the function result2table() needs to be changed. * * @package database --- 5,8 ---- *************** *** 12,25 **** class Recordset { ! var $ID; //the ID of the Recordset (usually the same as the ID of the template) ! var $query; //query as string (may contain {{variables}}) ! var $cnn; //the connection that will execute the query ! var $content; //the result after executing the query (2 dimensional array) ! var $pos; //the current position in the array $content ! var $count; //the number of rows in the array $content ! var $type; //the type of the recordset: Recordset, PagedRS, ! //StaticRS, DynamicRS, EditableRS, TableRS function EOF() --- 10,32 ---- class Recordset { ! /** The ID of the Recordset. */ ! var $ID; ! ! /** The type of the recordset: Recordset, PagedRS, ! * StaticRS, DynamicRS, EditableRS, TableRS */ ! var $type; ! /** Query as string (may contain {{variables}}). */ ! var $query; ! /** The connection that will execute the query. */ ! var $cnn; ! /** The result after executing the query (2 dimensional array). */ ! var $content; ! /** The current position in the array $content. */ ! var $pos; ! /** The number of rows in the array $content, */ ! var $count; ! function EOF() *************** *** 53,57 **** } ! /** returns the value of the field given as parameter */ function Field($fld_name) { --- 60,64 ---- } ! /** Returns the value of the field given as parameter. */ function Field($fld_name) { *************** *** 62,66 **** } ! /** returns all the fields at the current position as an associated array */ function Fields() { --- 69,73 ---- } ! /** Returns all the fields at the current position as an associated array. */ function Fields() { *************** *** 68,72 **** } ! /** constructor */ function Recordset($id =UNDEFINED, $query =UNDEFINED, $conn =UNDEFINED) { --- 75,79 ---- } ! /** Constructor */ function Recordset($id =UNDEFINED, $query =UNDEFINED, $conn =UNDEFINED) { *************** *** 82,86 **** } ! /** executes the query and puts the result into $this->content */ function Open($q =UNDEFINED) { --- 89,93 ---- } ! /** Executes the query and puts the result into $this->content. */ function Open($q =UNDEFINED) { *************** *** 113,118 **** /** ! * returns a new recordset that contains a slice of this recordset; ! * see the documentation of array_slice of PHP */ function slice($offset =0, $length =UNDEFINED) --- 120,125 ---- /** ! * Returns a new recordset that contains a slice of this recordset. ! * @see array_slice */ function slice($offset =0, $length =UNDEFINED) *************** *** 139,147 **** /** ! * returns true if the query at the given position * matches the $condition (usually used by the functions ! * find() and filter() above); if no position is given ! * matches the current record; ! * currently the $condition supports only one field */ function match($condition, $pos=UNDEFINED) --- 146,155 ---- /** ! * Returns true if the query at the given position * matches the $condition (usually used by the functions ! * find() and filter()). If no position is given ! * matches the current record. ! * Currently the $condition supports only one field. ! * @see find(), filter() */ function match($condition, $pos=UNDEFINED) *************** *** 173,181 **** /** ! * returns a new recordset with the recs that match the * given condition, $condition is like the WHERE condition * of a query, but it matches using regexp-s, e.g. ! * (username=/^d.* / AND (firstname=/[^a]+/ OR NOT lastname='Hoxha')) ! * (currently it supports only one field, no AND, OR, (, ) etc.) */ function filter($condition) --- 181,190 ---- /** ! * Returns a new recordset with the recs that match the * given condition, $condition is like the WHERE condition * of a query, but it matches using regexp-s, e.g. ! * <kbd>(username=/^d.*a/ AND (firstname=/[^a]+/ OR NOT lastname='Hoxha'))</kbd> ! * ! * @todo Currently it supports only one field, no AND, OR, (, ) etc. */ function filter($condition) *************** *** 196,205 **** /** ! * finds the subset of the recordset that matches the * condition and positions the pointer to the first ! * record found; $condition is like the condition in filter(); ! * if called without parameter, if finds the next one, ! * and so on up to EOF; returns false if it couldn't find ! * another record */ function find($condition =UNDEFINED) --- 205,215 ---- /** ! * Finds the subset of the recordset that matches the * condition and positions the pointer to the first ! * record found. $condition is like the condition in filter(). ! * If called without parameter, if finds the next one, ! * and so on up to EOF. Returns false if it couldn't find ! * another record. ! * @see filter() */ function find($condition =UNDEFINED) *************** *** 210,216 **** /** ! * used by find(), finds all the records that match * the condition and stores their indeces in ! * the array $this->found_positions */ function search($condition) --- 220,227 ---- /** ! * Used by find(), finds all the records that match * the condition and stores their indeces in ! * the array $this->found_positions. ! * @see find() */ function search($condition) *************** *** 228,234 **** /** ! * used by find(), sets $this->pos to the next * found record; returns true if found, ! * or false if there are no more records */ function find_next() --- 239,246 ---- /** ! * Used by find(), sets $this->pos to the next * found record; returns true if found, ! * or false if there are no more records. ! * @see find() */ function find_next() *************** *** 248,252 **** } ! /** returns an array with the values of the specified field */ function getColumn($fld_name) { --- 260,264 ---- } ! /** Returns an array with the values of the specified field. */ function getColumn($fld_name) { *************** *** 263,269 **** /** ! * $fld_names is a comma separated list of field names; ! * returns a new recordset that contains only the specified ! * columns */ function getColumns($fld_names) --- 275,280 ---- /** ! * Returns a new recordset that contains only the specified ! * columns. $fld_names is a comma separated list of field names. */ function getColumns($fld_names) Index: class.PagedRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.PagedRS.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.PagedRS.php 11 Aug 2003 16:17:52 -0000 1.4 --- class.PagedRS.php 22 Aug 2003 15:54:42 -0000 1.5 *************** *** 5,9 **** * Same as class Recordset, but gets from the DB only a certain * page out of all the results that can return the query. A page ! * is a group of consecutive records, all the pages have the same * number of records and they form a partition of the results. * --- 5,9 ---- * Same as class Recordset, but gets from the DB only a certain * page out of all the results that can return the query. A page ! * is a group of consecutive records; all the pages have the same * number of records and they form a partition of the results. * *************** *** 12,20 **** class PagedRS extends Recordset { ! /** how many recs will be read from DB for one page ! * if 0 then all the recs will be read in one page */ var $recs_per_page; ! var $current_page; //which page will be read (starting from 1) ! var $nr_of_recs; //nr of all the recs that can return the query function PagedRS($id, $query =UNDEFINED, $rp =UNDEFINED, $conn =UNDEFINED) --- 12,27 ---- class PagedRS extends Recordset { ! /** ! * How many recs will be read from DB for one page, ! * if 0 then all the recs will be read in one page ! */ var $recs_per_page; ! ! /** Which page will be read (starting from 1). */ ! var $current_page; ! ! /** Number of all the recs that can return the query. */ ! var $nr_of_recs; ! function PagedRS($id, $query =UNDEFINED, $rp =UNDEFINED, $conn =UNDEFINED) *************** *** 27,32 **** /** ! * get and return the state var ! * for the current page of this recordset */ function get_current_page() --- 34,39 ---- /** ! * Get and return the state var ! * for the current page of this recordset. */ function get_current_page() *************** *** 41,45 **** } ! /** executes the query and puts the result into $this->content */ function Open($cp ="default", $rp ="default", $query ="default") { --- 48,52 ---- } ! /** Executes the query and puts the result into $this->content. */ function Open($cp ="default", $rp ="default", $query ="default") { *************** *** 73,77 **** /** ! * returns an array of some variables that can be used in the * template to indicate the next page, previous page, etc. */ --- 80,84 ---- /** ! * Returns an array of some variables that can be used in the * template to indicate the next page, previous page, etc. */ *************** *** 150,153 **** --- 157,161 ---- * which gets the number of records of the original query. * Called by $this->get_nr_of_recs(). + * @see get_nr_of_recs() */ function get_count_query($query) Index: class.MySQLCnn.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.MySQLCnn.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.MySQLCnn.php 20 Aug 2003 06:57:45 -0000 1.5 --- class.MySQLCnn.php 22 Aug 2003 15:54:42 -0000 1.6 *************** *** 43,47 **** } ! /** convert the mysql $result to a two-dimentional table */ function result2table(&$result) { --- 43,47 ---- } ! /** Convert the mysql $result to a two-dimentional table. */ function result2table(&$result) { *************** *** 70,74 **** function show_error($query = "") { ! if (mysql_errno()==0) return; //no error if (mysql_errno()==1062) return; //ignore this error if (mysql_errno()==1136) return; //ignore this error --- 70,74 ---- function show_error($query = "") { ! if (mysql_errno()==0) return; //no error if (mysql_errno()==1062) return; //ignore this error if (mysql_errno()==1136) return; //ignore this error *************** *** 76,79 **** print mysql_errno().": ".mysql_error()." <br> \n"; } ! } //end class Connection ?> --- 76,79 ---- print mysql_errno().": ".mysql_error()." <br> \n"; } ! } ?> Index: class.EditableRS.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.EditableRS.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.EditableRS.php 11 Aug 2003 16:17:52 -0000 1.4 --- class.EditableRS.php 22 Aug 2003 15:54:42 -0000 1.5 *************** *** 18,24 **** /** ! * applies the function $fun_name on each record ! * of the recordset; $fun_name is a global function ! * that takes as parameter an associated array by reference */ function apply($fun_name) --- 18,24 ---- /** ! * Applies the function $fun_name on each record ! * of the recordset. $fun_name is a global function ! * that takes as parameter an associated array by reference. */ function apply($fun_name) *************** *** 30,34 **** } ! /** Sets a new value to the given field (in the current record) */ function setFld($fld_name, $fld_value) { --- 30,34 ---- } ! /** Sets a new value to the given field (in the current record). */ function setFld($fld_name, $fld_value) { *************** *** 56,60 **** } ! /** changes some fields of the current recordset */ function setFlds($arr_flds) { --- 56,60 ---- } ! /** Changes some fields of the current recordset. */ function setFlds($arr_flds) { *************** *** 66,71 **** /** ! * adds a new record after the current record, ! * the new record becomes current */ function addRec($rec) --- 66,71 ---- /** ! * Adds a new record after the current record, ! * the new record becomes current. */ function addRec($rec) *************** *** 104,109 **** /** ! * insert a new record before the current record, ! * the new record becomes the current record */ function insRec($rec) --- 104,109 ---- /** ! * Insert a new record before the current record; ! * the new record becomes the current record. */ function insRec($rec) *************** *** 140,146 **** } ! /** ! * Append the content of the given $rs to $this RS ! */ function append($rs) { --- 140,144 ---- } ! /** Append the content of the given $rs to $this RS. */ function append($rs) { *************** *** 163,172 **** /** ! * removes $nr recs from the recordset, ! * starting with the current record; ! * if $nr is not given or exeeds the EOF, ! * then removes all the recs up to the EOF */ ! function rmRecs($nr=UNDEFINED) { if ( ($nr===UNDEFINED) or --- 161,170 ---- /** ! * Removes $nr recs from the recordset, ! * starting with the current record. ! * If $nr is not given or exeeds the EOF, ! * then removes all the recs up to the EOF. */ ! function rmRecs($nr =UNDEFINED) { if ( ($nr===UNDEFINED) or Index: class.Connection.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/database/class.Connection.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** class.Connection.php 20 Aug 2003 06:57:45 -0000 1.5 --- class.Connection.php 22 Aug 2003 15:54:42 -0000 1.6 *************** *** 9,12 **** --- 9,13 ---- class Connection { + /** The connection to the DB. */ var $cnn; |
From: Dashamir H. <das...@us...> - 2003-08-22 20:44:39
|
Update of /cvsroot/phpwebapp/web_app/session In directory sc8-pr-cvs1:/tmp/cvs-serv6393/session Modified Files: func.GoTo.js class.Session.php class.Request.php class.Event.php Log Message: modified a little bit the comments Index: func.GoTo.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/func.GoTo.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** func.GoTo.js 16 Jul 2003 09:27:59 -0000 1.2 --- func.GoTo.js 22 Aug 2003 15:54:42 -0000 1.3 *************** *** 4,10 **** /** * Send an event to the server-side (PHP) code. ! * obj_id -- the object to which the event is sent ! * event_name -- the name of the event ! * event_args -- the arguments of the event, optional */ function SendEvent(obj_id, event_name, event_args) --- 4,10 ---- /** * Send an event to the server-side (PHP) code. ! * @param obj_id string The object to which the event is sent ! * @param event_name string The name of the event ! * @param event_args string The arguments of the event, optional */ function SendEvent(obj_id, event_name, event_args) *************** *** 56,60 **** /** * This variable is made true when the programer makes 'true' ! * the DEBUG_GOTO constant in 'const.Settings.php' */ var debug_GoTo = false; --- 56,60 ---- /** * This variable is made true when the programer makes 'true' ! * the DEBUG_GOTO constant in 'const.Settings.php'. */ var debug_GoTo = false; *************** *** 62,66 **** /** * Submits the form of the page to the 'target' specified as parameter ! * by taking care to serialize and transmit the session vars as well */ function GoTo(target) --- 62,66 ---- /** * Submits the form of the page to the 'target' specified as parameter ! * by taking care to serialize and transmit the session vars as well. */ function GoTo(target) Index: class.Session.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/class.Session.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** class.Session.php 11 Aug 2003 16:17:51 -0000 1.4 --- class.Session.php 22 Aug 2003 15:54:42 -0000 1.5 *************** *** 1,11 **** <?php /** ! * Used to keep session variables. * @package session */ class Session { ! var $Vars; //associated array that keeps the session vars ! var $dbVars; //associated array that keeps the DB session vars function Session() --- 1,15 ---- <?php /** ! * Used to keep session (state, persistent) variables. * @package session */ class Session { ! /** Associated array that keeps the session vars. */ ! var $Vars; ! ! /** Associated array that keeps the DB session vars. */ ! var $dbVars; ! function Session() *************** *** 31,35 **** } ! /** initialize a new session */ function init() { --- 35,39 ---- } ! /** Initialize a new session. */ function init() { *************** *** 51,56 **** /** ! * create the table 'session' in database, ! * if such a table does not exist */ function create_table_session() --- 55,60 ---- /** ! * Create the table 'session' in database, ! * if such a table does not exist. */ function create_table_session() *************** *** 94,98 **** * Helper function that explodes the string given as parameter * and returns an associated array of var_name and var_value. ! * The format of $strVars is: var1=val1&var2=val2&... */ function str2arr($strVars) --- 98,102 ---- * Helper function that explodes the string given as parameter * and returns an associated array of var_name and var_value. ! * The format of $strVars is: <kbd>var1=val1&var2=val2&...</kbd> */ function str2arr($strVars) *************** *** 112,116 **** * Explodes the variable $sessVars * and fills the array $this->Vars with the session variables. ! * The format of $sessVars is: var1=val1&var2=val2&... */ function getVars($sessVars) --- 116,120 ---- * Explodes the variable $sessVars * and fills the array $this->Vars with the session variables. ! * The format of $sessVars is: <kbd>var1=val1&var2=val2&...</kbd> */ function getVars($sessVars) *************** *** 133,137 **** } ! /** replace some chars that are bad for JS code */ function js_encode($str) { --- 137,141 ---- } ! /** Replace some chars that are bad for JS code. */ function js_encode($str) { *************** *** 142,149 **** } ! /** ! * get dbVars from DB; requires ! * the table session(id,vars) in DB ! */ function getDBVars() { --- 146,150 ---- } ! /** Get dbVars from DB. Requires the table session(id,vars) in DB. */ function getDBVars() { *************** *** 165,169 **** /** * Explodes $phpVars and declares some PHP global vars. ! * The format of $phpVars is: var1=val1&var2=val2&... */ function extractPhpVars($phpVars) --- 166,170 ---- /** * Explodes $phpVars and declares some PHP global vars. ! * The format of $phpVars is: <kbd>var1=val1&var2=val2&...</kbd> */ function extractPhpVars($phpVars) *************** *** 181,185 **** * Adds a new variable in the session. * The third parameter is optional and if it is true ! * then the variable is added as a DB (secure) variable */ function addVar($var_name, $var_value, $db =false) --- 182,186 ---- * Adds a new variable in the session. * The third parameter is optional and if it is true ! * then the variable is added as a DB (secure) variable. */ function addVar($var_name, $var_value, $db =false) *************** *** 223,228 **** /** ! * sets a new value for a variable ! * DB vars have priority over JS vars */ function setVar($var_name, $var_value) --- 224,229 ---- /** ! * Sets a new value for a variable; ! * DB vars have priority over JS vars. */ function setVar($var_name, $var_value) *************** *** 239,245 **** /** ! * returns the value of a variable, or UNDEFINED ! * if such a variable does not exist; ! * DB vars have priority over JS vars */ function getVar($var_name) --- 240,246 ---- /** ! * Returns the value of a variable, or UNDEFINED ! * if such a variable does not exist. ! * DB vars have priority over JS vars. */ function getVar($var_name) *************** *** 263,267 **** /** * Builds and returns the variable $session_vars which is used to insert ! * the session vars inside the page as JavaScript code */ function to_JS() --- 264,268 ---- /** * Builds and returns the variable $session_vars which is used to insert ! * the session vars inside the page as JavaScript code. */ function to_JS() *************** *** 281,285 **** } ! /** save dbVars in DB */ function saveDBVars() { --- 282,286 ---- } ! /** Save dbVars in DB. */ function saveDBVars() { Index: class.Request.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/class.Request.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.Request.php 22 Aug 2003 06:47:20 -0000 1.3 --- class.Request.php 22 Aug 2003 15:54:42 -0000 1.4 *************** *** 11,15 **** var $strEvent; var $phpVars; ! var $firstTime; //if true, then this page is the first in the session function Request() --- 11,17 ---- var $strEvent; var $phpVars; ! ! /** If true, then this page is the first in the session. */ ! var $firstTime; function Request() Index: class.Event.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/session/class.Event.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** class.Event.php 16 Jul 2003 12:05:23 -0000 1.3 --- class.Event.php 22 Aug 2003 15:54:42 -0000 1.4 *************** *** 5,14 **** class Event { ! var $sourcePage; //the page that sent the event ! var $targetPage; //the page that should receive the event ! var $name; //the name of the event ! var $target; //the target box ! var $args; //array that keeps the arguments of the event /** Constructs an event from an event string. */ --- 5,23 ---- class Event { ! /** The page that sent the event. */ ! var $sourcePage; ! ! /** The page that should receive the event. */ ! var $targetPage; ! /** The name of the event. */ ! var $name; ! ! /** The target webobject. */ ! var $target; ! ! /** Array that keeps the arguments of the event. */ ! var $args; ! /** Constructs an event from an event string. */ *************** *** 25,29 **** /** * An event string has this format: ! * event=target.name(arg1=val1;arg2=val2;arg3=val3) */ function parse($strEvent) --- 34,38 ---- /** * An event string has this format: ! * <kbd>event=target.name(arg1=val1;arg2=val2;arg3=val3)</kbd> */ function parse($strEvent) *************** *** 82,87 **** /** ! * returns an array of all the arguments of the event ! * only their values */ function getArgs() --- 91,96 ---- /** ! * Returns an array of all the arguments of the event, ! * only their values. */ function getArgs() *************** *** 94,98 **** } ! /** prints out the event (for debug) */ function to_text() { --- 103,107 ---- } ! /** Prints out the event (for debug). */ function to_text() { |
From: Dashamir H. <das...@us...> - 2003-08-22 20:09:19
|
Update of /cvsroot/phpwebapp/web_app/timer In directory sc8-pr-cvs1:/tmp/cvs-serv6393/timer Modified Files: class.Timer.js Log Message: modified a little bit the comments Index: class.Timer.js =================================================================== RCS file: /cvsroot/phpwebapp/web_app/timer/class.Timer.js,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** class.Timer.js 16 Jul 2003 09:27:59 -0000 1.2 --- class.Timer.js 22 Aug 2003 15:54:42 -0000 1.3 *************** *** 1,7 **** //-*- mode: C; -*-//tells emacs to use mode C for this file ! function Proc(id, comment) - //the class Proc represents the duration of a process { this.ID = id; --- 1,6 ---- //-*- mode: C; -*-//tells emacs to use mode C for this file ! /** The class Proc represents the duration of a process. */ function Proc(id, comment) { this.ID = id; *************** *** 11,17 **** } ! function Timer() - //the class Timer keeps a list of processes (their duration) { this.arrProc = new Array(); --- 10,15 ---- } ! /** The class Timer keeps a list of processes (their duration). */ function Timer() { this.arrProc = new Array(); *************** *** 24,31 **** } ! function find(proc_id) - //returns the position of a process in the array - //or -1 if this process cannot be found { var idx; --- 22,30 ---- } ! /** ! * Returns the position of a process in the array ! * or -1 if this process cannot be found. ! */ function find(proc_id) { var idx; *************** *** 37,41 **** } - function Start(proc_id, comment) { --- 36,39 ---- *************** *** 50,54 **** } - function Stop(proc_id) { --- 48,51 ---- *************** *** 64,68 **** } - function toHtmlTable() { --- 61,64 ---- *************** *** 94,97 **** htmlTable += "</table>\n"; ! return htmlTable ! } --- 90,93 ---- htmlTable += "</table>\n"; ! return htmlTable; ! } |