Thread: [phpwebapp-commits] CVS: web_app/append wbMessages.php,1.3,1.4 wbDebug.php,1.6,1.7 wbDbgTemplates.ph
Brought to you by:
dashohoxha
From: Dashamir H. <das...@us...> - 2004-07-22 16:25:51
|
Update of /cvsroot/phpwebapp/web_app/append In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9224/append Modified Files: wbMessages.php wbDebug.php wbDbgTemplates.php wbDbgStatevars.php Log Message: reformated and modified the copyleft notice Index: wbMessages.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/append/wbMessages.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** wbMessages.php 25 Aug 2003 13:18:37 -0000 1.3 --- wbMessages.php 22 Jul 2004 16:25:39 -0000 1.4 *************** *** 1,4 **** <?php ! /* This file is part of phpWebApp. */ /** --- 1,23 ---- <?php ! /* ! This file is part of phpWebApp, which is a framework for building web ! application based on relational databases. ! ! Copyright 2001,2002,2003,2004 Dashamir Hoxha, das...@us... ! ! 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 ! */ /** *************** *** 8,16 **** { function onRender() ! { ! global $webPage; ! $messages = $webPage->messages_to_js(); ! WebApp::addVar("MESSAGES", $messages); ! } } ?> \ No newline at end of file --- 27,35 ---- { function onRender() ! { ! global $webPage; ! $messages = $webPage->messages_to_js(); ! WebApp::addVar("MESSAGES", $messages); ! } } ?> \ No newline at end of file Index: wbDebug.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/append/wbDebug.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** wbDebug.php 15 Jul 2004 13:36:13 -0000 1.6 --- wbDebug.php 22 Jul 2004 16:25:39 -0000 1.7 *************** *** 1,4 **** <?php ! /* This file is part of phpWebApp. */ /** --- 1,23 ---- <?php ! /* ! This file is part of phpWebApp, which is a framework for building web ! application based on relational databases. ! ! Copyright 2001,2002,2003,2004 Dashamir Hoxha, das...@us... ! ! 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 ! */ /** *************** *** 8,15 **** { function onRender() ! { ! global $webPage; ! $debug_goto = ' <script type="text/javascript" language="javascript"> //<![CDATA[ --- 27,34 ---- { function onRender() ! { ! global $webPage; ! $debug_goto = ' <script type="text/javascript" language="javascript"> //<![CDATA[ *************** *** 18,32 **** </script> '; ! WebApp::addVar("debug_goto", $debug_goto); ! $webPage->print_dbg_messages(); ! $debug_recordsets = (DEBUG_RECORDSETS ? $webPage->recordsets_to_html() : ""); ! WebApp::addVar("debug_recordsets", $debug_recordsets); ! $webPage->timer->Stop("WebApp"); ! $timer_results = (EXECUTION_TIME_INFO ? $webPage->timer->toHtmlTable() : ""); ! WebApp::addVar("timer_results", $timer_results); ! } } ?> \ No newline at end of file --- 37,51 ---- </script> '; ! WebApp::addVar("debug_goto", $debug_goto); ! $webPage->print_dbg_messages(); ! $debug_recordsets = (DEBUG_RECORDSETS ? $webPage->recordsets_to_html() : ""); ! WebApp::addVar("debug_recordsets", $debug_recordsets); ! $webPage->timer->Stop("WebApp"); ! $timer_results = (EXECUTION_TIME_INFO ? $webPage->timer->toHtmlTable() : ""); ! WebApp::addVar("timer_results", $timer_results); ! } } ?> \ No newline at end of file Index: wbDbgTemplates.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/append/wbDbgTemplates.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** wbDbgTemplates.php 25 Aug 2003 13:18:38 -0000 1.3 --- wbDbgTemplates.php 22 Jul 2004 16:25:39 -0000 1.4 *************** *** 1,4 **** <?php ! /* This file is part of phpWebApp. */ /** --- 1,23 ---- <?php ! /* ! This file is part of phpWebApp, which is a framework for building web ! application based on relational databases. ! ! Copyright 2001,2002,2003,2004 Dashamir Hoxha, das...@us... ! ! 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 ! */ /** *************** *** 8,18 **** { function onRender() ! { ! if (!DEBUG_TEMPLATES) return; ! global $webPage; ! print $webPage->tpl_to_tree(); ! print $webPage->template_list(); ! } } ?> \ No newline at end of file --- 27,37 ---- { function onRender() ! { ! if (!DEBUG_TEMPLATES) return; ! global $webPage; ! print $webPage->tpl_to_tree(); ! print $webPage->template_list(); ! } } ?> \ No newline at end of file Index: wbDbgStatevars.php =================================================================== RCS file: /cvsroot/phpwebapp/web_app/append/wbDbgStatevars.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** wbDbgStatevars.php 15 Jul 2004 14:46:04 -0000 1.8 --- wbDbgStatevars.php 22 Jul 2004 16:25:39 -0000 1.9 *************** *** 1,21 **** <?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 */ --- 1,22 ---- <?php /* ! This file is part of phpWebApp, which is a framework for building web ! application based on relational databases. ! Copyright 2001,2002,2003,2004 Dashamir Hoxha, das...@us... ! 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 */ *************** *** 27,122 **** { function onRender() ! { ! if (!DEBUG_STATEVARS) return; ! print $this->webobjects_to_tree(); ! print $this->webobjects_to_html(); ! } function webobjects_to_tree() ! { ! $tree = "<hr />\n"; ! $tree .= "<a name='tree' id='tree'> </a>"; ! $tree .= "<strong>WebObjects and their state variables:</strong>\n"; ! $tree .= "<pre>"; ! global $webPage; ! $id = $webPage->rootTpl->id; ! $tpl = $webPage->rootTpl->body; ! $indent = " "; ! $tree .= $indent."+--><a href='#session'>".$id."</a>\n"; ! $arr_tpl_id = $tpl->get_subtemplates(); ! for ($i=0; $i < sizeof($arr_tpl_id); $i++) ! { ! $tpl_id = $arr_tpl_id[$i]; ! //don't display the webobjects of append ! if (strpos('append.html', $tpl_id)) ! { ! $tree .= "</pre>\n"; ! return $tree; ! } ! $subtpl = $webPage->getTemplate($tpl_id); ! //increase the indentation if the template is a webobject ! $indent_1 = ($subtpl->type=="WebObjectTpl") ! ? $indent . "| " ! : $indent; ! $tree .= $this->webobj_to_tree($subtpl, $indent_1); ! } ! $tree .= "</pre>\n"; ! return $tree; ! } /** returns the structure of the parsed objects as a tree */ function webobj_to_tree($tpl, $indent) ! { ! global $webPage; ! //display only if it is a webobject template ! if ($tpl->type=="WebObjectTpl") ! { ! $tree = $indent."|\n"; ! $tree .= $indent."+--><a href='#".$tpl->id."'>".$tpl->id."</a>\n"; ! } ! $arr_tpl_id = $tpl->get_subtemplates(); ! for ($i=0; $i < sizeof($arr_tpl_id); $i++) ! { ! $tpl_id = $arr_tpl_id[$i]; ! $subtpl = $webPage->getTemplate($tpl_id); ! //increase the indentation if the template is a webobject ! $indent_1 = ( ($subtpl->type=="WebObjectTpl") ? ! $indent . "| " ! : $indent ); ! $tree .= $this->webobj_to_tree($subtpl, $indent_1); ! } ! return $tree; ! } function webobjects_to_html() ! { ! global $session, $webPage; ! $html = $session->to_HTML_table(); ! reset($webPage->tpl_collection); ! while ( list($tplId,$tpl) = each($webPage->tpl_collection) ) ! { ! //don't display the webobjects of append ! if (ereg('web_app/append/append.html$', $tplId)) ! { ! return $html; ! $html .= "<hr />\n"; ! } ! if ($tpl->type=="WebObjectTpl") ! { ! $html .= $tpl->state2html(); ! } ! } ! $html .= "<hr />\n"; ! return $html; ! } } ?> \ No newline at end of file --- 28,123 ---- { function onRender() ! { ! if (!DEBUG_STATEVARS) return; ! print $this->webobjects_to_tree(); ! print $this->webobjects_to_html(); ! } function webobjects_to_tree() ! { ! $tree = "<hr />\n"; ! $tree .= "<a name='tree' id='tree'> </a>"; ! $tree .= "<strong>WebObjects and their state variables:</strong>\n"; ! $tree .= "<pre>"; ! global $webPage; ! $id = $webPage->rootTpl->id; ! $tpl = $webPage->rootTpl->body; ! $indent = " "; ! $tree .= $indent."+--><a href='#session'>".$id."</a>\n"; ! $arr_tpl_id = $tpl->get_subtemplates(); ! for ($i=0; $i < sizeof($arr_tpl_id); $i++) ! { ! $tpl_id = $arr_tpl_id[$i]; ! //don't display the webobjects of append ! if (strpos('append.html', $tpl_id)) ! { ! $tree .= "</pre>\n"; ! return $tree; ! } ! $subtpl = $webPage->getTemplate($tpl_id); ! //increase the indentation if the template is a webobject ! $indent_1 = ($subtpl->type=="WebObjectTpl") ! ? $indent . "| " ! : $indent; ! $tree .= $this->webobj_to_tree($subtpl, $indent_1); ! } ! $tree .= "</pre>\n"; ! return $tree; ! } /** returns the structure of the parsed objects as a tree */ function webobj_to_tree($tpl, $indent) ! { ! global $webPage; ! //display only if it is a webobject template ! if ($tpl->type=="WebObjectTpl") ! { ! $tree = $indent."|\n"; ! $tree .= $indent."+--><a href='#".$tpl->id."'>".$tpl->id."</a>\n"; ! } ! $arr_tpl_id = $tpl->get_subtemplates(); ! for ($i=0; $i < sizeof($arr_tpl_id); $i++) ! { ! $tpl_id = $arr_tpl_id[$i]; ! $subtpl = $webPage->getTemplate($tpl_id); ! //increase the indentation if the template is a webobject ! $indent_1 = ( ($subtpl->type=="WebObjectTpl") ? ! $indent . "| " ! : $indent ); ! $tree .= $this->webobj_to_tree($subtpl, $indent_1); ! } ! return $tree; ! } function webobjects_to_html() ! { ! global $session, $webPage; ! $html = $session->to_HTML_table(); ! reset($webPage->tpl_collection); ! while ( list($tplId,$tpl) = each($webPage->tpl_collection) ) ! { ! //don't display the webobjects of append ! if (ereg('web_app/append/append.html$', $tplId)) ! { ! return $html; ! $html .= "<hr />\n"; ! } ! if ($tpl->type=="WebObjectTpl") ! { ! $html .= $tpl->state2html(); ! } ! } ! $html .= "<hr />\n"; ! return $html; ! } } ?> \ No newline at end of file |