[phpwebapp-commits] CVS: web_app const.Paths.php,1.2,1.3 class.WebApp.php,1.11,1.12 WebApp.php,1.3,1
Brought to you by:
dashohoxha
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; |