From 507151aec89ae799e1b43b2a17d9e96f9e79d307 Mon Sep 17 00:00:00 2001
From: paul
Date: Thu, 23 Nov 2006 21:06:13 +0000
Subject: [PATCH] Removed unneeded PEAR directories, part of #2020
---
.../src/docs/Archive_Tar/docs/Archive_Tar.txt | 461 ------
.../tools/pear/src/docs/Calendar/docs/Readme | 3 -
.../src/docs/Calendar/docs/examples/1.php | 92 --
.../src/docs/Calendar/docs/examples/1.phps | 92 --
.../src/docs/Calendar/docs/examples/10.php | 93 --
.../src/docs/Calendar/docs/examples/10.phps | 93 --
.../src/docs/Calendar/docs/examples/11.php | 109 --
.../src/docs/Calendar/docs/examples/11.phps | 109 --
.../src/docs/Calendar/docs/examples/12.php | 116 --
.../src/docs/Calendar/docs/examples/12.phps | 116 --
.../src/docs/Calendar/docs/examples/13.php | 99 --
.../src/docs/Calendar/docs/examples/13.phps | 99 --
.../src/docs/Calendar/docs/examples/14.php | 141 --
.../src/docs/Calendar/docs/examples/14.phps | 141 --
.../src/docs/Calendar/docs/examples/15.php | 58 -
.../src/docs/Calendar/docs/examples/15.phps | 58 -
.../src/docs/Calendar/docs/examples/16.php | 31 -
.../src/docs/Calendar/docs/examples/16.phps | 31 -
.../src/docs/Calendar/docs/examples/17.php | 71 -
.../src/docs/Calendar/docs/examples/17.phps | 71 -
.../src/docs/Calendar/docs/examples/18.php | 36 -
.../src/docs/Calendar/docs/examples/18.phps | 36 -
.../src/docs/Calendar/docs/examples/19.php | 24 -
.../src/docs/Calendar/docs/examples/19.phps | 24 -
.../src/docs/Calendar/docs/examples/2.php | 142 --
.../src/docs/Calendar/docs/examples/2.phps | 142 --
.../src/docs/Calendar/docs/examples/20.php | 240 ---
.../src/docs/Calendar/docs/examples/20.phps | 240 ---
.../src/docs/Calendar/docs/examples/21.php | 139 --
.../src/docs/Calendar/docs/examples/21.phps | 139 --
.../src/docs/Calendar/docs/examples/22.php | 46 -
.../src/docs/Calendar/docs/examples/22.phps | 46 -
.../src/docs/Calendar/docs/examples/23.php | 66 -
.../src/docs/Calendar/docs/examples/23.phps | 66 -
.../src/docs/Calendar/docs/examples/3.php | 134 --
.../src/docs/Calendar/docs/examples/3.phps | 134 --
.../src/docs/Calendar/docs/examples/4.php | 49 -
.../src/docs/Calendar/docs/examples/4.phps | 49 -
.../src/docs/Calendar/docs/examples/5.php | 132 --
.../src/docs/Calendar/docs/examples/5.phps | 132 --
.../src/docs/Calendar/docs/examples/6.php | 210 ---
.../src/docs/Calendar/docs/examples/6.phps | 210 ---
.../src/docs/Calendar/docs/examples/7.php | 92 --
.../src/docs/Calendar/docs/examples/7.phps | 92 --
.../src/docs/Calendar/docs/examples/8.php | 70 -
.../src/docs/Calendar/docs/examples/8.phps | 70 -
.../src/docs/Calendar/docs/examples/9.php | 16 -
.../src/docs/Calendar/docs/examples/9.phps | 16 -
.../docs/Calendar/docs/examples/index.html | 49 -
.../src/tools/pear/src/docs/DB/doc/IDEAS | 90 --
.../tools/pear/src/docs/DB/doc/MAINTAINERS | 16 -
.../src/tools/pear/src/docs/DB/doc/STATUS | 93 --
.../src/tools/pear/src/docs/DB/doc/TESTERS | 156 --
.../src/docs/HTML_QuickForm/docs/elements.php | 154 --
.../src/docs/HTML_QuickForm/docs/filters.php | 61 -
.../src/docs/HTML_QuickForm/docs/formrule.php | 101 --
.../src/docs/HTML_QuickForm/docs/groups.php | 95 --
.../docs/renderers/FlexyDynamic_example.php | 112 --
.../docs/renderers/FlexyStatic_example.php | 148 --
.../docs/renderers/ITDynamic_example.php | 96 --
.../docs/renderers/ITDynamic_example2.php | 119 --
.../docs/renderers/ITStatic_example.php | 111 --
.../docs/renderers/QuickHtml_example.php | 146 --
.../docs/renderers/SmartyDynamic_example.php | 108 --
.../docs/renderers/SmartyStatic_example.php | 137 --
.../docs/renderers/multiple-labels.php | 46 -
.../renderers/templates/flexy-dynamic.html | 129 --
.../renderers/templates/flexy-static.html | 154 --
.../docs/renderers/templates/html.html | 4 -
.../renderers/templates/it-dynamic-2.html | 110 --
.../docs/renderers/templates/it-dynamic.html | 127 --
.../docs/renderers/templates/it-static.html | 102 --
.../docs/renderers/templates/label.html | 4 -
.../templates/smarty-dynamic-fancygroup.tpl | 28 -
.../templates/smarty-dynamic-green.tpl | 9 -
.../renderers/templates/smarty-dynamic.tpl | 134 --
.../renderers/templates/smarty-static.tpl | 156 --
.../templates/styles/fancygroup.html | 30 -
.../renderers/templates/styles/green.html | 10 -
.../HTML_QuickForm/docs/rules-builtin.php | 87 --
.../docs/HTML_QuickForm/docs/rules-custom.php | 107 --
.../docs/XML_Beautifier/examples/example1.php | 31 -
.../docs/XML_Beautifier/examples/example2.php | 30 -
.../docs/XML_Beautifier/examples/example3.php | 36 -
.../docs/XML_Beautifier/examples/example4.php | 33 -
.../docs/XML_Beautifier/examples/example5.php | 37 -
.../docs/XML_Beautifier/examples/example6.php | 29 -
.../src/docs/XML_Beautifier/examples/test.xml | 46 -
.../XML_Parser/examples/xml_parser_file.php | 54 -
.../XML_Parser/examples/xml_parser_file.xml | 5 -
.../examples/xml_parser_handler.php | 50 -
.../examples/xml_parser_simple1.php | 50 -
.../examples/xml_parser_simple1.xml | 9 -
.../examples/xml_parser_simple2.php | 59 -
.../examples/xml_parser_simple2.xml | 5 -
.../examples/xml_parser_simple_handler.php | 56 -
.../docs/XML_Serializer/examples/example.xml | 6 -
.../examples/serializeAndEncode.php | 52 -
.../examples/serializeAndReturn.php | 27 -
.../examples/serializeArrayWithObjects.php | 47 -
.../examples/serializeEmptyArray.php | 27 -
.../examples/serializeIndexedArray.php | 60 -
.../examples/serializeObject.php | 43 -
.../XML_Serializer/examples/serializeRDF.php | 64 -
.../examples/serializeWithAttributes.php | 48 -
.../examples/serializeWithAttributes2.php | 47 -
.../examples/serializeWithDtd.php | 33 -
.../serializeWithIndentedAttributes.php | 51 -
.../examples/serializeWithNamespace.php | 50 -
.../examples/serializeWithTagMap.php | 81 -
.../examples/unserializeAnyXML.php | 81 -
.../examples/unserializeClassNames.php | 57 -
.../examples/unserializeEncoded.php | 40 -
.../examples/unserializeEnum.php | 61 -
.../examples/unserializeObject.php | 58 -
.../examples/unserializeRDF.php | 93 --
.../examples/unserializeWithAttributes.php | 33 -
.../src/docs/XML_Util/examples/example.php | 228 ---
.../src/docs/XML_Util/examples/example2.php | 95 --
campcaster/src/tools/pear/src/package.dtd | 103 --
campcaster/src/tools/pear/src/pearcmd.php | 437 ------
campcaster/src/tools/pear/src/peclcmd.php | 45 -
.../src/tools/pear/src/scripts/pearcmd.php | 6 +-
.../src/tools/pear/src/scripts/peclcmd.php | 4 +-
campcaster/src/tools/pear/src/template.spec | 72 -
.../pear/src/tests/Calendar/tests/README | 7 -
.../src/tests/Calendar/tests/all_tests.php | 34 -
.../Calendar/tests/calendar_engine_tests.php | 20 -
.../tests/Calendar/tests/calendar_include.php | 28 -
.../Calendar/tests/calendar_tabular_tests.php | 21 -
.../tests/Calendar/tests/calendar_test.php | 115 --
.../tests/Calendar/tests/calendar_tests.php | 25 -
.../src/tests/Calendar/tests/day_test.php | 107 --
.../tests/Calendar/tests/decorator_test.php | 268 ----
.../tests/Calendar/tests/decorator_tests.php | 21 -
.../Calendar/tests/decorator_textual_test.php | 174 ---
.../Calendar/tests/decorator_uri_test.php | 37 -
.../src/tests/Calendar/tests/helper_test.php | 83 -
.../src/tests/Calendar/tests/hour_test.php | 98 --
.../src/tests/Calendar/tests/minute_test.php | 99 --
.../src/tests/Calendar/tests/month_test.php | 119 --
.../Calendar/tests/month_weekdays_test.php | 130 --
.../tests/Calendar/tests/month_weeks_test.php | 125 --
.../Calendar/tests/peardate_engine_test.php | 124 --
.../src/tests/Calendar/tests/second_test.php | 34 -
.../tests/Calendar/tests/simple_include.php | 10 -
.../Calendar/tests/table_helper_tests.php | 19 -
.../Calendar/tests/unixts_engine_test.php | 104 --
.../src/tests/Calendar/tests/util_tests.php | 20 -
.../Calendar/tests/util_textual_test.php | 191 ---
.../tests/Calendar/tests/util_uri_test.php | 54 -
.../Calendar/tests/validator_error_test.php | 34 -
.../tests/Calendar/tests/validator_tests.php | 20 -
.../Calendar/tests/validator_unit_test.php | 210 ---
.../src/tests/Calendar/tests/week_test.php | 214 ---
.../src/tests/Calendar/tests/year_test.php | 142 --
.../pear/src/tests/DB/tests/db_error.phpt | 79 -
.../pear/src/tests/DB/tests/db_error2.phpt | 92 --
.../pear/src/tests/DB/tests/db_factory.phpt | 53 -
.../pear/src/tests/DB/tests/db_ismanip.phpt | 57 -
.../pear/src/tests/DB/tests/db_parsedsn.phpt | 480 ------
.../src/tests/DB/tests/driver/01connect.phpt | 76 -
.../src/tests/DB/tests/driver/02fetch.phpt | 40 -
.../tests/DB/tests/driver/03simplequery.phpt | 13 -
.../src/tests/DB/tests/driver/04numcols.phpt | 16 -
.../tests/DB/tests/driver/05sequences.phpt | 28 -
.../src/tests/DB/tests/driver/06prepexec.phpt | 50 -
.../tests/DB/tests/driver/08affectedrows.phpt | 62 -
.../src/tests/DB/tests/driver/09numrows.phpt | 22 -
.../src/tests/DB/tests/driver/10errormap.phpt | 37 -
.../tests/DB/tests/driver/11transactions.phpt | 26 -
.../src/tests/DB/tests/driver/13limit.phpt | 54 -
.../DB/tests/driver/14fetchmode_object.phpt | 24 -
.../src/tests/DB/tests/driver/15quote.phpt | 273 ----
.../tests/DB/tests/driver/16tableinfo.phpt | 1340 -----------------
.../src/tests/DB/tests/driver/17query.phpt | 140 --
.../pear/src/tests/DB/tests/driver/18get.phpt | 661 --------
.../tests/DB/tests/driver/19getlistof.phpt | 208 ---
.../src/tests/DB/tests/driver/connect.inc | 46 -
.../src/tests/DB/tests/driver/mktable.inc | 161 --
.../tests/DB/tests/driver/multiconnect.php | 83 -
.../pear/src/tests/DB/tests/driver/run.cvs | 40 -
.../src/tests/DB/tests/driver/setup.inc.cvs | 115 --
.../pear/src/tests/DB/tests/driver/skipif.inc | 37 -
.../tools/pear/src/tests/DB/tests/errors.inc | 466 ------
.../src/tests/DB/tests/fetchmode_object.inc | 111 --
.../pear/src/tests/DB/tests/fetchmodes.inc | 170 ---
.../tools/pear/src/tests/DB/tests/include.inc | 62 -
.../tools/pear/src/tests/DB/tests/limit.inc | 86 --
.../tools/pear/src/tests/DB/tests/numcols.inc | 67 -
.../tools/pear/src/tests/DB/tests/numrows.inc | 110 --
.../tools/pear/src/tests/DB/tests/prepexe.inc | 241 ---
.../src/tools/pear/src/tests/DB/tests/run.cvs | 40 -
.../pear/src/tests/DB/tests/sequences.inc | 129 --
.../pear/src/tests/DB/tests/simplequery.inc | 76 -
.../tools/pear/src/tests/DB/tests/skipif.inc | 30 -
.../pear/src/tests/DB/tests/transactions.inc | 101 --
.../pear/src/tests/File/tests/CSV/001.csv | 4 -
.../pear/src/tests/File/tests/CSV/001.phpt | 73 -
.../pear/src/tests/File/tests/CSV/002.csv | 4 -
.../pear/src/tests/File/tests/CSV/002.phpt | 73 -
.../pear/src/tests/File/tests/CSV/003.csv | 4 -
.../pear/src/tests/File/tests/CSV/003.phpt | 66 -
.../pear/src/tests/File/tests/CSV/004.csv | 4 -
.../pear/src/tests/File/tests/CSV/004.phpt | 66 -
.../pear/src/tests/File/tests/CSV/005.csv | 1 -
.../pear/src/tests/File/tests/CSV/005.phpt | 84 --
.../pear/src/tests/File/tests/CSV/tests.txt | 12 -
.../pear/src/tests/File/tests/FileTest.php | 226 ---
.../pear/src/tests/File/tests/parser.php | 31 -
.../tools/pear/src/tests/File/tests/test.csv | 18 -
.../src/tests/File_Find/tests/01glob.phpt | 46 -
.../src/tests/File_Find/tests/02maptree.phpt | 97 --
.../File_Find/tests/03maptreemultiple.phpt | 91 --
.../src/tests/File_Find/tests/04search.phpt | 53 -
.../File_Find/tests/05search_inside.phpt | 63 -
.../src/tests/File_Find/tests/bug2773.phpt | 58 -
.../pear/src/tests/File_Find/tests/setup.php | 46 -
.../pear/src/tests/XML_Parser/tests/001.phpt | 49 -
.../pear/src/tests/XML_Parser/tests/002.phpt | 52 -
.../pear/src/tests/XML_Parser/tests/003.phpt | 55 -
.../pear/src/tests/XML_Parser/tests/004.phpt | 26 -
.../pear/src/tests/XML_Parser/tests/005.phpt | 75 -
.../pear/src/tests/XML_Parser/tests/test2.xml | 2 -
.../pear/src/tests/XML_Parser/tests/test3.xml | 2 -
.../pear/src/tests/XML_RPC/tests/allgot.inc | 58 -
.../XML_RPC/tests/empty-value-struct.php | 90 --
.../src/tests/XML_RPC/tests/empty-value.php | 88 --
.../src/tests/XML_RPC/tests/extra-lines.php | 109 --
.../src/tests/XML_RPC/tests/protoport.php | 437 ------
.../src/tests/XML_RPC/tests/test_Dump.php | 50 -
.../pear/src/tests/XML_RPC/tests/types.php | 132 --
232 files changed, 5 insertions(+), 21513 deletions(-)
delete mode 100644 campcaster/src/tools/pear/src/docs/Archive_Tar/docs/Archive_Tar.txt
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/Readme
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/1.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/1.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/10.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/10.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/11.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/11.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/12.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/12.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/13.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/13.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/14.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/14.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/15.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/15.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/16.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/16.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/17.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/17.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/18.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/18.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/19.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/19.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/2.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/2.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/20.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/20.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/21.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/21.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/22.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/22.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/23.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/23.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/3.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/3.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/4.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/4.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/5.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/5.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/6.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/6.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/7.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/7.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/8.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/8.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/9.php
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/9.phps
delete mode 100644 campcaster/src/tools/pear/src/docs/Calendar/docs/examples/index.html
delete mode 100644 campcaster/src/tools/pear/src/docs/DB/doc/IDEAS
delete mode 100644 campcaster/src/tools/pear/src/docs/DB/doc/MAINTAINERS
delete mode 100644 campcaster/src/tools/pear/src/docs/DB/doc/STATUS
delete mode 100644 campcaster/src/tools/pear/src/docs/DB/doc/TESTERS
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/elements.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/filters.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/formrule.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/groups.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/FlexyDynamic_example.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/FlexyStatic_example.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/ITDynamic_example.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/ITDynamic_example2.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/ITStatic_example.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/QuickHtml_example.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/SmartyDynamic_example.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/SmartyStatic_example.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/multiple-labels.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/flexy-dynamic.html
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/flexy-static.html
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/html.html
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/it-dynamic-2.html
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/it-dynamic.html
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/it-static.html
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/label.html
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/smarty-dynamic-fancygroup.tpl
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/smarty-dynamic-green.tpl
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/smarty-dynamic.tpl
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/smarty-static.tpl
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/styles/fancygroup.html
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/styles/green.html
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/rules-builtin.php
delete mode 100644 campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/rules-custom.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Beautifier/examples/example1.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Beautifier/examples/example2.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Beautifier/examples/example3.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Beautifier/examples/example4.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Beautifier/examples/example5.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Beautifier/examples/example6.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Beautifier/examples/test.xml
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_file.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_file.xml
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_handler.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple1.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple1.xml
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple2.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple2.xml
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple_handler.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/example.xml
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeAndEncode.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeAndReturn.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeArrayWithObjects.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeEmptyArray.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeIndexedArray.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeObject.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeRDF.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeWithAttributes.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeWithAttributes2.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeWithDtd.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeWithIndentedAttributes.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeWithNamespace.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeWithTagMap.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeAnyXML.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeClassNames.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeEncoded.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeEnum.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeObject.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeRDF.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeWithAttributes.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Util/examples/example.php
delete mode 100644 campcaster/src/tools/pear/src/docs/XML_Util/examples/example2.php
delete mode 100644 campcaster/src/tools/pear/src/package.dtd
delete mode 100644 campcaster/src/tools/pear/src/pearcmd.php
delete mode 100644 campcaster/src/tools/pear/src/peclcmd.php
delete mode 100644 campcaster/src/tools/pear/src/template.spec
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/README
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/all_tests.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_engine_tests.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_include.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_tabular_tests.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_tests.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/day_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_tests.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_textual_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_uri_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/helper_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/hour_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/minute_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/month_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/month_weekdays_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/month_weeks_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/peardate_engine_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/second_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/simple_include.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/table_helper_tests.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/unixts_engine_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/util_tests.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/util_textual_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/util_uri_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/validator_error_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/validator_tests.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/validator_unit_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/week_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/Calendar/tests/year_test.php
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/db_error.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/db_error2.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/db_factory.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/db_ismanip.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/db_parsedsn.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/01connect.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/02fetch.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/03simplequery.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/04numcols.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/05sequences.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/06prepexec.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/08affectedrows.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/09numrows.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/10errormap.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/11transactions.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/13limit.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/14fetchmode_object.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/15quote.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/16tableinfo.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/17query.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/18get.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/19getlistof.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/connect.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/mktable.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/multiconnect.php
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/run.cvs
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/setup.inc.cvs
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/driver/skipif.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/errors.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/fetchmode_object.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/fetchmodes.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/include.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/limit.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/numcols.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/numrows.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/prepexe.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/run.cvs
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/sequences.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/simplequery.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/skipif.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/DB/tests/transactions.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/CSV/001.csv
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/CSV/001.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/CSV/002.csv
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/CSV/002.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/CSV/003.csv
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/CSV/003.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/CSV/004.csv
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/CSV/004.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/CSV/005.csv
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/CSV/005.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/CSV/tests.txt
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/FileTest.php
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/parser.php
delete mode 100644 campcaster/src/tools/pear/src/tests/File/tests/test.csv
delete mode 100644 campcaster/src/tools/pear/src/tests/File_Find/tests/01glob.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/File_Find/tests/02maptree.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/File_Find/tests/03maptreemultiple.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/File_Find/tests/04search.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/File_Find/tests/05search_inside.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/File_Find/tests/bug2773.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/File_Find/tests/setup.php
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_Parser/tests/001.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_Parser/tests/002.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_Parser/tests/003.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_Parser/tests/004.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_Parser/tests/005.phpt
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_Parser/tests/test2.xml
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_Parser/tests/test3.xml
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_RPC/tests/allgot.inc
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_RPC/tests/empty-value-struct.php
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_RPC/tests/empty-value.php
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_RPC/tests/extra-lines.php
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_RPC/tests/protoport.php
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_RPC/tests/test_Dump.php
delete mode 100644 campcaster/src/tools/pear/src/tests/XML_RPC/tests/types.php
diff --git a/campcaster/src/tools/pear/src/docs/Archive_Tar/docs/Archive_Tar.txt b/campcaster/src/tools/pear/src/docs/Archive_Tar/docs/Archive_Tar.txt
deleted file mode 100644
index d20507b34..000000000
--- a/campcaster/src/tools/pear/src/docs/Archive_Tar/docs/Archive_Tar.txt
+++ /dev/null
@@ -1,461 +0,0 @@
-Documentation for class Archive_Tar
-===================================
-Last update : 2001-08-15
-
-
-
-Overview :
-----------
-
- The Archive_Tar class helps in creating and managing GNU TAR format
- files compressed by GNU ZIP or not.
- The class offers basic functions like creating an archive, adding
- files in the archive, extracting files from the archive and listing
- the archive content.
- It also provide advanced functions that allow the adding and
- extraction of files with path manipulation.
-
-
-Sample :
---------
-
- // ----- Creating the object (uncompressed archive)
- $tar_object = new Archive_Tar("tarname.tar");
- $tar_object->setErrorHandling(PEAR_ERROR_PRINT);
-
- // ----- Creating the archive
- $v_list[0]="file.txt";
- $v_list[1]="data/";
- $v_list[2]="file.log";
- $tar_object->create($v_list);
-
- // ----- Adding files
- $v_list[0]="dev/file.txt";
- $v_list[1]="dev/data/";
- $v_list[2]="log/file.log";
- $tar_object->add($v_list);
-
- // ----- Adding more files
- $tar_object->add("release/newfile.log release/readme.txt");
-
- // ----- Listing the content
- if (($v_list = $tar_object->listContent()) != 0)
- for ($i=0; $i";
- echo " .size :'".$v_list[$i][size]."' ";
- echo " .mtime :'".$v_list[$i][mtime]."' (".date("l dS of F Y h:i:s A", $v_list[$i][mtime]).") ";
- echo " .mode :'".$v_list[$i][mode]."' ";
- echo " .uid :'".$v_list[$i][uid]."' ";
- echo " .gid :'".$v_list[$i][gid]."' ";
- echo " .typeflag :'".$v_list[$i][typeflag]."' ";
- }
-
- // ----- Extracting the archive in directory "install"
- $tar_object->extract("install");
-
-
-Public arguments :
-------------------
-
-None
-
-
-Public Methods :
-----------------
-
-Method : Archive_Tar($p_tarname, $compress = null)
-Description :
- Archive_Tar Class constructor. This flavour of the constructor only
- declare a new Archive_Tar object, identifying it by the name of the
- tar file.
- If the compress argument is set the tar will be read or created as a
- gzip or bz2 compressed TAR file.
-Arguments :
- $p_tarname : A valid filename for the tar archive file.
- $p_compress : can be null, 'gz' or 'bz2'. For
- compatibility reason it can also be true. This
- parameter indicates if gzip or bz2 compression
- is required.
-Return value :
- The Archive_Tar object.
-Sample :
- $tar_object = new Archive_Tar("tarname.tar");
- $tar_object_compressed = new Archive_Tar("tarname.tgz", true);
-How it works :
- Initialize the object.
-
-Method : create($p_filelist)
-Description :
- This method creates the archive file and add the files / directories
- that are listed in $p_filelist.
- If the file already exists and is writable, it is replaced by the
- new tar. It is a create and not an add. If the file exists and is
- read-only or is a directory it is not replaced. The method return
- false and a PEAR error text.
- The $p_filelist parameter can be an array of string, each string
- representing a filename or a directory name with their path if
- needed. It can also be a single string with names separated by a
- single blank.
- See also createModify() method for more details.
-Arguments :
- $p_filelist : An array of filenames and directory names, or a single
- string with names separated by a single blank space.
-Return value :
- true on success, false on error.
-Sample 1 :
- $tar_object = new Archive_Tar("tarname.tar");
- $tar_object->setErrorHandling(PEAR_ERROR_PRINT); // Optional error handling
- $v_list[0]="file.txt";
- $v_list[1]="data/"; (Optional '/' at the end)
- $v_list[2]="file.log";
- $tar_object->create($v_list);
-Sample 2 :
- $tar_object = new Archive_Tar("tarname.tar");
- $tar_object->setErrorHandling(PEAR_ERROR_PRINT); // Optional error handling
- $tar_object->create("file.txt data/ file.log");
-How it works :
- Just calling the createModify() method with the right parameters.
-
-Method : createModify($p_filelist, $p_add_dir, $p_remove_dir = "")
-Description :
- This method creates the archive file and add the files / directories
- that are listed in $p_filelist.
- If the file already exists and is writable, it is replaced by the
- new tar. It is a create and not an add. If the file exists and is
- read-only or is a directory it is not replaced. The method return
- false and a PEAR error text.
- The $p_filelist parameter can be an array of string, each string
- representing a filename or a directory name with their path if
- needed. It can also be a single string with names separated by a
- single blank.
- The path indicated in $p_remove_dir will be removed from the
- memorized path of each file / directory listed when this path
- exists. By default nothing is removed (empty path "")
- The path indicated in $p_add_dir will be added at the beginning of
- the memorized path of each file / directory listed. However it can
- be set to empty "". The adding of a path is done after the removing
- of path.
- The path add/remove ability enables the user to prepare an archive
- for extraction in a different path than the origin files are.
- See also addModify() method for file adding properties.
-Arguments :
- $p_filelist : An array of filenames and directory names, or a single
- string with names separated by a single blank space.
- $p_add_dir : A string which contains a path to be added to the
- memorized path of each element in the list.
- $p_remove_dir : A string which contains a path to be removed from
- the memorized path of each element in the list, when
- relevant.
-Return value :
- true on success, false on error.
-Sample 1 :
- $tar_object = new Archive_Tar("tarname.tar");
- $tar_object->setErrorHandling(PEAR_ERROR_PRINT); // Optional error handling
- $v_list[0]="file.txt";
- $v_list[1]="data/"; (Optional '/' at the end)
- $v_list[2]="file.log";
- $tar_object->createModify($v_list, "install");
- // files are stored in the archive as :
- // install/file.txt
- // install/data
- // install/data/file1.txt
- // install/data/... all the files and sub-dirs of data/
- // install/file.log
-Sample 2 :
- $tar_object = new Archive_Tar("tarname.tar");
- $tar_object->setErrorHandling(PEAR_ERROR_PRINT); // Optional error handling
- $v_list[0]="dev/file.txt";
- $v_list[1]="dev/data/"; (Optional '/' at the end)
- $v_list[2]="log/file.log";
- $tar_object->createModify($v_list, "install", "dev");
- // files are stored in the archive as :
- // install/file.txt
- // install/data
- // install/data/file1.txt
- // install/data/... all the files and sub-dirs of data/
- // install/log/file.log
-How it works :
- Open the file in write mode (erasing the existing one if one),
- call the _addList() method for adding the files in an empty archive,
- add the tar footer (512 bytes block), close the tar file.
-
-
-Method : addModify($p_filelist, $p_add_dir, $p_remove_dir="")
-Description :
- This method add the files / directories listed in $p_filelist at the
- end of the existing archive. If the archive does not yet exists it
- is created.
- The $p_filelist parameter can be an array of string, each string
- representing a filename or a directory name with their path if
- needed. It can also be a single string with names separated by a
- single blank.
- The path indicated in $p_remove_dir will be removed from the
- memorized path of each file / directory listed when this path
- exists. By default nothing is removed (empty path "")
- The path indicated in $p_add_dir will be added at the beginning of
- the memorized path of each file / directory listed. However it can
- be set to empty "". The adding of a path is done after the removing
- of path.
- The path add/remove ability enables the user to prepare an archive
- for extraction in a different path than the origin files are.
- If a file/dir is already in the archive it will only be added at the
- end of the archive. There is no update of the existing archived
- file/dir. However while extracting the archive, the last file will
- replace the first one. This results in a none optimization of the
- archive size.
- If a file/dir does not exist the file/dir is ignored. However an
- error text is send to PEAR error.
- If a file/dir is not readable the file/dir is ignored. However an
- error text is send to PEAR error.
- If the resulting filename/dirname (after the add/remove option or
- not) string is greater than 99 char, the file/dir is
- ignored. However an error text is send to PEAR error.
-Arguments :
- $p_filelist : An array of filenames and directory names, or a single
- string with names separated by a single blank space.
- $p_add_dir : A string which contains a path to be added to the
- memorized path of each element in the list.
- $p_remove_dir : A string which contains a path to be removed from
- the memorized path of each element in the list, when
- relevant.
-Return value :
- true on success, false on error.
-Sample 1 :
- $tar_object = new Archive_Tar("tarname.tar");
- [...]
- $v_list[0]="dev/file.txt";
- $v_list[1]="dev/data/"; (Optional '/' at the end)
- $v_list[2]="log/file.log";
- $tar_object->addModify($v_list, "install");
- // files are stored in the archive as :
- // install/file.txt
- // install/data
- // install/data/file1.txt
- // install/data/... all the files and sub-dirs of data/
- // install/file.log
-Sample 2 :
- $tar_object = new Archive_Tar("tarname.tar");
- [...]
- $v_list[0]="dev/file.txt";
- $v_list[1]="dev/data/"; (Optional '/' at the end)
- $v_list[2]="log/file.log";
- $tar_object->addModify($v_list, "install", "dev");
- // files are stored in the archive as :
- // install/file.txt
- // install/data
- // install/data/file1.txt
- // install/data/... all the files and sub-dirs of data/
- // install/log/file.log
-How it works :
- If the archive does not exists it create it and add the files.
- If the archive does exists and is not compressed, it open it, jump
- before the last empty 512 bytes block (tar footer) and add the files
- at this point.
- If the archive does exists and is compressed, a temporary copy file
- is created. This temporary file is then 'gzip' read block by block
- until the last empty block. The new files are then added in the
- compressed file.
- The adding of files is done by going through the file/dir list,
- adding files per files, in a recursive way through the
- directory. Each time a path need to be added/removed it is done
- before writing the file header in the archive.
-
-Method : add($p_filelist)
-Description :
- This method add the files / directories listed in $p_filelist at the
- end of the existing archive. If the archive does not yet exists it
- is created.
- The $p_filelist parameter can be an array of string, each string
- representing a filename or a directory name with their path if
- needed. It can also be a single string with names separated by a
- single blank.
- See addModify() method for details and limitations.
-Arguments :
- $p_filelist : An array of filenames and directory names, or a single
- string with names separated by a single blank space.
-Return value :
- true on success, false on error.
-Sample 1 :
- $tar_object = new Archive_Tar("tarname.tar");
- [...]
- $v_list[0]="dev/file.txt";
- $v_list[1]="dev/data/"; (Optional '/' at the end)
- $v_list[2]="log/file.log";
- $tar_object->add($v_list);
-Sample 2 :
- $tar_object = new Archive_Tar("tarname.tgz", true);
- [...]
- $v_list[0]="dev/file.txt";
- $v_list[1]="dev/data/"; (Optional '/' at the end)
- $v_list[2]="log/file.log";
- $tar_object->add($v_list);
-How it works :
- Simply call the addModify() method with the right parameters.
-
-Method : addString($p_filename, $p_string)
-Description :
- This method add a single string as a file at the
- end of the existing archive. If the archive does not yet exists it
- is created.
-Arguments :
- $p_filename : A string which contains the full filename path
- that will be associated with the string.
- $p_string : The content of the file added in the archive.
-Return value :
- true on success, false on error.
-Sample 1 :
- $v_archive = & new Archive_Tar($p_filename);
- $v_archive->setErrorHandling(PEAR_ERROR_PRINT);
- $v_result = $v_archive->addString('data/test.txt', 'This is the text of the string');
-
-
-Method : extract($p_path = "")
-Description :
- This method extract all the content of the archive in the directory
- indicated by $p_path.If $p_path is optional, if not set the archive
- is extracted in the current directory.
- While extracting a file, if the directory path does not exists it is
- created.
- See extractModify() for details and limitations.
-Arguments :
- $p_path : Optional path where the files/dir need to by extracted.
-Return value :
- true on success, false on error.
-Sample :
- $tar_object = new Archive_Tar("tarname.tar");
- $tar_object->extract();
-How it works :
- Simply call the extractModify() method with appropriate parameters.
-
-Method : extractModify($p_path, $p_remove_path)
-Description :
- This method extract all the content of the archive in the directory
- indicated by $p_path. When relevant the memorized path of the
- files/dir can be modified by removing the $p_remove_path path at the
- beginning of the file/dir path.
- While extracting a file, if the directory path does not exists it is
- created.
- While extracting a file, if the file already exists it is replaced
- without looking for last modification date.
- While extracting a file, if the file already exists and is write
- protected, the extraction is aborted.
- While extracting a file, if a directory with the same name already
- exists, the extraction is aborted.
- While extracting a directory, if a file with the same name already
- exists, the extraction is aborted.
- While extracting a file/directory if the destination directory exist
- and is write protected, or does not exist but can not be created,
- the extraction is aborted.
- If after extraction an extracted file does not show the correct
- stored file size, the extraction is aborted.
- When the extraction is aborted, a PEAR error text is set and false
- is returned. However the result can be a partial extraction that may
- need to be manually cleaned.
-Arguments :
- $p_path : The path of the directory where the files/dir need to by
- extracted.
- $p_remove_path : Part of the memorized path that can be removed if
- present at the beginning of the file/dir path.
-Return value :
- true on success, false on error.
-Sample :
- // Imagine tarname.tar with files :
- // dev/data/file.txt
- // dev/data/log.txt
- // readme.txt
- $tar_object = new Archive_Tar("tarname.tar");
- $tar_object->extractModify("install", "dev");
- // Files will be extracted there :
- // install/data/file.txt
- // install/data/log.txt
- // install/readme.txt
-How it works :
- Open the archive and call a more generic function that can extract
- only a part of the archive or all the archive.
- See extractList() method for more details.
-
-Method : extractInString($p_filename)
-Description :
- This method extract from the archive one file identified by $p_filename.
- The return value is a string with the file content, or NULL on error.
-Arguments :
- $p_filename : The path of the file to extract in a string.
-Return value :
- a string with the file content or NULL.
-Sample :
- // Imagine tarname.tar with files :
- // dev/data/file.txt
- // dev/data/log.txt
- // dev/readme.txt
- $v_archive = & new Archive_Tar('tarname.tar');
- $v_archive->setErrorHandling(PEAR_ERROR_PRINT);
- $v_string = $v_archive->extractInString('dev/readme.txt');
- echo $v_string;
-
-Method : listContent()
-Description :
- This method returns an array of arrays that describe each
- file/directory present in the archive.
- The array is not sorted, so it show the position of the file in the
- archive.
- The file informations are :
- $file[filename] : Name and path of the file/dir.
- $file[mode] : File permissions (result of fileperms())
- $file[uid] : user id
- $file[gid] : group id
- $file[size] : filesize
- $file[mtime] : Last modification time (result of filemtime())
- $file[typeflag] : "" for file, "5" for directory
-Arguments :
-Return value :
- An array of arrays or 0 on error.
-Sample :
- $tar_object = new Archive_Tar("tarname.tar");
- if (($v_list = $tar_object->listContent()) != 0)
- for ($i=0; $i";
- echo " .size :'".$v_list[$i][size]."' ";
- echo " .mtime :'".$v_list[$i][mtime]."' (".
- date("l dS of F Y h:i:s A", $v_list[$i][mtime]).") ";
- echo " .mode :'".$v_list[$i][mode]."' ";
- echo " .uid :'".$v_list[$i][uid]."' ";
- echo " .gid :'".$v_list[$i][gid]."' ";
- echo " .typeflag :'".$v_list[$i][typeflag]."' ";
- }
-How it works :
- Call the same function as an extract however with a flag to only go
- through the archive without extracting the files.
-
-Method : extractList($p_filelist, $p_path = "", $p_remove_path = "")
-Description :
- This method extract from the archive only the files indicated in the
- $p_filelist. These files are extracted in the current directory or
- in the directory indicated by the optional $p_path parameter.
- If indicated the $p_remove_path can be used in the same way as it is
- used in extractModify() method.
-Arguments :
- $p_filelist : An array of filenames and directory names, or a single
- string with names separated by a single blank space.
- $p_path : The path of the directory where the files/dir need to by
- extracted.
- $p_remove_path : Part of the memorized path that can be removed if
- present at the beginning of the file/dir path.
-Return value :
- true on success, false on error.
-Sample :
- // Imagine tarname.tar with files :
- // dev/data/file.txt
- // dev/data/log.txt
- // readme.txt
- $tar_object = new Archive_Tar("tarname.tar");
- $tar_object->extractList("dev/data/file.txt readme.txt", "install",
- "dev");
- // Files will be extracted there :
- // install/data/file.txt
- // install/readme.txt
-How it works :
- Go through the archive and extract only the files present in the
- list.
-
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/Readme b/campcaster/src/tools/pear/src/docs/Calendar/docs/Readme
deleted file mode 100644
index bba1ed66d..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/Readme
+++ /dev/null
@@ -1,3 +0,0 @@
-Readme
-
-See the PEAR manual at http://pear.php.net/manual/en/package.datetime.calendar.php for details.
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/1.php b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/1.php
deleted file mode 100644
index 662a17da5..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/1.php
+++ /dev/null
@@ -1,92 +0,0 @@
-' );
-echo ( 'The time is now: '.date('Y M d H:i:s',$c->getTimestamp()).' ' );
-
-$i = 1;
-echo ( '
First Iteration
' );
-echo ( '
The first iteration is more "expensive", the calendar data
- structures having to be built.
' );
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/1.phps b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/1.phps
deleted file mode 100644
index 662a17da5..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/1.phps
+++ /dev/null
@@ -1,92 +0,0 @@
-' );
-echo ( 'The time is now: '.date('Y M d H:i:s',$c->getTimestamp()).' ' );
-
-$i = 1;
-echo ( '
First Iteration
' );
-echo ( '
The first iteration is more "expensive", the calendar data
- structures having to be built.
-
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/11.php b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/11.php
deleted file mode 100644
index 281dc8c70..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/11.php
+++ /dev/null
@@ -1,109 +0,0 @@
-entry = $entry;
- }
- function getEntry() {
- return $this->entry;
- }
-}
-
-// Create a day to view the hours for
-$Day = & new Calendar_Day(2003,10,24);
-
-// A sample query to get the data for today (NOT ACTUALLY USED HERE)
-$sql = "
- SELECT
- *
- FROM
- diary
- WHERE
- eventtime >= '".$Day->thisDay(TRUE)."'
- AND
- eventtime < '".$Day->nextDay(TRUE)."';";
-
-// An array simulating data from a database
-$result = array (
- array('eventtime'=>mktime(9,0,0,10,24,2003),'entry'=>'Meeting with sales team'),
- array('eventtime'=>mktime(11,0,0,10,24,2003),'entry'=>'Conference call with Widget Inc.'),
- array('eventtime'=>mktime(15,0,0,10,24,2003),'entry'=>'Presentation to board of directors')
- );
-
-// An array to place selected hours in
-$selection = array();
-
-// Loop through the "database result"
-foreach ( $result as $row ) {
- $Hour = new Calendar_Hour(2000,1,1,1); // Create Hour with dummy values
- $Hour->setTimeStamp($row['eventtime']); // Set the real time with setTimeStamp
-
- // Create the decorator, passing it the Hour
- $DiaryEvent = new DiaryEvent($Hour);
-
- // Attach the payload
- $DiaryEvent->setEntry($row['entry']);
-
- // Add the decorator to the selection
- $selection[] = $DiaryEvent;
-}
-
-// Build the hours in that day, passing the selection
-$Day->build($selection);
-?>
-
-
-
- Passing a Selection Payload with a Decorator
-
-
-
\n" );
-
- // If the hour is selected, call the decorator method...
- if ( $Hour->isSelected() ) {
- echo ( "
".$Hour->getEntry()."
\n" );
- } else {
- echo ( "
\n" );
- }
- echo ( "
\n" );
- }
-}
-?>
-
-
The query to fetch this data, with help from PEAR::Calendar, might be;
-
-
-
-
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/11.phps b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/11.phps
deleted file mode 100644
index 281dc8c70..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/11.phps
+++ /dev/null
@@ -1,109 +0,0 @@
-entry = $entry;
- }
- function getEntry() {
- return $this->entry;
- }
-}
-
-// Create a day to view the hours for
-$Day = & new Calendar_Day(2003,10,24);
-
-// A sample query to get the data for today (NOT ACTUALLY USED HERE)
-$sql = "
- SELECT
- *
- FROM
- diary
- WHERE
- eventtime >= '".$Day->thisDay(TRUE)."'
- AND
- eventtime < '".$Day->nextDay(TRUE)."';";
-
-// An array simulating data from a database
-$result = array (
- array('eventtime'=>mktime(9,0,0,10,24,2003),'entry'=>'Meeting with sales team'),
- array('eventtime'=>mktime(11,0,0,10,24,2003),'entry'=>'Conference call with Widget Inc.'),
- array('eventtime'=>mktime(15,0,0,10,24,2003),'entry'=>'Presentation to board of directors')
- );
-
-// An array to place selected hours in
-$selection = array();
-
-// Loop through the "database result"
-foreach ( $result as $row ) {
- $Hour = new Calendar_Hour(2000,1,1,1); // Create Hour with dummy values
- $Hour->setTimeStamp($row['eventtime']); // Set the real time with setTimeStamp
-
- // Create the decorator, passing it the Hour
- $DiaryEvent = new DiaryEvent($Hour);
-
- // Attach the payload
- $DiaryEvent->setEntry($row['entry']);
-
- // Add the decorator to the selection
- $selection[] = $DiaryEvent;
-}
-
-// Build the hours in that day, passing the selection
-$Day->build($selection);
-?>
-
-
-
- Passing a Selection Payload with a Decorator
-
-
-
' );
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/14.php b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/14.php
deleted file mode 100644
index b1c520c80..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/14.php
+++ /dev/null
@@ -1,141 +0,0 @@
-build($selectedDays);
-
-// Construct strings for next/previous links
-$PMonth = $month->prevMonth('object'); // Get previous month as object
-$prev = $_SERVER['PHP_SELF'].'?y='.$PMonth->thisYear().'&m='.$PMonth->thisMonth().'&d='.$PMonth->thisDay();
-$NMonth = $month->nextMonth('object');
-$next = $_SERVER['PHP_SELF'].'?y='.$NMonth->thisYear().'&m='.$NMonth->thisMonth().'&d='.$NMonth->thisDay();
-
-$thisDate = new Date($month->thisMonth('timestamp'));
-?>
-
-
-
- Calendar using PEAR::Date Engine
-
-
-
-
-
-
Calendar using PEAR::Date Engine
-
-
-format('%B %Y'); ?>
-
-
-
M
-
T
-
W
-
T
-
F
-
S
-
S
-
-fetch()) {
- // Build a link string for each day
- $link = $_SERVER['PHP_SELF'].
- '?y='.$day->thisYear().
- '&m='.$day->thisMonth().
- '&d='.$day->thisDay();
-
- // isFirst() to find start of week
- if ($day->isFirst())
- echo "
';
-?>
-
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/14.phps b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/14.phps
deleted file mode 100644
index b1c520c80..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/14.phps
+++ /dev/null
@@ -1,141 +0,0 @@
-build($selectedDays);
-
-// Construct strings for next/previous links
-$PMonth = $month->prevMonth('object'); // Get previous month as object
-$prev = $_SERVER['PHP_SELF'].'?y='.$PMonth->thisYear().'&m='.$PMonth->thisMonth().'&d='.$PMonth->thisDay();
-$NMonth = $month->nextMonth('object');
-$next = $_SERVER['PHP_SELF'].'?y='.$NMonth->thisYear().'&m='.$NMonth->thisMonth().'&d='.$NMonth->thisDay();
-
-$thisDate = new Date($month->thisMonth('timestamp'));
-?>
-
-
-
- Calendar using PEAR::Date Engine
-
-
-
-
-
-
Calendar using PEAR::Date Engine
-
-
-format('%B %Y'); ?>
-
-
-
M
-
T
-
W
-
T
-
F
-
S
-
S
-
-fetch()) {
- // Build a link string for each day
- $link = $_SERVER['PHP_SELF'].
- '?y='.$day->thisYear().
- '&m='.$day->thisMonth().
- '&d='.$day->thisDay();
-
- // isFirst() to find start of week
- if ($day->isFirst())
- echo "
';
-
-echo "Creating: new Calendar_Day(date('Y'), date('n'), date('d')); ";
-$Calendar = new Calendar_Day(date('Y'), date('n'), date('d'));
-
-// Decorate
-$Textual = & new Calendar_Decorator_Textual($Calendar);
-
-echo 'Previous month is: '.$Textual->prevMonthName('two').' ';
-echo 'This month is: '.$Textual->thisMonthName('short').' ';
-echo 'Next month is: '.$Textual->nextMonthName().' ';
-echo 'Previous day is: '.$Textual->prevDayName().' ';
-echo 'This day is: '.$Textual->thisDayName('short').' ';
-echo 'Next day is: '.$Textual->nextDayName('one').' ';
-
-echo "Creating: new Calendar_Month_Weekdays(date('Y'), date('n'), 6); - Saturday is first day of week ";
-$Calendar = new Calendar_Month_Weekdays(date('Y'), date('n'), 6);
-
-// Decorate
-$Textual = & new Calendar_Decorator_Textual($Calendar);
-?>
-
Rendering calendar....
-
-
thisMonthName().' '.$Textual->thisYear(); ?>
-
-orderedWeekdays('short');
-foreach ($dayheaders as $dayheader) {
- echo '
';
-
-echo "Creating: new Calendar_Day(date('Y'), date('n'), date('d')); ";
-$Calendar = new Calendar_Day(date('Y'), date('n'), date('d'));
-
-// Decorate
-$Textual = & new Calendar_Decorator_Textual($Calendar);
-
-echo 'Previous month is: '.$Textual->prevMonthName('two').' ';
-echo 'This month is: '.$Textual->thisMonthName('short').' ';
-echo 'Next month is: '.$Textual->nextMonthName().' ';
-echo 'Previous day is: '.$Textual->prevDayName().' ';
-echo 'This day is: '.$Textual->thisDayName('short').' ';
-echo 'Next day is: '.$Textual->nextDayName('one').' ';
-
-echo "Creating: new Calendar_Month_Weekdays(date('Y'), date('n'), 6); - Saturday is first day of week ";
-$Calendar = new Calendar_Month_Weekdays(date('Y'), date('n'), 6);
-
-// Decorate
-$Textual = & new Calendar_Decorator_Textual($Calendar);
-?>
-
Rendering calendar....
-
-
thisMonthName().' '.$Textual->thisYear(); ?>
-
-orderedWeekdays('short');
-foreach ($dayheaders as $dayheader) {
- echo '
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/18.php b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/18.php
deleted file mode 100644
index 7ec2a4988..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/18.php
+++ /dev/null
@@ -1,36 +0,0 @@
-'.parent::thisDay().'';
- }
-}
-
-$Month = new Calendar_Month(date('Y'), date('n'));
-
-$Wrapper = & new Calendar_Decorator_Wrapper($Month);
-$Wrapper->build();
-
-echo '
The Wrapper decorator
';
-echo 'Day numbers are rendered in bold
';
-while ($DecoratedDay = $Wrapper->fetch('MyBoldDecorator')) {
- echo $DecoratedDay->thisDay().' ';
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/18.phps b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/18.phps
deleted file mode 100644
index 7ec2a4988..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/18.phps
+++ /dev/null
@@ -1,36 +0,0 @@
-'.parent::thisDay().'';
- }
-}
-
-$Month = new Calendar_Month(date('Y'), date('n'));
-
-$Wrapper = & new Calendar_Decorator_Wrapper($Month);
-$Wrapper->build();
-
-echo '
The Wrapper decorator
';
-echo 'Day numbers are rendered in bold
';
-while ($DecoratedDay = $Wrapper->fetch('MyBoldDecorator')) {
- echo $DecoratedDay->thisDay().' ';
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/19.php b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/19.php
deleted file mode 100644
index e46d10759..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/19.php
+++ /dev/null
@@ -1,24 +0,0 @@
-setFirstDay(0); // Make Sunday first Day
-
-echo 'Yesterday: '.$WeekDay->prevWeekDay().' ';
-echo 'Today: '.$WeekDay->thisWeekDay().' ';
-echo 'Tomorrow: '.$WeekDay->nextWeekDay().' ';
-
-$WeekDay->build();
-echo 'Hours today: ';
-while ( $Hour = $WeekDay->fetch() ) {
- echo $Hour->thisHour().' ';
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/19.phps b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/19.phps
deleted file mode 100644
index e46d10759..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/19.phps
+++ /dev/null
@@ -1,24 +0,0 @@
-setFirstDay(0); // Make Sunday first Day
-
-echo 'Yesterday: '.$WeekDay->prevWeekDay().' ';
-echo 'Today: '.$WeekDay->thisWeekDay().' ';
-echo 'Tomorrow: '.$WeekDay->nextWeekDay().' ';
-
-$WeekDay->build();
-echo 'Hours today: ';
-while ( $Hour = $WeekDay->fetch() ) {
- echo $Hour->thisHour().' ';
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/2.php b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/2.php
deleted file mode 100644
index 1f7654d70..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/2.php
+++ /dev/null
@@ -1,142 +0,0 @@
-build();
-
-// Construct strings for next/previous links
-$PMonth = $Month->prevMonth('object'); // Get previous month as object
-$prev = $_SERVER['PHP_SELF'].'?y='.$PMonth->thisYear().'&m='.$PMonth->thisMonth().'&d='.$PMonth->thisDay();
-$NMonth = $Month->nextMonth('object');
-$next = $_SERVER['PHP_SELF'].'?y='.$NMonth->thisYear().'&m='.$NMonth->thisMonth().'&d='.$NMonth->thisDay();
-?>
-
-
-
- Calendar
-
-
-
-
-
Build with Calendar_Month_Weeks::build() then Calendar_Week::build()
-
-
-getTimeStamp()); ?>
-
-
-
M
-
T
-
W
-
T
-
F
-
S
-
S
-
-fetch()) {
- echo "
\n";
- // Build the days in the week, passing the selected days
- $Week->build($selectedDays);
- while ($Day = $Week->fetch()) {
-
- // Build a link string for each day
- $link = $_SERVER['PHP_SELF'].
- '?y='.$Day->thisYear().
- '&m='.$Day->thisMonth().
- '&d='.$Day->thisDay();
-
- // Check to see if day is selected
- if ($Day->isSelected()) {
- echo '
'.$Day->thisDay().'
'."\n";
- // Check to see if day is empty
- } else if ($Day->isEmpty()) {
- echo '
-Took: '.(getmicrotime()-$start).' seconds';
-?>
-
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/2.phps b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/2.phps
deleted file mode 100644
index 1f7654d70..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/2.phps
+++ /dev/null
@@ -1,142 +0,0 @@
-build();
-
-// Construct strings for next/previous links
-$PMonth = $Month->prevMonth('object'); // Get previous month as object
-$prev = $_SERVER['PHP_SELF'].'?y='.$PMonth->thisYear().'&m='.$PMonth->thisMonth().'&d='.$PMonth->thisDay();
-$NMonth = $Month->nextMonth('object');
-$next = $_SERVER['PHP_SELF'].'?y='.$NMonth->thisYear().'&m='.$NMonth->thisMonth().'&d='.$NMonth->thisDay();
-?>
-
-
-
- Calendar
-
-
-
-
-
Build with Calendar_Month_Weeks::build() then Calendar_Week::build()
-
-
-getTimeStamp()); ?>
-
-
-
M
-
T
-
W
-
T
-
F
-
S
-
S
-
-fetch()) {
- echo "
\n";
- // Build the days in the week, passing the selected days
- $Week->build($selectedDays);
- while ($Day = $Week->fetch()) {
-
- // Build a link string for each day
- $link = $_SERVER['PHP_SELF'].
- '?y='.$Day->thisYear().
- '&m='.$Day->thisMonth().
- '&d='.$Day->thisDay();
-
- // Check to see if day is selected
- if ($Day->isSelected()) {
- echo '
'.$Day->thisDay().'
'."\n";
- // Check to see if day is empty
- } else if ($Day->isEmpty()) {
- echo '
\n";
- $Week->build();
-
- while ($Day = $Week->fetch()) {
- if ($Day->isEmpty()) {
- echo "
\n";
- } else {
- echo "
".$Day->thisDay()."
\n";
- }
- }
- }
- echo "
\n
\n";
-
- $i++;
-}
-?>
-
-
Took:
-
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/22.php b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/22.php
deleted file mode 100644
index 089c53606..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/22.php
+++ /dev/null
@@ -1,46 +0,0 @@
-The current month is '
- .$Calendar->thisMonth().' of year '.$Calendar->thisYear().'');
-
-$Uri = & new Calendar_Util_Uri('jahr','monat');
-$Uri->setFragments('jahr','monat');
-
-echo "\"Vector\" URIs
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/22.phps b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/22.phps
deleted file mode 100644
index 089c53606..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/22.phps
+++ /dev/null
@@ -1,46 +0,0 @@
-The current month is '
- .$Calendar->thisMonth().' of year '.$Calendar->thisYear().'');
-
-$Uri = & new Calendar_Util_Uri('jahr','monat');
-$Uri->setFragments('jahr','monat');
-
-echo "\"Vector\" URIs
';
-
-echo "Creating: new Calendar_Day(date('Y'), date('n'), date('d')); ";
-$Calendar = new Calendar_Day(date('Y'), date('n'), date('d'));
-
-echo 'Previous month is: '.Calendar_Util_Textual::prevMonthName($Calendar,'two').' ';
-echo 'This month is: '.Calendar_Util_Textual::thisMonthName($Calendar,'short').' ';
-echo 'Next month is: '.Calendar_Util_Textual::nextMonthName($Calendar).' ';
-echo 'Previous day is: '.Calendar_Util_Textual::prevDayName($Calendar).' ';
-echo 'This day is: '.Calendar_Util_Textual::thisDayName($Calendar,'short').' ';
-echo 'Next day is: '.Calendar_Util_Textual::nextDayName($Calendar,'one').' ';
-
-echo "Creating: new Calendar_Month_Weekdays(date('Y'), date('n'), 6); - Saturday is first day of week ";
-$Calendar = new Calendar_Month_Weekdays(date('Y'), date('n'), 6);
-
-?>
-
';
-
-echo "Creating: new Calendar_Day(date('Y'), date('n'), date('d')); ";
-$Calendar = new Calendar_Day(date('Y'), date('n'), date('d'));
-
-echo 'Previous month is: '.Calendar_Util_Textual::prevMonthName($Calendar,'two').' ';
-echo 'This month is: '.Calendar_Util_Textual::thisMonthName($Calendar,'short').' ';
-echo 'Next month is: '.Calendar_Util_Textual::nextMonthName($Calendar).' ';
-echo 'Previous day is: '.Calendar_Util_Textual::prevDayName($Calendar).' ';
-echo 'This day is: '.Calendar_Util_Textual::thisDayName($Calendar,'short').' ';
-echo 'Next day is: '.Calendar_Util_Textual::nextDayName($Calendar,'one').' ';
-
-echo "Creating: new Calendar_Month_Weekdays(date('Y'), date('n'), 6); - Saturday is first day of week ";
-$Calendar = new Calendar_Month_Weekdays(date('Y'), date('n'), 6);
-
-?>
-
New timestamp is: '.$Second->getTimeStamp().' which could be used to update a database, for example');
- }
-} else {
-$Year = new Calendar_Year($_POST['y']);
-$Month = new Calendar_Month($_POST['y'],$_POST['m']);
-$Day = new Calendar_Day($_POST['y'],$_POST['m'],$_POST['d']);
-$Hour = new Calendar_Hour($_POST['y'],$_POST['m'],$_POST['d'],$_POST['h']);
-$Minute = new Calendar_Minute($_POST['y'],$_POST['m'],$_POST['d'],$_POST['h'],$_POST['i']);
-$Second = new Calendar_Second($_POST['y'],$_POST['m'],$_POST['d'],$_POST['h'],$_POST['i'],$_POST['s']);
-?>
-
Set the alarm clock
-
-
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/8.phps b/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/8.phps
deleted file mode 100644
index f84887953..000000000
--- a/campcaster/src/tools/pear/src/docs/Calendar/docs/examples/8.phps
+++ /dev/null
@@ -1,70 +0,0 @@
-") ) {
- die('PHP 5 has problems with PEAR::SOAP Client (8.0RC3)
- - remove @ before include below to see why');
-}
-
-if (!@include('SOAP'.DIRECTORY_SEPARATOR.'Client.php')) {
- die('You must have PEAR::SOAP installed');
-}
-
-// Just to save manaul modification...
-$basePath = explode('/', $_SERVER['SCRIPT_NAME']);
-array_pop($basePath);
-$basePath = implode('/', $basePath);
-$url = 'http://'.$_SERVER['SERVER_NAME'].$basePath.'/7.php?wsdl';
-
-if (!isset($_GET['y'])) $_GET['y'] = date('Y');
-if (!isset($_GET['m'])) $_GET['m'] = date('n');
-
-$wsdl = new SOAP_WSDL ($url);
-
-echo ( '
1.php [src] - shows basic usage, passing all the way down from Calendar_Year to Calendar_Second - more of a quick test it's working
-
2.php [src] - shows how to build a tabular month using Calendar_Month_Weeks, Calendar_Week, Calendar_Day as well as selecting some dates.
-
3.php [src] - shows how to build a tabular month using Calendar_Month_Weekdays and Calendar_Day, as well as selecting some dates (this method is faster).
-
4.php [src] - shows how to use PEAR::Calendar for validation.
-
5.php [src] - shows PEAR::Calendar in use to help generate a form.
-
6.php [src] - a month and day "planner" calendar, which can be rendered both as HTML and WML.
-
7.php [src] - a simple SOAP Calendar Server, using PEAR::SOAP and PEAR::Calendar
-
8.php [src] - a WSDL SOAP client for the SOAP Calendar Server
-
9.php [src] - quick example of i18n with setlocale (not working on SF)
-
10.php [src] - an example of extending Calendar_Decorator to modify output
-
11.php [src] - attaching a "payload" (e.g. results of a DB query) to a calendar using Calendar_Decorator to allow the payload to be available inside the main loop.
16.php [src] - demonstrates using the Uri decorator. Note you should prefer Calendar_Util_Uri (see below) in most cases, for performance
-
17.php [src] - demonstrates using the Textual decorator
-
18.php [src] - demonstrates using the Wrapper decorator
-
19.php [src] - demonstrates using the Weekday decorator
-
20.php [src] - shows how to attach a "payload" spanning multiple days, with more than one entry per day
-
21.php [src] - same as 12.php but using Calendar_Month_Weeks instead of Calendar_Month_Weekdays to allow the week in the year or week in the month to be displayed.
-
22.php [src] - demonstrates use of Calendar_Util_Uri.
-
23.php [src] - demonstrates use of Calendar_Util_Textual.
-
-
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/DB/doc/IDEAS b/campcaster/src/tools/pear/src/docs/DB/doc/IDEAS
deleted file mode 100644
index afa661a30..000000000
--- a/campcaster/src/tools/pear/src/docs/DB/doc/IDEAS
+++ /dev/null
@@ -1,90 +0,0 @@
-Abstracted Types (Stig)
------------------------
-
-DB needs a set of types representing the most commonly used types in
-all backends. This type set could also be geared towards integration
-with things like XML-RPC/SOAP implementations, HTML form classes, etc.
-
-Real Query Parser (Stig)
-------------------------
-
-With a real query parser, DB can implement more of its portability
-based on the query, instead of having support functions for
-everything. One example would be LIMIT, another "INSERT
-... RETURNING".
-
-Portable transactions (Stig)
-----------------------------
-
-If DB can parse queries enough to determine what tables are affected
-by queries, it should be possible to make a replayable transaction
-log. GNOME uses an XML format for configuration data that lets you
-checkpoint state once in a while, and revert to that state later.
-With a similar approach for transactions in DB we can implement
-portable transactions and checkpointing even for the databases that
-don't support them.
-
-
-Error reporting clean-up/debug (Tomas)
--------------------------------------
-Now each driver has its own raiseError method, common has a raiseError and
-DB has a DB_error class and its own isError() method. This error stuff
-overhead could be simplified with only one raiseError, droping the DB Error
-class and also the DB::isError() (use the PEAR.php ones instead).
-Other idea could be to add a system for allowing people access to all the
-queries sended by PEAR DB to the backend. Also a new PEAR_ERROR_DEBUG
-flag that automatically (show|triggers) debug info, perhaps
-with a new PEAR_(Warning|Debug) object.
-
-Quote clean-up (Stig)
----------------------
-1. Keep quote and quoteString, but move quoting of strings back into
- quoteString and make quote call it for strings.
-
-2. Add an optional "operator" parameter to quote that is one of "=",
- "<", ">" or "<>" that will be inserted in front of the quoted value
- unless it is NULL, in which case it will be converted to "IS" (for
- "=") or "IS NOT" (for the others).
-
-Auto free statements (Tomas)
-----------------------------
-By setting a param in query() or for the hole DB instance, PEAR DB
-could auto-free results in DB_result->fetch(Into|Row) when the driver
-returns false.
-
-Datatypes in prepare syntax (Tomas)
------------------------------------
-Extend the actual prepare/execute placeholders to support data types, both
-to check the data introduced to the query and to "cast" the result
-to native php data types. Ex:
-
-$sql = "INSERT INTO table VALUES ({{int(4)}}, {{bool}}, {{date('Y-m-d')}})";
-$row = $db->query($sql, array(8, 't', '2001-04-1'));
-
-Format: {{(,)}}
-
-"param" could be the max lenght of the data, date formats, not_null
-checks or default values.
-
-Other ideas could be:
-
-1)
-$sql = "INSERT INTO table VALUES (?, ?, ?)";
-$sth = $db->prepare($sql, array('int(4)', 'bool', 'date');
-$res = $db->execute($sth, array($a, $b, $c);
-
-2)
-$sql = "INSERT INTO table VALUES (?, ?, ?)";
-$params = array(
- 0 => array($a, 'int(4)'),
- 1 => array($b, 'bool')
-);
-$res = $db->query($sql, $params);
-
-Auto connect feature (Tomas)
-----------------------------
-Add the ability to create for example a light and dump DB object which
-will only set up the connection when needed. With that people could
-create the DB object in a common prepend or default file without the
-need to waste system resources if the use of the database is finally
-not needed.
diff --git a/campcaster/src/tools/pear/src/docs/DB/doc/MAINTAINERS b/campcaster/src/tools/pear/src/docs/DB/doc/MAINTAINERS
deleted file mode 100644
index 750f6275f..000000000
--- a/campcaster/src/tools/pear/src/docs/DB/doc/MAINTAINERS
+++ /dev/null
@@ -1,16 +0,0 @@
-Maintainers for DB database backends/drivers:
-
-dbase : Daniel Convissor
-fbsql : Daniel Convissor
- Frank M. Kromann
-ibase : Daniel Convissor
-ifx : Daniel Convissor
-msql : Daniel Convissor
-mssql : Daniel Convissor
-mysql : Daniel Convissor
-mysqli : Daniel Convissor
-oci8 : Daniel Convissor
-odbc : Daniel Convissor
-pgsql : Daniel Convissor
-sqlite : Daniel Convissor
-sybase : Daniel Convissor
diff --git a/campcaster/src/tools/pear/src/docs/DB/doc/STATUS b/campcaster/src/tools/pear/src/docs/DB/doc/STATUS
deleted file mode 100644
index cabaeef56..000000000
--- a/campcaster/src/tools/pear/src/docs/DB/doc/STATUS
+++ /dev/null
@@ -1,93 +0,0 @@
-STATUS OF THE PEAR DB PACKAGE
-=============================
-
-$Id: STATUS,v 1.33 2005/02/22 15:45:36 danielc Exp $
-------------------------------------------------------------------------
-
-DB Driver Feature Matrix
-------------------------
-Symbols:
- x = implemented, but without tests
- t = implemented, but one or more tests fail
- T = implemented, passing all tests
- e = emulated, without tests
- l = emulated, but one or more tests fail
- E = emulated, passing all tests
- n = returns "not capable"
- - = no implementation of this feature or status unknown
-
- fbsql ifx mssql mysqli odbc sqlite
-FEATURE dbase | ibase | msql | mysql | oci8 | pgsql | sybase
-simpleQuery - T T T T T T T T T T T T
-numCols x T T T T T T T T T T T T
-numRows x T E E T T T T E T T T T
-errorNative n T T T T T T T T T T E T
-prepare/execute e E T E E E E E T E E E E
-sequences n T T n T T T T T E T E T
-affectedRows n T E E T T T T T T E T T
-fetch modes x T T T T T T T T T T T T
-fetch row by no x x n n x x x x n x x x x
-transactions - T T T n T T T T T T n T
-auto-commit n T E E n E E E E T E n E
-error mapping - T T T T T T T T T T T T
-tableInfo x T T t T T T T T T T T T
-
-getListOf() TYPES
-tables - T T T T T T T T T T T T
-views - T T - - T - - - T T - T
-users - T T - - - T T - - T - -
-databases - - - - T - T T - T T - -
-functions - T - - - - - - - - T - -
-synonyms - - - - - - - - T - - - -
-
-
-Test Conformance
-----------------
-Symbols:
- o = Test passed
- X = Test failed
- L = Some portions of the test failed due to limitations in PHP or DBMS
- n = Test returns "not capable"
- - = Not tested
-
- fbsql ifx mssql mysqli odbc sqlite
- dbase | ibase | msql | mysql | oci8 | pgsql | sybase
-01connect o o o o o o o o o o o o o
-02fetch - o o o o o o o o o o o o
-03simplequery - o o o o o o o o o o o o
-04numcols - o o o o o o o o o o o o
-05sequences - o o o o o o o o o o o o
-06prepexec - o o o L o o o o o o o o
-08affectedrows - o o o o o o o o o o o o
-09numrows - o o o o o o o o o o o o
-10errormap - o o o o o o o o o o o o
-11transactions - o o o n o o o o o o n o
-13limit - o o o o o o o o o o o o
-14fetchmode_obje - o o o o o o o o o o o o
-15quote - o o o o o o o o o o o o
-16tableinfo - o o L o o o o o o o o o
-17query - o o o o o o o o o o o o
-18get - o o o o o o o o o o o o
-19getlistof - o o o o o o o o o o o o
-
-
-DBMS Versions Tested
---------------------
-dbase n/a
-fbsql 4.1.6
-ibase Firebird 1.5.1 (PHP 5 only)
-ifx 7.2 Standard Edtition
-msql 3.6 (PHP snapshots dated 2005-02-18)
-mssql 8.0.760
-mysql 4.0.21
-mysqli 4.1.5 (PHP 5 only)
-oci8 9.2
-odbc DB2 ESE 8.1 and MS Access 2000
-pgsql 7.4.1 and 8.0.1
-sqlite PHP 5: extension. PHP 4: PECL snapshot.
-sybase ASE 12.5.3
-
-Tests were performed under both of the following PHP versions
-unles otherwise noted:
- 4.3.11-dev dated 2005-02-22
- 5.1.0-dev dated 2005-02-22
diff --git a/campcaster/src/tools/pear/src/docs/DB/doc/TESTERS b/campcaster/src/tools/pear/src/docs/DB/doc/TESTERS
deleted file mode 100644
index 0eb4b20f7..000000000
--- a/campcaster/src/tools/pear/src/docs/DB/doc/TESTERS
+++ /dev/null
@@ -1,156 +0,0 @@
-===================
-HOW TO TEST PEAR DB
-===================
-
-$Id: TESTERS,v 1.20 2005/02/16 06:33:12 danielc Exp $
-
-
-INTRODUCTION
-============
-
-These are instructions for testing PEAR DB on a Windows machine using a
-Cygwin Bash shell. Adjust the paths and commands to match your system.
-This configuration is used because these precise steps are known to work.
-
-NOTE: You must log on as a user which has permissions to modify the
-contents of your PHP executable's directory. This is necessary for both
-configuring AND running the test system.
-
-
-INSTALLATION
-============
-
-Obtain PHP's Test Framework
----------------------------
-If you don't have PHP's test framework, you need to obtain it. These
-steps include changing the working directory, downloading run-tests.php
-via CVS and copying the file into place. Change the revision flag in the
-CVS command as appropriate for your present version of PHP.
-
- cd c:/progra~1/php
- cvs -d :pserver:cvsread@cvs.php.net:/repository login # password is phpfi
- cvs -d :pserver:cvsread@cvs.php.net:/repository co -r PHP_4_3 \
- -d test php-src/run-tests.php
- cp test/run-tests.php .
- rm -rf test
-
-
-Obtain DB and its Test Framework
---------------------------------
-* IF PEAR DB IS ALREADY INSTALLED:
-
- If you have PEAR DB installed already, good. The test suite
- is in place. Open up a command/shell prompt and move into
- the test directory.
-
- cd /tests/DB/tests
-
-* VIA A NEW INSTALLATION USING THE PEAR INSTALLER:
-
- Installing PEAR has gotten fairly easy. Follow the instructions
- from the manual: http://pear.php.net/manual/en/installation.php
- Once PEAR and DB are installed, move to the test directory.
-
- cd pear/tests/DB/tests
-
-* VIA CVS:
-
- Create a location to store the test installation of DB and its
- test scripts.
-
- mkdir d:/peartest
- cd d:/peartest
- cvs -d :pserver:cvsread@cvs.php.net:/repository co -P pear/DB
-
- We assume you already have the PEAR base package installed. If
- you don't, you will need to do so, but the instructions for
- doing that are beyond the scope of this document. See
- http://pear.php.net/manual/en/installation.php for more info.
-
- Move to the test directory.
-
- cd pear/DB/tests
-
-
-Copy the Starter Shell Script and Edit the Paths
-------------------------------------------------
-To make starting up each test run easier, we have included two shell
-scripts. The original files are named "run.cvs". They need to be
-renamed to "run" so CVS won't bother you with tracking them. Then,
-the paths and file names in them need to be set to those used by
-your system.
-
- cp run.cvs run
- chmod 755 run
- vi run
-
- cd driver
- cp run.cvs run
- chmod 755 run
- vi run
-
-
-Copy the Setup File and Edit the DSN's
---------------------------------------
-The test suite contains a file that stores the DSN's needed to
-connect to your database. The original file is "setup.inc.cvs"
-and it needs to be renamed "setup.inc" so CVS won't track it.
-Then you'll need to edit the DSN's in it.
-
- cp setup.inc.cvs setup.inc
- vi setup.inc
-
-
-RUN THE TESTS
-=============
-
-To run all tests: ./run
-To run one test: ./run
-Example: ./run db_parsedsn.phpt
-
-
-Test Types and Locations
-------------------------
-tests Common PEAR DB tests
-tests/driver Common tests for all the drivers
-
-
-Results and What To Do With Them
---------------------------------
-Each test that fails generates a .php (which you can execute), a .exp
-(the expected output), a .out (the test output) and a .diff (a diff -u
-from the .exp and .out files).
-
-If you run the tests, please report or fill the TEST CONFORMANCE table
-in the STATUS document. Before any commit to CVS be sure to run the
-tests and nothing got broken with the change.
-
-If you get the message "SKIP", means that the test it's not executed.
-Look at the DB/tests/driver/skipif.inc to see what's the problem
-(probably a connection problem).
-
-
-DB TESTER MATRIX
-================
- fbsql ifx mssql mysqli odbc sqlite
-TESTER dbase | ibase | msql | mysql | oci8 | pgsql | sybase
-John Horton - - - X - - - - - - - - -
-Tim Zickus - - - - - - - - X - - - -
-Tim Parkin - - - - - - - - X - - - -
-Paul Gardiner - - - X - - - - - - - - -
-peterwb@iafrica.com - - - X - - - - - - - - -
-Daniel, Adam - - - - - - - - X - - - -
-szii@sziisoft.com - - - - - - - - - X¹ - - -
-jmh3@linuxfreak.com - - - - - - - - - - X - -
-Kevin Henrikson - - - - - - - - X - - - -
-Stig Bakken - - - - - - X - - - X - -
-Chuck Hagenbuch - - - - - X - - - - - - -
-Ludovico Magnocavallo - - X - - - - - - - - - -
-Daniel Convissor X X X - X X X X X X² X X X
-
-MISSING TESTERS - - - - - - - - - - - - -
-
-Comments:
-
-[1]: ODBC using IBM DB2
-[2]: ODBC using IBM DB2 and MS Access
diff --git a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/elements.php b/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/elements.php
deleted file mode 100644
index 93fd51ded..000000000
--- a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/elements.php
+++ /dev/null
@@ -1,154 +0,0 @@
-
-* @author Bertrand Mansion
-* @author Alexey Borzov
-* @version 3.2
-*
-* $Id: elements.php,v 1.2 2004/03/22 10:05:09 mansion Exp $
-*/
-
-require_once 'HTML/QuickForm.php';
-
-$form =& new HTML_QuickForm('frmTest', 'get');
-
-// Use a two-label template for the elements that require some comments
-$twoLabel = <<<_HTML
-
-
- *{label}
-
-
- {error} {element}
- {label_2}
-
-
-_HTML;
-
-$renderer =& $form->defaultRenderer();
-$renderer->setElementTemplate($twoLabel, 'iadvChk');
-$renderer->setElementTemplate($twoLabel, 'iautoComp');
-
-// Fills with some defaults values
-$form->setDefaults(array(
- 'itxtTest' => 'Test Text Box',
- 'itxaTest' => 'Hello World',
- 'ichkTest' => true,
- 'iradTest' => 1,
- 'iselTest' => array('B', 'C'),
- 'name' => array('first'=>'Adam', 'last'=>'Daniel'),
- 'phoneNo' => array('513', '123', '3456'),
- 'iradYesNo' => 'Y',
- 'ichkABC' => array('A'=>true,'B'=>true),
- 'dateTest1' => array('d'=>11, 'm'=>1, 'Y'=>2003)
-));
-
-$form->setConstants(array(
- 'dateTest3' => time()
-));
-
-// Elements will be displayed in the order they are declared
-$form->addElement('header', '', 'Normal Elements');
-// Classic form elements
-$form->addElement('hidden', 'ihidTest', 'hiddenField');
-$form->addElement('text', 'itxtTest', 'Test Text:');
-$form->addElement('textarea', 'itxaTest', 'Test TextArea:', array('rows' => 3, 'cols' => 20));
-$form->addElement('password', 'ipwdTest', 'Test Password:');
-$form->addElement('checkbox', 'ichkTest', 'Test CheckBox:', 'Check the box');
-$form->addElement('radio', 'iradTest', 'Test Radio Buttons:', 'Check the radio button #1', 1);
-$form->addElement('radio', 'iradTest', '(Not a group)', 'Check the radio button #2', 2);
-$form->addElement('button', 'ibtnTest', 'Test Button', array('onclick' => "alert('This is a test');"));
-$form->addElement('reset', 'iresTest', 'Test Reset');
-$form->addElement('submit', 'isubTest', 'Test Submit');
-$form->addElement('image', 'iimgTest', 'http://pear.php.net/gifs/pear-icon.gif');
-$select =& $form->addElement('select', 'iselTest', 'Test Select:', array('A'=>'A', 'B'=>'B','C'=>'C','D'=>'D'));
-$select->setSize(5);
-$select->setMultiple(true);
-
-$form->addElement('header', '', 'Custom Elements');
-// Date elements
-$form->addElement('date', 'dateTest1', 'Date1:', array('format'=>'dmY', 'minYear'=>2010, 'maxYear'=>2001));
-$form->addElement('date', 'dateTest2', 'Date2:', array('format'=>'d-F-Y H:i', 'language'=>'de', 'optionIncrement' => array('i' => 5)));
-$form->addElement('date', 'dateTest3', 'Today is:', array('format'=>'l d M Y'));
-
-$main[0] = "Pop";
-$main[1] = "Rock";
-$main[2] = "Classical";
-
-$secondary[0][0] = "Belle & Sebastian";
-$secondary[0][1] = "Elliot Smith";
-$secondary[0][2] = "Beck";
-$secondary[1][3] = "Noir Desir";
-$secondary[1][4] = "Violent Femmes";
-$secondary[2][5] = "Wagner";
-$secondary[2][6] = "Mozart";
-$secondary[2][7] = "Beethoven";
-
-$opts[] = $main;
-$opts[] = $secondary;
-
-$hs =& $form->addElement('hierselect', 'ihsTest', 'Hierarchical select:', array('style' => 'width: 20em;'), ' ');
-$hs->setOptions($opts);
-
-$form->addElement('advcheckbox', 'iadvChk', array('Advanced checkbox:', 'Unlike standard checkbox, this element has a value when it is not checked.'), 'Check the box', null, array('off', 'on'));
-
-$form->addElement('autocomplete', 'iautoComp', array('Your favourite fruit:', 'This is autocomplete element. Start typing and see how it suggests possible completions.'), array('Pear', 'Orange', 'Apple'), array('size' => 30));
-
-
-$form->addElement('header', '', 'Grouped Elements');
-// Grouped elements
-$name['last'] = &HTML_QuickForm::createElement('text', 'last', null, array('size' => 30));
-$name['first'] = &HTML_QuickForm::createElement('text', 'first', null, array('size' => 20));
-$form->addGroup($name, 'name', 'Name (last, first):', ', ');
-// Creates a group of text inputs
-$areaCode = &HTML_QuickForm::createElement('text', '', null, array('size' => 3, 'maxlength' => 3));
-$phoneNo1 = &HTML_QuickForm::createElement('text', '', null, array('size' => 3, 'maxlength' => 3));
-$phoneNo2 = &HTML_QuickForm::createElement('text', '', null, array('size' => 4, 'maxlength' => 4));
-$form->addGroup(array($areaCode, $phoneNo1, $phoneNo2), 'phoneNo', 'Telephone:', '-');
-
-// Creates a radio buttons group
-$radio[] = &HTML_QuickForm::createElement('radio', null, null, 'Yes', 'Y');
-$radio[] = &HTML_QuickForm::createElement('radio', null, null, 'No', 'N');
-$form->addGroup($radio, 'iradYesNo', 'Yes/No:');
-
-// Creates a checkboxes group
-$checkbox[] = &HTML_QuickForm::createElement('checkbox', 'A', null, 'A');
-$checkbox[] = &HTML_QuickForm::createElement('checkbox', 'B', null, 'B');
-$checkbox[] = &HTML_QuickForm::createElement('checkbox', 'C', null, 'C');
-$form->addGroup($checkbox, 'ichkABC', 'ABC:', ' ');
-// Creates a group of buttons to be displayed at the bottom of the form
-$buttons[] = &HTML_QuickForm::createElement('submit', null, 'Submit');
-$buttons[] = &HTML_QuickForm::createElement('reset', null, 'Reset');
-$buttons[] = &HTML_QuickForm::createElement('image', 'iimgTest', 'http://pear.php.net/gifs/pear-icon.gif');
-$buttons[] = &HTML_QuickForm::createElement('button', 'ibutTest', 'Test Button', array('onClick' => "alert('This is a test');"));
-$form->addGroup($buttons, null, null, ' ', false);
-
-
-// applies new filters to the element values
-$form->applyFilter('__ALL__', 'trim');
-// Adds some validation rules
-$form->addRule('itxtTest', 'Test Text is a required field', 'required');
-$form->addRule('itxaTest', 'Test TextArea is a required field', 'required');
-$form->addRule('itxaTest', 'Test TextArea must be at least 5 characters', 'minlength', 5);
-$form->addRule('ipwdTest', 'Password must be between 8 to 10 characters', 'rangelength', array(8, 10));
-
-// Tries to validate the form
-if ($form->validate()) {
- // Form is validated, then processes the data
- $form->freeze();
- $form->process('myProcess', false);
- echo "\n\n";
-}
-
-// Process callback
-function myProcess($values)
-{
- echo '
';
- var_dump($values);
- echo '
';
-}
-
-$form->display();
-?>
diff --git a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/filters.php b/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/filters.php
deleted file mode 100644
index 08f15d4f0..000000000
--- a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/filters.php
+++ /dev/null
@@ -1,61 +0,0 @@
-addElement('text', 'txtTest', 'Test Text to trim:');
-$form->addRule('txtTest', 'Test text is required', 'required');
-
-$phoneGrp[] =& $form->createElement('text', '', null, array('size' => 3, 'maxlength' => 3));
-$phoneGrp[] =& $form->createElement('text', '', null, array('size' => 3, 'maxlength' => 3));
-$phoneGrp[] =& $form->createElement('text', '', null, array('size' => 4, 'maxlength' => 4));
-$form->addGroup($phoneGrp, 'phone', 'Telephone (will be converted to numbers):', '-');
-$form->addGroupRule('phone', 'The phone is required', 'required', null, 3);
-
-$form->addElement('text', 'txtAustin', 'Text for custom filter:');
-$form->addRule('txtAustin', 'Custom filter text is required', 'required');
-
-$form->addElement('submit', 'isubTest', 'Submit');
-
-// now we apply the filters
-$form->applyFilter('txtTest', 'trim');
-// the filter will be applied recursively
-$form->applyFilter('phone', 'intval');
-
-if ($form->validate()) {
- // Here the filter is applied after validation
- $form->applyFilter('txtAustin', '_filterAustin');
-
- echo "
';
-
-// Wrap the form and any remaining elements (i.e. hidden elements) into the form tags.
-echo $renderer->toHtml($data);
-
-echo "\nSubmitted Values: \n";
-echo "
";
-print_r($_POST);
-// {{{ createElements()
-
-// creates all the fields for the form
-function createElements(&$form)
-{
- // select list array
- $selectListArray = array(
- 'windows' => 'Windows',
- 'linux' => 'Linux',
- 'irix' => 'Irix',
- 'mac' => 'Mac',
- );
-
- $form->addElement('text','tmp_text[array]',null,array('size' => 10));
- $form->addElement('hidden','tmp_hidden', 'value');
- $form->addElement('textarea','tmp_textarea',null,array('cols' => 50, 'rows' => 10, 'wrap' => 'virtual'));
- $form->addElement('radio','tmp_radio',null,null,'Y');
- $form->addElement('radio','tmp_radio',null,null,'N');
- $text = array();
- $text[] =& HTML_QuickForm::createElement('text','',null,array('size' => 3));
- $text[] =& HTML_QuickForm::createElement('text','',null,array('size' => 4));
- $text[] =& HTML_QuickForm::createElement('text','',null,array('size' => 3));
- $form->addGroup($text, 'phone_num', null, '-');
- $form->addElement('advcheckbox','tmp_checkbox',null,'Please Check',null,array('not checked', 'checked'));
- $form->addElement('date', 'tmp_date', null, array('format'=>'D d M Y'));
- $form->addElement('select', 'tmp_multipleSelect[0]', null, $selectListArray, array('multiple' => 'multiple', 'size' => 4));
- $form->addElement('reset','tmp_reset','Reset Form');
- $form->addElement('submit','tmp_submit','Submit Form');
- $form->addRule('tmp_text[array]','Text length must be greater than 10','minlength',10,'client');
-}
-
-// }}}
-// {{{ setValues()
-
-// sets all the default and constant values for the form
-function setValues(&$form)
-{
- // Fills with some defaults values
- $defaultValues['tmp_textarea'] = '
-Test Text Area
-
-With line breaks';
- $defaultValues['phone_num'] = array('513', '123', '3456');
- $defaultValues['tmp_checkbox'] = 'checked';
- $defaultValues['tmp_multipleSelect'][0] = array('linux', 'mac');
- // Fill with some constant values.
- // Constant is not overridden by POST, GET, or defaultValues
- // when values are being filled in
- $constantValues['tmp_radio'] = 'Y';
- $constantValues['tmp_date'] = time();
- $constantValues['tmp_text']['array'] = 'constant';
-
- $form->setDefaults($defaultValues);
- $form->setConstants($constantValues);
-}
-
-// }}}
-// {{{ createHeaderCell()
-
-// creates a header cell
-function createHeaderCell($text, $align, $colspan = 1)
-{
- return '
' . $text . '
';
-}
-
-// }}}
-// {{{ createFormCell()
-
-// creates a form cell based on the element name
-function createFormCell($elementHtml, $align, $colspan = 1)
-{
- return '
' .
- $elementHtml .
- '
';
-}
-
-// }}}
-?>
-
-
diff --git a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/SmartyDynamic_example.php b/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/SmartyDynamic_example.php
deleted file mode 100644
index b09c6581c..000000000
--- a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/SmartyDynamic_example.php
+++ /dev/null
@@ -1,108 +0,0 @@
-
- * @author Alexey Borzov
- *
- * $Id: SmartyDynamic_example.php,v 1.4 2004/10/15 20:31:00 ths Exp $
- */
-
-require_once 'HTML/QuickForm.php';
-require_once 'HTML/QuickForm/Renderer/Array.php';
-// fix this if your Smarty is somewhere else
-require_once 'Smarty.class.php';
-
-$form = new HTML_QuickForm('frmTest', 'post');
-
-$form->setDefaults(array(
- 'itxtTest' => 'Test Text Box',
- 'itxaTest' => 'Hello World',
- 'iselTest' => array('B', 'C'),
- 'name' => array('first' => 'Thomas', 'last' => 'Schulz'),
- 'iradYesNo' => 'Y',
- 'ichkABCD' => array('A'=>true,'D'=>true)
-));
-
-$form->addElement('header', '', 'Normal Elements');
-
-$form->addElement('hidden', 'ihidTest', 'hiddenField');
-
-$form->addElement('text', 'itxtTest', array('Test Text', 'note' => 'Note for Testtext element.'));
-
-$form->addElement('textarea', 'itxaTest', 'Test TextArea', 'cols="40" rows="2"');
-
-// will be later assigned to style green
-$form->addElement('password', 'ipwdTest', 'Test Password');
-$select =& $form->addElement(
- 'select',
- 'iselTest',
- array('Test Select', 'note' => 'We recommend to check at least two categories!'),
- array('A'=>'A * * * * (luxory)', 'B'=>'B * * *','C'=>'C * *','D'=>'D * (simple)')
- );
-$select->setSize(4);
-$select->setMultiple(true);
-
-$form->addElement('submit', 'isubTest', 'Test Submit');
-
-$form->addElement('header', '', 'Grouped Elements');
-
-$checkbox[] = &HTML_QuickForm::createElement('checkbox', 'A', null, 'A');
-$checkbox[] = &HTML_QuickForm::createElement('checkbox', 'B', null, 'B');
-$checkbox[] = &HTML_QuickForm::createElement('checkbox', 'C', null, 'C');
-$checkbox[] = &HTML_QuickForm::createElement('checkbox', 'D', null, 'D');
-$form->addGroup($checkbox, 'ichkABCD', 'ABCD', array(' ', ' '));
-
-// will be later assigned to style fancygroup
-$radio[] = &HTML_QuickForm::createElement('radio', null, null, 'Yes', 'Y');
-$radio[] = &HTML_QuickForm::createElement('radio', null, null, 'No', 'N');
-$form->addGroup($radio, 'iradYesNo', 'Yes/No');
-
-// will be later assigned to style fancygroup
-$name['first'] = &HTML_QuickForm::createElement('text', 'first', 'First:');
-$name['first']->setSize(20);
-$name['last'] = &HTML_QuickForm::createElement('text', 'last', 'Last:');
-$name['last']->setSize(30);
-$form->addGroup($name, 'name', 'Name');
-
-// add some 'required' rules to show "stars" and (possible) errors...
-$form->addRule('itxtTest', 'Test Text is a required field', 'required');
-$form->addRule('itxaTest', 'Test TextArea is a required field', 'required');
-$form->addGroupRule('iradYesNo', 'Check Yes or No', 'required');
-$form->addGroupRule('name', array('last' => array(array('Last name is required', 'required'))));
-
-// try to validate the form
-if ($form->validate()) {
- $form->freeze();
-}
-
-$renderer =& new HTML_QuickForm_Renderer_Array(true, true);
-
-// give some elements aditional style informations
-$renderer->setElementStyle(array(
- 'ipwdTest' => 'green',
- 'iradYesNo' => 'fancygroup',
- 'name' => 'fancygroup'
-));
-
-$form->accept($renderer);
-
-// setup a template object
-$tpl =& new Smarty;
-$tpl->template_dir = './templates';
-$tpl->compile_dir = './templates';
-
-// assign array with form data
-$tpl->assign('form', $renderer->toArray());
-
-// capture the array stucture
-// (only for showing in sample template)
-ob_start();
-print_r($renderer->toArray());
-$tpl->assign('dynamic_array', ob_get_contents());
-ob_end_clean();
-
-// render and display the template
-$tpl->display('smarty-dynamic.tpl');
-
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/SmartyStatic_example.php b/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/SmartyStatic_example.php
deleted file mode 100644
index c10339ca7..000000000
--- a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/SmartyStatic_example.php
+++ /dev/null
@@ -1,137 +0,0 @@
-
- * @author Thomas Schulz
- *
- * $Id: SmartyStatic_example.php,v 1.4 2004/10/15 20:31:00 ths Exp $
- */
-
-require_once 'HTML/QuickForm.php';
-require_once 'HTML/QuickForm/Renderer/ArraySmarty.php';
-// fix this if your Smarty is somewhere else
-require_once 'Smarty.class.php';
-
-// Form name will be used to find the placeholders.
-
-$form = new HTML_QuickForm('form', 'POST');
-
-// Fills with some defaults values
-
-$defaultValues['company'] = 'Mamasam';
-$defaultValues['country'] = array();
-$defaultValues['name'] = array('first'=>'Bertrand', 'last'=>'Mansion');
-$defaultValues['phone'] = array('513', '123', '4567');
-$form->setDefaults($defaultValues);
-
-// Hidden
-
-$form->addElement('hidden', 'session', '1234567890');
-
-// Personal information
-
-$form->addElement('header', 'personal', 'Personal Information');
-
-$form->addElement('hidden', 'ihidTest', 'hiddenField');
-$form->addElement('text', 'email', 'Your email:');
-$form->addElement('password', 'pass', array('Your password:', 'note'=>'Please, choose a 8-10 characters password.'), 'size=10');
-$name['last'] = &HTML_QuickForm::createElement('text', 'first', 'First', 'size=10');
-$name['first'] = &HTML_QuickForm::createElement('text', 'last', 'Last', 'size=10');
-$form->addGroup($name, 'name', 'Name:', ', ');
-$areaCode = &HTML_QuickForm::createElement('text', '', null,'size=4 maxlength=3');
-$phoneNo1 = &HTML_QuickForm::createElement('text', '', null, 'size=4 maxlength=3');
-$phoneNo2 = &HTML_QuickForm::createElement('text', '', null, 'size=5 maxlength=4');
-$form->addGroup(array($areaCode, $phoneNo1, $phoneNo2), 'phone', 'Telephone:', '-');
-
-// Company information
-
-$form->addElement('header', 'company_info', 'Company Information');
-
-$form->addElement('text', 'company', 'Company:', 'size=20');
-
-$str[] = &HTML_QuickForm::createElement('text', '', null, 'size=20');
-$str[] = &HTML_QuickForm::createElement('text', '', null, 'size=20');
-$form->addGroup($str, 'street', 'Street:', ' ');
-
-$addr['zip'] = &HTML_QuickForm::createElement('text', 'zip', 'Zip', 'size=6 maxlength=10');
-$addr['city'] = &HTML_QuickForm::createElement('text', 'city', 'City', 'size=15');
-$form->addGroup($addr, 'address', 'Zip, city:');
-
-$select = array('' => 'Please select...', 'AU' => 'Australia', 'FR' => 'France', 'DE' => 'Germany', 'IT' => 'Italy');
-$form->addElement('select', 'country', 'Country:', $select);
-
-$checkbox[] = &HTML_QuickForm::createElement('checkbox', 'A', null, 'A');
-$checkbox[] = &HTML_QuickForm::createElement('checkbox', 'B', null, 'B');
-$checkbox[] = &HTML_QuickForm::createElement('checkbox', 'C', null, 'C');
-$checkbox[] = &HTML_QuickForm::createElement('checkbox', 'D', null, 'D');
-$form->addGroup($checkbox, 'destination', 'Destination:', array(' ', ' '));
-
-// Other elements
-
-$form->addElement('checkbox', 'news', '', " Check this box if you don't want to receive our newsletter.");
-
-$form->addElement('reset', 'reset', 'Reset');
-$form->addElement('submit', 'submit', 'Register');
-
-// Adds some validation rules
-
-$form->addRule('email', 'Email address is required', 'required');
-$form->addGroupRule('name', 'Name is required', 'required');
-$form->addRule('pass', 'Password must be between 8 to 10 characters', 'rangelength', array(8, 10));
-$form->addRule('country', 'Country is a required field', 'required');
-$form->addGroupRule('destination', 'Please check at least two boxes', 'required', null, 2);
-$form->addGroupRule('phone', 'Please fill all phone fields', 'required');
-$form->addGroupRule('phone', 'Values must be numeric', 'numeric');
-
-$AddrRules['zip'][0] = array('Zip code is required', 'required');
-$AddrRules['zip'][1] = array('Zip code is numeric only', 'numeric');
-$AddrRules['city'][0] = array('City is required', 'required');
-$AddrRules['city'][1] = array('City is letters only', 'lettersonly');
-$form->addGroupRule('address', $AddrRules);
-
-// Tries to validate the form
-if ($form->validate()) {
- // Form is validated, then freezes the data
- $form->freeze();
-}
-
-// setup a template object
-$tpl =& new Smarty;
-$tpl->template_dir = './templates';
-$tpl->compile_dir = './templates';
-
-$renderer =& new HTML_QuickForm_Renderer_ArraySmarty($tpl, true);
-
-$renderer->setRequiredTemplate(
- '{if $error}
- {$label|upper}
- {else}
- {$label}
- {if $required}
- *
- {/if}
- {/if}'
- );
-
-$renderer->setErrorTemplate(
- '{if $error}
- {$error}
- {/if}{$html}'
- );
-
-$form->accept($renderer);
-
-// assign array with form data
-$tpl->assign('form', $renderer->toArray());
-
-// capture the array stucture
-ob_start();
-print_r($renderer->toArray());
-$tpl->assign('static_array', ob_get_contents());
-ob_end_clean();
-
-// render and display the template
-$tpl->display('smarty-static.tpl');
-
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/multiple-labels.php b/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/multiple-labels.php
deleted file mode 100644
index 6451568dc..000000000
--- a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/multiple-labels.php
+++ /dev/null
@@ -1,46 +0,0 @@
-
- *
- * $Id: multiple-labels.php,v 1.1 2004/03/06 12:03:50 avb Exp $
- */
-
-require_once 'HTML/QuickForm.php';
-
-$template =
-'
-
- *
- {label}
-
-
- {element}
- {error}
- {label_2}
-
-
';
-
-// Create the form, and add a header to it.
-$form = new HTML_QuickForm('labels_example', 'post');
-$form->addHeader('QuickForm Labels Example');
-
-// Do the magic! Just pass your label to the element as an array!
-$form->addElement('text', 'name', array('Name', 'The name that you would like to enter in this element.'));
-$form->addElement('checkbox', 'check', array('Check Me!', 'If you check this box, it will have tick in it.'));
-
-// More boring stuff.
-$form->addElement('submit', null, 'Submit');
-
-if ($form->validate()) {
- $form->freeze();
-}
-
-// customize the element template
-$renderer =& $form->defaultRenderer();
-$renderer->setElementTemplate($template);
-
-// output the form
-$form->display();
-?>
diff --git a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/flexy-dynamic.html b/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/flexy-dynamic.html
deleted file mode 100644
index fd3df2b1e..000000000
--- a/campcaster/src/tools/pear/src/docs/HTML_QuickForm/docs/renderers/templates/flexy-dynamic.html
+++ /dev/null
@@ -1,129 +0,0 @@
-
-
-
-
- Flexy template for Object renderer
-
-
-
-
-
-{form.javascript:h}
-
-{form.outputHeader():h}
-
Collected Errors:
-{foreach:form.errors,name,error}
- {error:h} in element [{name:h}]
-{end:}
-
-
-
-
Best Practice:
-Use only one dynamic form template like this for your
-Flexy driven project. You include this where
-to place a form with the formdata object rendered by
-Object QuickForm Renderer as option:
Collected Errors:
-{foreach key=name item=error from=$form.errors}
- {$error} in element [{$name}]
-{/foreach}
-
-
-
-
Best Practice:
-Use only one dynamic form template like this for your
-Smarty driven project. You include this where
-to place a form with the formdata-Array rendered by
-SmartyDynamic QuickForm Renderer as option:
";
-?>
diff --git a/campcaster/src/tools/pear/src/docs/XML_Beautifier/examples/test.xml b/campcaster/src/tools/pear/src/docs/XML_Beautifier/examples/test.xml
deleted file mode 100644
index c9764039d..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Beautifier/examples/test.xml
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-]>
-
-
-
-Stephan Schmidt
-
-
-
-";
- }
-?>
-&foo;&bar;
-
-
- Welcome to PHP
-Application Tools & PEAR!
-
- If you're new to pat, and would like
-
- to know
-
- what we do
-
- here, take a look at
-
-
- "About Pat"
-or
-check out the
-"projects overview". Otherwise, you probably know your way
-around
-the site already
-
-
-
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_file.php b/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_file.php
deleted file mode 100644
index a659db608..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_file.php
+++ /dev/null
@@ -1,54 +0,0 @@
-
- * @package XML_Parser
- * @subpackage Examples
- */
-
-/**
- * require the parser
- */
-require_once 'XML/Parser.php';
-
-class myParser extends XML_Parser
-{
-
- function myParser()
- {
- parent::XML_Parser();
- }
-
- /**
- * handle start element
- *
- * @access private
- * @param resource xml parser resource
- * @param string name of the element
- * @param array attributes
- */
- function startHandler($xp, $name, $attribs)
- {
- printf('handle start tag: %s ', $name);
- }
-
- /**
- * handle start element
- *
- * @access private
- * @param resource xml parser resource
- * @param string name of the element
- * @param array attributes
- */
- function endHandler($xp, $name)
- {
- printf('handle end tag: %s ', $name);
- }
-}
-
-$p = &new myParser();
-
-$result = $p->setInputFile('xml_parser_file.xml');
-$result = $p->parse();
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_file.xml b/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_file.xml
deleted file mode 100644
index f59af027c..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_file.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
- content of bar
-
- test
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_handler.php b/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_handler.php
deleted file mode 100644
index c6c5d036f..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_handler.php
+++ /dev/null
@@ -1,50 +0,0 @@
-
- * @package XML_Parser
- * @subpackage Examples
- */
-
-/**
- * require the parser
- */
-require_once 'XML/Parser.php';
-
-class myHandler
-{
- /**
- * handle start element
- *
- * @access private
- * @param resource xml parser resource
- * @param string name of the element
- * @param array attributes
- */
- function startHandler($xp, $name, $attribs)
- {
- printf('handle start tag: %s ', $name);
- }
-
- /**
- * handle start element
- *
- * @access private
- * @param resource xml parser resource
- * @param string name of the element
- * @param array attributes
- */
- function endHandler($xp, $name)
- {
- printf('handle end tag: %s ', $name);
- }
-}
-
-$p = &new XML_Parser();
-$h = &new myHandler();
-
-$result = $p->setInputFile('xml_parser_file.xml');
-$result = $p->setHandlerObj($h);
-$result = $p->parse();
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple1.php b/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple1.php
deleted file mode 100644
index 6eb4d896d..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple1.php
+++ /dev/null
@@ -1,50 +0,0 @@
-
- * @package XML_Parser
- * @subpackage Examples
- */
-
-/**
- * require the parser
- */
-require_once 'XML/Parser/Simple.php';
-
-class myParser extends XML_Parser_Simple
-{
- function myParser()
- {
- $this->XML_Parser_Simple();
- }
-
- /**
- * handle the element
- *
- * The element will be handled, once it's closed
- *
- * @access private
- * @param string name of the element
- * @param array attributes of the element
- * @param string character data of the element
- */
- function handleElement($name, $attribs, $data)
- {
- printf('handling %s in tag depth %d ', $name, $this->getCurrentDepth());
- printf('character data: %s ', $data );
- print 'Attributes: ';
- print '
';
- print_r( $attribs );
- print '
';
- print ' ';
- }
-}
-
-$p = &new myParser();
-
-$result = $p->setInputFile('xml_parser_simple1.xml');
-$result = $p->parse();
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple1.xml b/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple1.xml
deleted file mode 100644
index 0696ef670..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple1.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
- content of bar
-
-
- test
- pizza
-
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple2.php b/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple2.php
deleted file mode 100644
index f9f80fb46..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple2.php
+++ /dev/null
@@ -1,59 +0,0 @@
-
- * @package XML_Parser
- * @subpackage Examples
- */
-
-/**
- * require the parser
- */
-require_once 'XML/Parser/Simple.php';
-
-class myParser2 extends XML_Parser_Simple
-{
- function myParser()
- {
- $this->XML_Parser_Simple();
- }
-
- /**
- * handle the category element
- *
- * The element will be handled, once it's closed
- *
- * @access private
- * @param string name of the element
- * @param array attributes of the element
- * @param string character data of the element
- */
- function handleElement_category($name, $attribs, $data)
- {
- printf( 'Category is %s ', $data );
- }
-
- /**
- * handle the name element
- *
- * The element will be handled, once it's closed
- *
- * @access private
- * @param string name of the element
- * @param array attributes of the element
- * @param string character data of the element
- */
- function handleElement_name($name, $attribs, $data)
- {
- printf( 'Name is %s ', $data );
- }
-}
-
-$p = &new myParser2();
-$result = $p->setInputFile('xml_parser_simple2.xml');
-$p->setMode('func');
-$result = $p->parse();
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple2.xml b/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple2.xml
deleted file mode 100644
index ec56e6543..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple2.xml
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- XML
- XML_Parser
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple_handler.php b/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple_handler.php
deleted file mode 100644
index e13bec21f..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Parser/examples/xml_parser_simple_handler.php
+++ /dev/null
@@ -1,56 +0,0 @@
-
- * @package XML_Parser
- * @subpackage Examples
- */
-
-/**
- * require the parser
- */
-require_once 'XML/Parser/Simple.php';
-
-class myHandlerSimple
-{
- /**
- * handle the category element
- *
- * The element will be handled, once it's closed
- *
- * @access private
- * @param string name of the element
- * @param array attributes of the element
- * @param string character data of the element
- */
- function handleElement_category($name, $attribs, $data)
- {
- printf( 'Category is %s ', $data );
- }
-
- /**
- * handle the name element
- *
- * The element will be handled, once it's closed
- *
- * @access private
- * @param string name of the element
- * @param array attributes of the element
- * @param string character data of the element
- */
- function handleElement_name($name, $attribs, $data)
- {
- printf( 'Name is %s ', $data );
- }
-}
-
-$p = &new XML_Parser_Simple();
-$h = &new myHandlerSimple();
-$p->setHandlerObj($h);
-$result = $p->setInputFile('xml_parser_simple2.xml');
-$p->setMode('func');
-$result = $p->parse();
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/example.xml b/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/example.xml
deleted file mode 100644
index 62aaac89f..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/example.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
- Test
- test
-
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeAndEncode.php b/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeAndEncode.php
deleted file mode 100644
index c5dbdb982..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/serializeAndEncode.php
+++ /dev/null
@@ -1,52 +0,0 @@
-
- */
- error_reporting(E_ALL);
-
- require_once 'XML/Serializer.php';
- require_once 'XML/Unserializer.php';
-
- // this is just to get a nested object
- $pearError = PEAR::raiseError('This is just an error object',123);
-
- $options = array(
- 'indent' => ' ',
- 'linebreak' => "\n",
- 'scalarAsAttributes' => true,
- 'encodeFunction' => 'strtoupper'
- );
-
- $foo = new stdClass();
- $foo->bar = new stdClass();
- $foo->bar->test = 'This is a test.';
- $foo->bar->value = 'This is a value.';
-
- $serializer = &new XML_Serializer($options);
-
- $result = $serializer->serialize($foo);
-
- if( $result === true ) {
- $xml = $serializer->getSerializedData();
- }
-
- echo "
';
- }
-
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeAnyXML.php b/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeAnyXML.php
deleted file mode 100644
index a867d4c14..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeAnyXML.php
+++ /dev/null
@@ -1,81 +0,0 @@
-
- */
- error_reporting(E_ALL);
-
- // this is a simple XML document
- $xml = '' .
- ' Stephan Schmidt' .
- ' Martin Jansen' .
- ' PEAR QA Team' .
- ' This is handled by the default keyAttribute' .
- ' Another foo tag' .
- '';
-
- require_once 'XML/Unserializer.php';
-
- // complex structures are arrays, the key is the attribute 'handle' or 'name', if handle is not present
- $options = array(
- "complexType" => "array",
- "keyAttribute" => array(
- 'user' => 'handle',
- 'group' => 'name',
- '__default' => 'id'
- )
- );
-
- // be careful to always use the ampersand in front of the new operator
- $unserializer = &new XML_Unserializer($options);
-
- // userialize the document
- $status = $unserializer->unserialize($xml, false);
-
- if (PEAR::isError($status)) {
- echo "Error: " . $status->getMessage();
- } else {
- $data = $unserializer->getUnserializedData();
-
- echo "
";
- print_r( $data );
- echo "
";
- }
-
-
- // unserialize it again and change the complexType option
- // but leave other options untouched
- // now complex types will be an object, and the property name will be in the
- // attribute 'handle'
- $status = $unserializer->unserialize($xml, false, array("complexType" => "object"));
-
- if (PEAR::isError($status)) {
- echo "Error: " . $status->getMessage();
- } else {
- $data = $unserializer->getUnserializedData();
-
- echo "
";
- print_r( $data );
- echo "
";
- }
-
-
- // unserialize it again and change the complexType option
- // and reset all other options
- // Now, there's no key so the tags are stored in an array
- $status = $unserializer->unserialize($xml, false, array("overrideOptions" => true, "complexType" => "object"));
-
- if (PEAR::isError($status)) {
- echo "Error: " . $status->getMessage();
- } else {
- $data = $unserializer->getUnserializedData();
-
- echo "
";
- print_r( $data );
- echo "
";
- }
-
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeClassNames.php b/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeClassNames.php
deleted file mode 100644
index 57080dfe4..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeClassNames.php
+++ /dev/null
@@ -1,57 +0,0 @@
-
- * @category XML
- * @package XML_Serializer
- * @subpackage Examples
- */
-error_reporting(E_ALL);
-
-/**
- * uses XML_Unserializer
- */
-require_once 'XML/Unserializer.php';
-
-$xml = <<
-
- bar
-
-
-
-EOT;
-
-class foo
-{
-}
-class bar
-{
-}
-
-echo '
';
-
-// be careful to always use the ampersand in front of the new operator
-$unserializer = &new XML_Unserializer();
-$unserializer->setOption('complexType', 'object');
-$unserializer->setOption('parseAttributes', true);
-$unserializer->setOption('returnResult', true);
-
-
-$data = $unserializer->unserialize($xml);
-var_dump( $data );
-
-
-echo "Do not use tagname as class name\n";
-$unserializer->setOption('tagAsClass', false);
-$data = $unserializer->unserialize($xml);
-var_dump( $data );
-
-echo "Use a different default class\n";
-$unserializer->setOption('defaultClass', 'foo');
-$data = $unserializer->unserialize($xml);
-var_dump( $data );
-
-echo '
';
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeEncoded.php b/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeEncoded.php
deleted file mode 100644
index 22d707cbe..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeEncoded.php
+++ /dev/null
@@ -1,40 +0,0 @@
-
- */
- error_reporting(E_ALL);
-
- require_once 'XML/Unserializer.php';
-
-$xml = '
-
- chickenwings
- '.utf8_encode('Hähnchenflügel').'
-
- ';
-
- // specify different source and target encodings
- $options = array(
- 'encoding' => 'UTF-8',
- 'targetEncoding' => 'ISO-8859-1'
- );
-
-
- // be careful to always use the ampersand in front of the new operator
- $unserializer = &new XML_Unserializer($options);
-
- // userialize the document
- $status = $unserializer->unserialize($xml);
-
- if (PEAR::isError($status)) {
- echo "Error: " . $status->getMessage();
- } else {
- $data = $unserializer->getUnserializedData();
-
- echo "
";
- print_r( $data );
- echo "
";
- }
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeEnum.php b/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeEnum.php
deleted file mode 100644
index 6af1e14d2..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeEnum.php
+++ /dev/null
@@ -1,61 +0,0 @@
-
- * @uses example.xml
- */
- error_reporting(E_ALL);
-
- require_once 'XML/Unserializer.php';
-
-$xml1 = '
-
- schst
-
-
- luckec
-
- ';
-
-$xml2 = '
-
- schst
-
- ';
-
- $options = array(
- 'forceEnum' => array('item')
- );
-
-
- // be careful to always use the ampersand in front of the new operator
- $unserializer = &new XML_Unserializer($options);
-
- // userialize the document
- $status = $unserializer->unserialize($xml1);
-
- if (PEAR::isError($status)) {
- echo "Error: " . $status->getMessage();
- } else {
- $data = $unserializer->getUnserializedData();
-
- echo "
";
- }
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeObject.php b/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeObject.php
deleted file mode 100644
index b4f1a2c53..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeObject.php
+++ /dev/null
@@ -1,58 +0,0 @@
-
- */
- error_reporting(E_ALL);
-
- require_once 'XML/Serializer.php';
- require_once 'XML/Unserializer.php';
- // this is just to get a nested object
- $pearError = PEAR::raiseError('This is just an error object',123);
-
- $options = array(
- "indent" => " ",
- "linebreak" => "\n",
- "defaultTagName" => "unnamedItem",
- "typeHints" => true
- );
-
- $foo = new stdClass;
-
- $foo->value = "My value";
- $foo->error = $pearError;
- $foo->xml = array( "This is" => "cool" );
- $foo->resource = fopen( "../package.xml", "r" );
-
- $serializer = new XML_Serializer($options);
-
- $result = $serializer->serialize($foo);
-
- if( $result === true ) {
- $xml = $serializer->getSerializedData();
- }
-
- echo "
";
- print_r( htmlspecialchars($xml) );
- echo "
";
-
- // be careful to always use the ampersand in front of the new operator
- $unserializer = &new XML_Unserializer();
-
- $status = $unserializer->unserialize($xml);
-
- if (PEAR::isError($status)) {
- echo "Error: " . $status->getMessage();
- } else {
- $data = $unserializer->getUnserializedData();
-
- echo "
";
- var_dump( $data );
- echo "
";
- }
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeRDF.php b/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeRDF.php
deleted file mode 100644
index 0621936a7..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeRDF.php
+++ /dev/null
@@ -1,93 +0,0 @@
-
- */
- error_reporting(E_ALL);
-
- require_once '../Unserializer.php';
-
- /**
- * class for the RDF docuemnt
- *
- *
- */
- class rdfDocument
- {
- var $channel;
- var $item;
-
- function getItems($amount)
- {
- return array_splice($this->item,0,$amount);
- }
- }
-
-
- /**
- * class that is used for a channel in the RSS file
- *
- * you could implement whatever you like in this class,
- * properties will be set from the XML document
- */
- class channel
- {
- function getTitle()
- {
- return $this->title;
- }
- }
-
- /**
- * class that is used for an item in the RSS file
- *
- * you could implement whatever you like in this class,
- * properties will be set from the XML document
- */
- class item
- {
- function getTitle()
- {
- return $this->title;
- }
- }
-
-
- $options = array(
- "complexType" => "object",
- "tagMap" => array(
- "rdf:RDF" => "rdfDocument", // this is used to specify a classname for the root tag
- )
- );
-
- // be careful to always use the ampersand in front of the new operator
- $unserializer = &new XML_Unserializer($options);
-
- $status = $unserializer->unserialize("http://pear.php.net/feeds/latest.rss",true);
-
- if (PEAR::isError($status)) {
- echo "Error: " . $status->getMessage();
- } else {
- $rss = $unserializer->getUnserializedData();
-
- echo "This has been returned by XML_Unserializer: ";
-
- echo "
";
- print_r( $rss );
- echo "
";
-
- echo "
Root Tagname: ".$unserializer->getRootName()." ";
-
- echo "Title of the channel: ".$rss->channel->getTitle()." ";
-
- $items = $rss->getItems(3);
- echo " Titles of the last three releases: ";
- foreach ($items as $item) {
- echo "Title : ".$item->getTitle()." ";
- }
- }
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeWithAttributes.php b/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeWithAttributes.php
deleted file mode 100644
index 27bb06988..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Serializer/examples/unserializeWithAttributes.php
+++ /dev/null
@@ -1,33 +0,0 @@
-
- * @uses example.xml
- */
- error_reporting(E_ALL);
-
- require_once 'XML/Unserializer.php';
-
- $options = array(
- "parseAttributes" => true,
- "attributesArray" => false
- );
-
- // be careful to always use the ampersand in front of the new operator
- $unserializer = &new XML_Unserializer($options);
-
- // userialize the document
- $status = $unserializer->unserialize("example.xml", true);
-
- if (PEAR::isError($status)) {
- echo "Error: " . $status->getMessage();
- } else {
- $data = $unserializer->getUnserializedData();
-
- echo "
";
- print_r( $data );
- echo "
";
- }
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/docs/XML_Util/examples/example.php b/campcaster/src/tools/pear/src/docs/XML_Util/examples/example.php
deleted file mode 100644
index 365205661..000000000
--- a/campcaster/src/tools/pear/src/docs/XML_Util/examples/example.php
+++ /dev/null
@@ -1,228 +0,0 @@
-\n";
- print XML_Util::replaceEntities("This string contains < & >.");
- print "\n
";
- print "\n \n";
-
-
- /**
- * splitting a qualified tag name (no namespace)
- */
- print "splitting qualified tag name (no namespace): \n";
- print "
";
- print "\n \n";
-
- /**
- * splitting a qualified tag name (no namespace, but default namespace specified)
- */
- print "splitting qualified tag name (no namespace, but default namespace specified): \n";
- print "
\n";
-
- /**
- * creating an XML tag
- */
- $tag = array(
- "namespace" => "foo",
- "localPart" => "bar",
- "attributes" => array( "key" => "value", "argh" => "fruit&vegetable" ),
- "content" => "I'm inside the tag"
- );
-
- print "creating a tag with namespace and local part: ";
- print htmlentities(XML_Util::createTagFromArray($tag));
- print "\n
\n";
-
- /**
- * creating an XML tag
- */
- $tag = array(
- "qname" => "foo:bar",
- "namespaceUri" => "http://foo.com",
- "attributes" => array( "key" => "value", "argh" => "fruit&vegetable" ),
- "content" => "I'm inside the tag"
- );
-
- print "creating a tag with qualified name and namespaceUri: \n";
- print htmlentities(XML_Util::createTagFromArray($tag));
- print "\n
\n";
-
- /**
- * creating an XML tag
- */
- $tag = array(
- "qname" => "bar",
- "namespaceUri" => "http://foo.com",
- "attributes" => array( "key" => "value", "argh" => "fruit&vegetable" )
- );
-
- print "creating an empty tag without namespace but namespace Uri: \n";
- print htmlentities(XML_Util::createTagFromArray($tag));
- print "\n
\n";
-
- /**
- * creating an XML tag with a CData Section
- */
- $tag = array(
- "qname" => "foo",
- "attributes" => array( "key" => "value", "argh" => "fruit&vegetable" ),
- "content" => "I'm inside the tag"
- );
-
- print "creating a tag with CData section: \n";
- print htmlentities(XML_Util::createTagFromArray($tag, XML_UTIL_CDATA_SECTION));
- print "\n
\n";
-
- /**
- * creating an XML tag with a CData Section
- */
- $tag = array(
- "qname" => "foo",
- "attributes" => array( "key" => "value", "argh" => "tütü" ),
- "content" => "Also XHTML-tags can be created and HTML entities can be replaced Ä ä Ü ö <>."
- );
-
- print "creating a tag with HTML entities: \n";
- print htmlentities(XML_Util::createTagFromArray($tag, XML_UTIL_ENTITIES_HTML));
- print "\n
\n";
-
- /**
- * creating an XML tag with createTag
- */
- print "creating a tag with createTag: ";
- print htmlentities(XML_Util::createTag("myNs:myTag", array("foo" => "bar"), "This is inside the tag", "http://www.w3c.org/myNs#"));
- print "\n
\n";
-
-
- /**
- * trying to create an XML tag with an array as content
- */
- $tag = array(
- "qname" => "bar",
- "content" => array( "foo" => "bar" )
- );
- print "trying to create an XML tag with an array as content: \n";
- print "
\n";
-
- /**
- * trying to create an XML tag without a name
- */
- $tag = array(
- "attributes" => array( "foo" => "bar" ),
- );
- print "trying to create an XML tag without a name: \n";
- print "
\n";
-
- /**
- * create an attribute string without replacing the entities
- */
- $atts = array( 'series' => 'Starsky & Hutch', 'channel' => 'ABC' );
- print "creating a attribute string, entities in values already had been replaced: ";
- print htmlentities(XML_Util::attributesToString($atts, true, false, false, false, XML_UTIL_ENTITIES_NONE));
- print "\n
\n";
-
- /**
- * using the array-syntax for attributesToString()
- */
- $atts = array( 'series' => 'Starsky & Hutch', 'channel' => 'ABC' );
- print "using the array-syntax for attributesToString() ";
- print htmlentities(XML_Util::attributesToString($atts, array('entities' => XML_UTIL_ENTITIES_NONE)));
- print "\n
\n";
-
-
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/package.dtd b/campcaster/src/tools/pear/src/package.dtd
deleted file mode 100644
index 5bc04dd7d..000000000
--- a/campcaster/src/tools/pear/src/package.dtd
+++ /dev/null
@@ -1,103 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/campcaster/src/tools/pear/src/pearcmd.php b/campcaster/src/tools/pear/src/pearcmd.php
deleted file mode 100644
index 56e22e5da..000000000
--- a/campcaster/src/tools/pear/src/pearcmd.php
+++ /dev/null
@@ -1,437 +0,0 @@
- |
-// | Tomas V.V.Cox |
-// | |
-// +----------------------------------------------------------------------+
-//
-// $Id: pearcmd.php,v 1.33 2006/01/02 18:05:53 cellog Exp $
-
-ob_end_clean();
-if (!defined('PEAR_RUNTYPE')) {
- // this is defined in peclcmd.php as 'pecl'
- define('PEAR_RUNTYPE', 'pear');
-}
-define('PEAR_IGNORE_BACKTRACE', 1);
-if (!function_exists('file_get_contents')) {
- function file_get_contents($filename)
- {
- $fp = fopen($filename, 'rb');
- $ret = '';
- while (!feof($fp)) {
- $ret .= fread($fp, 8092);;
- }
- return $ret;
- }
-}
-/**
- * @nodep Gtk
- */
-if ('/home/paul/software/campcaster/campcaster/usr/lib/pear' != '@'.'include_path'.'@') {
- ini_set('include_path', '/home/paul/software/campcaster/campcaster/usr/lib/pear');
- $raw = false;
-} else {
- // this is a raw, uninstalled pear, either a cvs checkout, or php distro
- $raw = true;
-}
-@ini_set('allow_url_fopen', true);
-if (!ini_get('safe_mode')) {
- @set_time_limit(0);
-}
-ob_implicit_flush(true);
-@ini_set('track_errors', true);
-@ini_set('html_errors', false);
-@ini_set('magic_quotes_runtime', false);
-$_PEAR_PHPDIR = '#$%^&*';
-set_error_handler('error_handler');
-
-$pear_package_version = "1.4.11";
-
-require_once 'PEAR.php';
-require_once 'PEAR/Frontend.php';
-require_once 'PEAR/Config.php';
-require_once 'PEAR/Command.php';
-require_once 'Console/Getopt.php';
-
-
-PEAR_Command::setFrontendType('CLI');
-$all_commands = PEAR_Command::getCommands();
-
-// remove this next part when we stop supporting that crap-ass PHP 4.2
-if (!isset($_SERVER['argv']) && !isset($argv) && !isset($HTTP_SERVER_VARS['argv'])) {
- die('ERROR: either use the CLI php executable, or set register_argc_argv=On in php.ini');
-}
-$argv = Console_Getopt::readPHPArgv();
-// fix CGI sapi oddity - the -- in pear.bat/pear is not removed
-if (php_sapi_name() != 'cli' && isset($argv[1]) && $argv[1] == '--') {
- unset($argv[1]);
- $argv = array_values($argv);
-}
-$progname = PEAR_RUNTYPE;
-if (in_array('getopt2', get_class_methods('Console_Getopt'))) {
- array_shift($argv);
- $options = Console_Getopt::getopt2($argv, "c:C:d:D:Gh?sSqu:vV");
-} else {
- $options = Console_Getopt::getopt($argv, "c:C:d:D:Gh?sSqu:vV");
-}
-if (PEAR::isError($options)) {
- usage($options);
-}
-
-$opts = $options[0];
-
-$fetype = 'CLI';
-if ($progname == 'gpear' || $progname == 'pear-gtk') {
- $fetype = 'Gtk';
-} else {
- foreach ($opts as $opt) {
- if ($opt[0] == 'G') {
- $fetype = 'Gtk';
- }
- }
-}
-//Check if Gtk and PHP >= 5.1.0
-if ($fetype == 'Gtk' && version_compare(phpversion(), '5.1.0', '>=')) {
- $fetype = 'Gtk2';
-}
-
-$pear_user_config = '';
-$pear_system_config = '';
-$store_user_config = false;
-$store_system_config = false;
-$verbose = 1;
-
-foreach ($opts as $opt) {
- switch ($opt[0]) {
- case 'c':
- $pear_user_config = $opt[1];
- break;
- case 'C':
- $pear_system_config = $opt[1];
- break;
- }
-}
-
-PEAR_Command::setFrontendType($fetype);
-$ui = &PEAR_Command::getFrontendObject();
-$config = &PEAR_Config::singleton($pear_user_config, $pear_system_config);
-
-if (PEAR::isError($config)) {
- $_file = '';
- if ($pear_user_config !== false) {
- $_file .= $pear_user_config;
- }
- if ($pear_system_config !== false) {
- $_file .= '/' . $pear_system_config;
- }
- if ($_file == '/') {
- $_file = 'The default config file';
- }
- $config->getMessage();
- $ui->outputData("ERROR: $_file is not a valid config file or is corrupted.");
- // We stop, we have no idea where we are :)
- exit();
-}
-
-// this is used in the error handler to retrieve a relative path
-$_PEAR_PHPDIR = $config->get('php_dir');
-$ui->setConfig($config);
-PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($ui, "displayFatalError"));
-if (ini_get('safe_mode')) {
- $ui->outputData('WARNING: running in safe mode requires that all files created ' .
- 'be the same uid as the current script. PHP reports this script is uid: ' .
- @getmyuid() . ', and current user is: ' . @get_current_user());
-}
-
-$verbose = $config->get("verbose");
-$cmdopts = array();
-
-if ($raw) {
- if (!$config->isDefinedLayer('user') && !$config->isDefinedLayer('system')) {
- $found = false;
- foreach ($opts as $opt) {
- if ($opt[0] == 'd' || $opt[0] == 'D') {
- $found = true; // the user knows what they are doing, and are setting config values
- }
- }
- if (!$found) {
- // no prior runs, try to install PEAR
- if (strpos(dirname(__FILE__), 'scripts')) {
- $packagexml = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'package2.xml';
- $pearbase = dirname(dirname(__FILE__));
- } else {
- $packagexml = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'package2.xml';
- $pearbase = dirname(__FILE__);
- }
- if (file_exists($packagexml)) {
- $options[1] = array(
- 'install',
- $packagexml
- );
- $config->set('php_dir', $pearbase . DIRECTORY_SEPARATOR . 'php');
- $config->set('data_dir', $pearbase . DIRECTORY_SEPARATOR . 'data');
- $config->set('doc_dir', $pearbase . DIRECTORY_SEPARATOR . 'docs');
- $config->set('test_dir', $pearbase . DIRECTORY_SEPARATOR . 'tests');
- $config->set('ext_dir', $pearbase . DIRECTORY_SEPARATOR . 'extensions');
- $config->set('bin_dir', $pearbase);
- $config->mergeConfigFile($pearbase . 'pear.ini', false);
- $config->store();
- $config->set('auto_discover', 1);
- }
- }
- }
-}
-foreach ($opts as $opt) {
- $param = !empty($opt[1]) ? $opt[1] : true;
- switch ($opt[0]) {
- case 'd':
- list($key, $value) = explode('=', $param);
- $config->set($key, $value, 'user');
- break;
- case 'D':
- list($key, $value) = explode('=', $param);
- $config->set($key, $value, 'system');
- break;
- case 's':
- $store_user_config = true;
- break;
- case 'S':
- $store_system_config = true;
- break;
- case 'u':
- $config->remove($param, 'user');
- break;
- case 'v':
- $config->set('verbose', $config->get('verbose') + 1);
- break;
- case 'q':
- $config->set('verbose', $config->get('verbose') - 1);
- break;
- case 'V':
- usage(null, 'version');
- case 'c':
- case 'C':
- break;
- default:
- // all non pear params goes to the command
- $cmdopts[$opt[0]] = $param;
- break;
- }
-}
-
-if ($store_system_config) {
- $config->store('system');
-}
-
-if ($store_user_config) {
- $config->store('user');
-}
-
-$command = (isset($options[1][0])) ? $options[1][0] : null;
-
-if (empty($command) && ($store_user_config || $store_system_config)) {
- exit;
-}
-
-if ($fetype == 'Gtk' || $fetype == 'Gtk2') {
- if (!$config->validConfiguration()) {
- PEAR::raiseError('CRITICAL ERROR: no existing valid configuration files found in files ' .
- "'$pear_user_config' or '$pear_system_config', please copy an existing configuration" .
- 'file to one of these locations, or use the -c and -s options to create one');
- }
- Gtk::main();
-} else do {
- if ($command == 'help') {
- usage(null, @$options[1][1]);
- }
- if (!$config->validConfiguration()) {
- PEAR::raiseError('CRITICAL ERROR: no existing valid configuration files found in files ' .
- "'$pear_user_config' or '$pear_system_config', please copy an existing configuration" .
- 'file to one of these locations, or use the -c and -s options to create one');
- }
-
- PEAR::pushErrorHandling(PEAR_ERROR_RETURN);
- $cmd = PEAR_Command::factory($command, $config);
- PEAR::popErrorHandling();
- if (PEAR::isError($cmd)) {
- usage(null, @$options[1][0]);
- }
-
- $short_args = $long_args = null;
- PEAR_Command::getGetoptArgs($command, $short_args, $long_args);
- if (in_array('getopt2', get_class_methods('Console_Getopt'))) {
- array_shift($options[1]);
- $tmp = Console_Getopt::getopt2($options[1], $short_args, $long_args);
- } else {
- $tmp = Console_Getopt::getopt($options[1], $short_args, $long_args);
- }
- if (PEAR::isError($tmp)) {
- break;
- }
- list($tmpopt, $params) = $tmp;
- $opts = array();
- foreach ($tmpopt as $foo => $tmp2) {
- list($opt, $value) = $tmp2;
- if ($value === null) {
- $value = true; // options without args
- }
- if (strlen($opt) == 1) {
- $cmdoptions = $cmd->getOptions($command);
- foreach ($cmdoptions as $o => $d) {
- if (@$d['shortopt'] == $opt) {
- $opts[$o] = $value;
- }
- }
- } else {
- if (substr($opt, 0, 2) == '--') {
- $opts[substr($opt, 2)] = $value;
- }
- }
- }
- $ok = $cmd->run($command, $opts, $params);
- if ($ok === false) {
- PEAR::raiseError("unknown command `$command'");
- }
- if (PEAR::isError($ok)) {
- PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, array($ui, "displayFatalError"));
- PEAR::raiseError($ok);
- }
-} while (false);
-
-// {{{ usage()
-
-function usage($error = null, $helpsubject = null)
-{
- global $progname, $all_commands;
- $stderr = fopen('php://stderr', 'w');
- if (PEAR::isError($error)) {
- fputs($stderr, $error->getMessage() . "\n");
- } elseif ($error !== null) {
- fputs($stderr, "$error\n");
- }
- if ($helpsubject != null) {
- $put = cmdHelp($helpsubject);
- } else {
- $put =
- "Commands:\n";
- $maxlen = max(array_map("strlen", $all_commands));
- $formatstr = "%-{$maxlen}s %s\n";
- ksort($all_commands);
- foreach ($all_commands as $cmd => $class) {
- $put .= sprintf($formatstr, $cmd, PEAR_Command::getDescription($cmd));
- }
- $put .=
- "Usage: $progname [options] command [command-options] \n".
- "Type \"$progname help options\" to list all options.\n".
- "Type \"$progname help shortcuts\" to list all command shortcuts.\n".
- "Type \"$progname help \" to get the help for the specified command.";
- }
- fputs($stderr, "$put\n");
- fclose($stderr);
- exit;
-}
-
-function cmdHelp($command)
-{
- global $progname, $all_commands, $config;
- if ($command == "options") {
- return
- "Options:\n".
- " -v increase verbosity level (default 1)\n".
- " -q be quiet, decrease verbosity level\n".
- " -c file find user configuration in `file'\n".
- " -C file find system configuration in `file'\n".
- " -d foo=bar set user config variable `foo' to `bar'\n".
- " -D foo=bar set system config variable `foo' to `bar'\n".
- " -G start in graphical (Gtk) mode\n".
- " -s store user configuration\n".
- " -S store system configuration\n".
- " -u foo unset `foo' in the user configuration\n".
- " -h, -? display help/usage (this message)\n".
- " -V version information\n";
- } elseif ($command == "shortcuts") {
- $sc = PEAR_Command::getShortcuts();
- $ret = "Shortcuts:\n";
- foreach ($sc as $s => $c) {
- $ret .= sprintf(" %-8s %s\n", $s, $c);
- }
- return $ret;
-
- } elseif ($command == "version") {
- return "PEAR Version: ".$GLOBALS['pear_package_version'].
- "\nPHP Version: ".phpversion().
- "\nZend Engine Version: ".zend_version().
- "\nRunning on: ".php_uname();
-
- } elseif ($help = PEAR_Command::getHelp($command)) {
- if (is_string($help)) {
- return "$progname $command [options] $help\n";
- }
- if ($help[1] === null) {
- return "$progname $command $help[0]";
- } else {
- return "$progname $command [options] $help[0]\n$help[1]";
- }
- }
- return "Command '$command' is not valid, try 'pear help'";
-}
-
-// }}}
-
-function error_handler($errno, $errmsg, $file, $line, $vars) {
- if ((defined('E_STRICT') && $errno & E_STRICT) || !error_reporting()) {
- if (defined('E_STRICT') && $errno & E_STRICT) {
- return; // E_STRICT
- }
- if ($GLOBALS['config']->get('verbose') < 4) {
- return; // @silenced error, show all if debug is high enough
- }
- }
- $errortype = array (
- E_ERROR => "Error",
- E_WARNING => "Warning",
- E_PARSE => "Parsing Error",
- E_NOTICE => "Notice",
- E_CORE_ERROR => "Core Error",
- E_CORE_WARNING => "Core Warning",
- E_COMPILE_ERROR => "Compile Error",
- E_COMPILE_WARNING => "Compile Warning",
- E_USER_ERROR => "User Error",
- E_USER_WARNING => "User Warning",
- E_USER_NOTICE => "User Notice"
- );
- $prefix = $errortype[$errno];
- global $_PEAR_PHPDIR;
- if (stristr($file, $_PEAR_PHPDIR)) {
- $file = substr($file, strlen($_PEAR_PHPDIR) + 1);
- } else {
- $file = basename($file);
- }
- print "\n$prefix: $errmsg in $file on line $line\n";
-}
-
-
-/*
- * Local variables:
- * tab-width: 4
- * c-basic-offset: 4
- * indent-tabs-mode: nil
- * mode: php
- * End:
- */
-// vim600:syn=php
-
-?>
diff --git a/campcaster/src/tools/pear/src/peclcmd.php b/campcaster/src/tools/pear/src/peclcmd.php
deleted file mode 100644
index 61f2cede6..000000000
--- a/campcaster/src/tools/pear/src/peclcmd.php
+++ /dev/null
@@ -1,45 +0,0 @@
- |
-// | Tomas V.V.Cox |
-// | |
-// +----------------------------------------------------------------------+
-//
-// $Id: peclcmd.php,v 1.1 2005/02/21 05:30:56 cellog Exp $
-
-/**
- * @nodep Gtk
- */
-if ('/home/paul/software/campcaster/campcaster/usr/lib/pear' != '@'.'include_path'.'@') {
- ini_set('include_path', '/home/paul/software/campcaster/campcaster/usr/lib/pear');
- $raw = false;
-} else {
- // this is a raw, uninstalled pear, either a cvs checkout, or php distro
- $raw = true;
-}
-define('PEAR_RUNTYPE', 'pecl');
-require_once 'pearcmd.php';
-/*
- * Local variables:
- * tab-width: 4
- * c-basic-offset: 4
- * indent-tabs-mode: nil
- * mode: php
- * End:
- */
-// vim600:syn=php
-
-?>
diff --git a/campcaster/src/tools/pear/src/scripts/pearcmd.php b/campcaster/src/tools/pear/src/scripts/pearcmd.php
index 530a0f7cd..56e22e5da 100644
--- a/campcaster/src/tools/pear/src/scripts/pearcmd.php
+++ b/campcaster/src/tools/pear/src/scripts/pearcmd.php
@@ -40,8 +40,8 @@ if (!function_exists('file_get_contents')) {
/**
* @nodep Gtk
*/
-if ('@include_path@' != '@'.'include_path'.'@') {
- ini_set('include_path', '@include_path@');
+if ('/home/paul/software/campcaster/campcaster/usr/lib/pear' != '@'.'include_path'.'@') {
+ ini_set('include_path', '/home/paul/software/campcaster/campcaster/usr/lib/pear');
$raw = false;
} else {
// this is a raw, uninstalled pear, either a cvs checkout, or php distro
@@ -58,7 +58,7 @@ ob_implicit_flush(true);
$_PEAR_PHPDIR = '#$%^&*';
set_error_handler('error_handler');
-$pear_package_version = "@pear_version@";
+$pear_package_version = "1.4.11";
require_once 'PEAR.php';
require_once 'PEAR/Frontend.php';
diff --git a/campcaster/src/tools/pear/src/scripts/peclcmd.php b/campcaster/src/tools/pear/src/scripts/peclcmd.php
index bdccc7540..61f2cede6 100644
--- a/campcaster/src/tools/pear/src/scripts/peclcmd.php
+++ b/campcaster/src/tools/pear/src/scripts/peclcmd.php
@@ -23,8 +23,8 @@
/**
* @nodep Gtk
*/
-if ('@include_path@' != '@'.'include_path'.'@') {
- ini_set('include_path', '@include_path@');
+if ('/home/paul/software/campcaster/campcaster/usr/lib/pear' != '@'.'include_path'.'@') {
+ ini_set('include_path', '/home/paul/software/campcaster/campcaster/usr/lib/pear');
$raw = false;
} else {
// this is a raw, uninstalled pear, either a cvs checkout, or php distro
diff --git a/campcaster/src/tools/pear/src/template.spec b/campcaster/src/tools/pear/src/template.spec
deleted file mode 100644
index 37b477f8f..000000000
--- a/campcaster/src/tools/pear/src/template.spec
+++ /dev/null
@@ -1,72 +0,0 @@
-Summary: PEAR: @summary@
-Name: @rpm_package@
-Version: @version@
-Release: 1
-License: @release_license@
-Group: Development/Libraries
-Source: http://@master_server@/get/@package@-%{version}.tgz
-BuildRoot: %{_tmppath}/%{name}-root
-URL: http://@master_server@/package/@package@
-Prefix: %{_prefix}
-BuildArchitectures: @arch@
-@extra_headers@
-
-%description
-@description@
-
-%prep
-rm -rf %{buildroot}/*
-%setup -c -T
-# XXX Source files location is missing here in pear cmd
-pear -v -c %{buildroot}/pearrc \
- -d php_dir=%{_libdir}/php/pear \
- -d doc_dir=/docs \
- -d bin_dir=%{_bindir} \
- -d data_dir=%{_libdir}/php/pear/data \
- -d test_dir=%{_libdir}/php/pear/tests \
- -d ext_dir=%{_libdir} \@extra_config@
- -s
-
-%build
-echo BuildRoot=%{buildroot}
-
-%postun
-# if refcount = 0 then package has been removed (not upgraded)
-if [ "$1" -eq "0" ]; then
- pear uninstall --nodeps -r @possible_channel@@package@
- rm @rpm_xml_dir@/@package@.xml
-fi
-
-
-%post
-# if refcount = 2 then package has been upgraded
-if [ "$1" -ge "2" ]; then
- pear upgrade --nodeps -r @rpm_xml_dir@/@package@.xml
-else
- pear install --nodeps -r @rpm_xml_dir@/@package@.xml
-fi
-
-%install
-pear -c %{buildroot}/pearrc install --nodeps -R %{buildroot} \
- $RPM_SOURCE_DIR/@package@-%{version}.tgz
-rm %{buildroot}/pearrc
-rm %{buildroot}/%{_libdir}/php/pear/.filemap
-rm %{buildroot}/%{_libdir}/php/pear/.lock
-rm -rf %{buildroot}/%{_libdir}/php/pear/.registry
-if [ "@doc_files@" != "" ]; then
- mv %{buildroot}/docs/@package@/* .
- rm -rf %{buildroot}/docs
-fi
-mkdir -p %{buildroot}@rpm_xml_dir@
-tar -xzf $RPM_SOURCE_DIR/@package@-%{version}.tgz package@package2xml@.xml
-cp -p package@package2xml@.xml %{buildroot}@rpm_xml_dir@/@package@.xml
-
-#rm -rf %{buildroot}/*
-#pear -q install -R %{buildroot} -n package@package2xml@.xml
-#mkdir -p %{buildroot}@rpm_xml_dir@
-#cp -p package@package2xml@.xml %{buildroot}@rpm_xml_dir@/@package@.xml
-
-%files
- %defattr(-,root,root)
- %doc @doc_files@
- /
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/README b/campcaster/src/tools/pear/src/tests/Calendar/tests/README
deleted file mode 100644
index ecc755b12..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/README
+++ /dev/null
@@ -1,7 +0,0 @@
-These tests require Simple Test: http://www.lastcraft.com/simple_test.php
-
-Ideally they would use PEAR::PHPUnit but the current version has bugs and
-lacks alot of the functionality (e.g. Mock Objects) which Simple Test
-provides.
-
-Modifying the simple_include.php script for your simple test install dir
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/all_tests.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/all_tests.php
deleted file mode 100644
index 034dec085..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/all_tests.php
+++ /dev/null
@@ -1,34 +0,0 @@
-GroupTest('All PEAR::Calendar Tests');
- $this->AddTestCase(new CalendarTests());
- $this->AddTestCase(new CalendarTabularTests());
- $this->AddTestCase(new ValidatorTests());
- $this->AddTestCase(new CalendarEngineTests());
- $this->AddTestCase(new TableHelperTests());
- $this->AddTestCase(new DecoratorTests());
- $this->AddTestCase(new UtilTests());
- }
-}
-
-$test = &new AllTests();
-$test->run(new HtmlReporter());
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_engine_tests.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_engine_tests.php
deleted file mode 100644
index da01f8a2f..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_engine_tests.php
+++ /dev/null
@@ -1,20 +0,0 @@
-GroupTest('Calendar Engine Tests');
- $this->addTestFile('peardate_engine_test.php');
- $this->addTestFile('unixts_engine_test.php');
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new CalendarEngineTests();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_include.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_include.php
deleted file mode 100644
index 96fa9575e..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_include.php
+++ /dev/null
@@ -1,28 +0,0 @@
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_tabular_tests.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_tabular_tests.php
deleted file mode 100644
index 1dd7be4d0..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_tabular_tests.php
+++ /dev/null
@@ -1,21 +0,0 @@
-GroupTest('Calendar Tabular Tests');
- $this->addTestFile('month_weekdays_test.php');
- $this->addTestFile('month_weeks_test.php');
- $this->addTestFile('week_test.php');
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new CalendarTabularTests();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_test.php
deleted file mode 100644
index 5ab63be94..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_test.php
+++ /dev/null
@@ -1,115 +0,0 @@
-UnitTestCase($name);
- }
- function setUp() {
- $this->cal = new Calendar(2003,10,25,13,32,43);
- }
- function tearDown() {
- unset($this->cal);
- }
- function testPrevYear () {
- $this->assertEqual(2002,$this->cal->prevYear());
- }
- function testPrevYear_Array () {
- $this->assertEqual(
- array(
- 'year' => 2002,
- 'month' => 1,
- 'day' => 1,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevYear('array'));
- }
- function testThisYear () {
- $this->assertEqual(2003,$this->cal->thisYear());
- }
- function testNextYear () {
- $this->assertEqual(2004,$this->cal->nextYear());
- }
- function testPrevMonth () {
- $this->assertEqual(9,$this->cal->prevMonth());
- }
- function testPrevMonth_Array () {
- $this->assertEqual(
- array(
- 'year' => 2003,
- 'month' => 9,
- 'day' => 1,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevMonth('array'));
- }
- function testThisMonth () {
- $this->assertEqual(10,$this->cal->thisMonth());
- }
- function testNextMonth () {
- $this->assertEqual(11,$this->cal->nextMonth());
- }
- function testPrevDay () {
- $this->assertEqual(24,$this->cal->prevDay());
- }
- function testPrevDay_Array () {
- $this->assertEqual(
- array(
- 'year' => 2003,
- 'month' => 10,
- 'day' => 24,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevDay('array'));
- }
- function testThisDay () {
- $this->assertEqual(25,$this->cal->thisDay());
- }
- function testNextDay () {
- $this->assertEqual(26,$this->cal->nextDay());
- }
- function testPrevHour () {
- $this->assertEqual(12,$this->cal->prevHour());
- }
- function testThisHour () {
- $this->assertEqual(13,$this->cal->thisHour());
- }
- function testNextHour () {
- $this->assertEqual(14,$this->cal->nextHour());
- }
- function testPrevMinute () {
- $this->assertEqual(31,$this->cal->prevMinute());
- }
- function testThisMinute () {
- $this->assertEqual(32,$this->cal->thisMinute());
- }
- function testNextMinute () {
- $this->assertEqual(33,$this->cal->nextMinute());
- }
- function testPrevSecond () {
- $this->assertEqual(42,$this->cal->prevSecond());
- }
- function testThisSecond () {
- $this->assertEqual(43,$this->cal->thisSecond());
- }
- function testNextSecond () {
- $this->assertEqual(44,$this->cal->nextSecond());
- }
- function testSetTimeStamp() {
- $stamp = mktime(13,32,43,10,25,2003);
- $this->cal->setTimeStamp($stamp);
- $this->assertEqual($stamp,$this->cal->getTimeStamp());
- }
- function testGetTimeStamp() {
- $stamp = mktime(13,32,43,10,25,2003);
- $this->assertEqual($stamp,$this->cal->getTimeStamp());
- }
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_tests.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_tests.php
deleted file mode 100644
index b6bee2080..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/calendar_tests.php
+++ /dev/null
@@ -1,25 +0,0 @@
-GroupTest('Calendar Tests');
- $this->addTestFile('calendar_test.php');
- $this->addTestFile('year_test.php');
- $this->addTestFile('month_test.php');
- $this->addTestFile('day_test.php');
- $this->addTestFile('hour_test.php');
- $this->addTestFile('minute_test.php');
- $this->addTestFile('second_test.php');
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new CalendarTests();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/day_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/day_test.php
deleted file mode 100644
index 69685c4f8..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/day_test.php
+++ /dev/null
@@ -1,107 +0,0 @@
-UnitTestCase('Test of Day');
- }
- function setUp() {
- $this->cal = new Calendar_Day(2003,10,25);
- }
- function testPrevDay_Array () {
- $this->assertEqual(
- array(
- 'year' => 2003,
- 'month' => 10,
- 'day' => 24,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevDay('array'));
- }
- function testPrevHour () {
- $this->assertEqual(23,$this->cal->prevHour());
- }
- function testThisHour () {
- $this->assertEqual(0,$this->cal->thisHour());
- }
- function testNextHour () {
- $this->assertEqual(1,$this->cal->nextHour());
- }
- function testPrevMinute () {
- $this->assertEqual(59,$this->cal->prevMinute());
- }
- function testThisMinute () {
- $this->assertEqual(0,$this->cal->thisMinute());
- }
- function testNextMinute () {
- $this->assertEqual(1,$this->cal->nextMinute());
- }
- function testPrevSecond () {
- $this->assertEqual(59,$this->cal->prevSecond());
- }
- function testThisSecond () {
- $this->assertEqual(0,$this->cal->thisSecond());
- }
- function testNextSecond () {
- $this->assertEqual(1,$this->cal->nextSecond());
- }
- function testGetTimeStamp() {
- $stamp = mktime(0,0,0,10,25,2003);
- $this->assertEqual($stamp,$this->cal->getTimeStamp());
- }
-}
-
-class TestOfDayBuild extends TestOfDay {
- function TestOfDayBuild() {
- $this->UnitTestCase('Test of Day::build()');
- }
- function testSize() {
- $this->cal->build();
- $this->assertEqual(24,$this->cal->size());
- }
- function testFetch() {
- $this->cal->build();
- $i=0;
- while ( $Child = $this->cal->fetch() ) {
- $i++;
- }
- $this->assertEqual(24,$i);
- }
- function testFetchAll() {
- $this->cal->build();
- $children = array();
- $i = 0;
- while ( $Child = $this->cal->fetch() ) {
- $children[$i]=$Child;
- $i++;
- }
- $this->assertEqual($children,$this->cal->fetchAll());
- }
- function testSelection() {
- require_once(CALENDAR_ROOT . 'Hour.php');
- $selection = array(new Calendar_Hour(2003,10,25,13));
- $this->cal->build($selection);
- $i = 0;
- while ( $Child = $this->cal->fetch() ) {
- if ( $i == 13 )
- break;
- $i++;
- }
- $this->assertTrue($Child->isSelected());
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfDay();
- $test->run(new HtmlReporter());
- $test = &new TestOfDayBuild();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_test.php
deleted file mode 100644
index 05186431c..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_test.php
+++ /dev/null
@@ -1,268 +0,0 @@
-UnitTestCase('Test of Calendar_Decorator');
- }
- function setUp() {
- $this->mockengine = new Mock_Calendar_Engine($this);
- $this->mockcal = new Mock_Calendar_Second($this);
- $this->mockcal->setReturnValue('prevYear',2002);
- $this->mockcal->setReturnValue('thisYear',2003);
- $this->mockcal->setReturnValue('nextYear',2004);
- $this->mockcal->setReturnValue('prevMonth',9);
- $this->mockcal->setReturnValue('thisMonth',10);
- $this->mockcal->setReturnValue('nextMonth',11);
- $this->mockcal->setReturnValue('prevDay',14);
- $this->mockcal->setReturnValue('thisDay',15);
- $this->mockcal->setReturnValue('nextDay',16);
- $this->mockcal->setReturnValue('prevHour',12);
- $this->mockcal->setReturnValue('thisHour',13);
- $this->mockcal->setReturnValue('nextHour',14);
- $this->mockcal->setReturnValue('prevMinute',29);
- $this->mockcal->setReturnValue('thisMinute',30);
- $this->mockcal->setReturnValue('nextMinute',31);
- $this->mockcal->setReturnValue('prevSecond',44);
- $this->mockcal->setReturnValue('thisSecond',45);
- $this->mockcal->setReturnValue('nextSecond',46);
- $this->mockcal->setReturnValue('getEngine',$this->mockengine);
- $this->mockcal->setReturnValue('getTimestamp',12345);
-
- }
- function tearDown() {
- unset ( $this->engine );
- unset ( $this->mockcal );
- }
- function testPrevYear() {
- $this->mockcal->expectOnce('prevYear',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(2002,$Decorator->prevYear());
- }
- function testThisYear() {
- $this->mockcal->expectOnce('thisYear',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(2003,$Decorator->thisYear());
- }
- function testNextYear() {
- $this->mockcal->expectOnce('nextYear',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(2004,$Decorator->nextYear());
- }
- function testPrevMonth() {
- $this->mockcal->expectOnce('prevMonth',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(9,$Decorator->prevMonth());
- }
- function testThisMonth() {
- $this->mockcal->expectOnce('thisMonth',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(10,$Decorator->thisMonth());
- }
- function testNextMonth() {
- $this->mockcal->expectOnce('nextMonth',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(11,$Decorator->nextMonth());
- }
- function testPrevWeek() {
- $mockweek = & new Mock_Calendar_Week($this);
- $mockweek->setReturnValue('prevWeek',1);
- $mockweek->expectOnce('prevWeek',array('n_in_month'));
- $Decorator =& new Calendar_Decorator($mockweek);
- $this->assertEqual(1,$Decorator->prevWeek());
- }
- function testThisWeek() {
- $mockweek = & new Mock_Calendar_Week($this);
- $mockweek->setReturnValue('thisWeek',2);
- $mockweek->expectOnce('thisWeek',array('n_in_month'));
- $Decorator =& new Calendar_Decorator($mockweek);
- $this->assertEqual(2,$Decorator->thisWeek());
- }
- function testNextWeek() {
- $mockweek = & new Mock_Calendar_Week($this);
- $mockweek->setReturnValue('nextWeek',3);
- $mockweek->expectOnce('nextWeek',array('n_in_month'));
- $Decorator =& new Calendar_Decorator($mockweek);
- $this->assertEqual(3,$Decorator->nextWeek());
- }
- function testPrevDay() {
- $this->mockcal->expectOnce('prevDay',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(14,$Decorator->prevDay());
- }
- function testThisDay() {
- $this->mockcal->expectOnce('thisDay',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(15,$Decorator->thisDay());
- }
- function testNextDay() {
- $this->mockcal->expectOnce('nextDay',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(16,$Decorator->nextDay());
- }
- function testPrevHour() {
- $this->mockcal->expectOnce('prevHour',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(12,$Decorator->prevHour());
- }
- function testThisHour() {
- $this->mockcal->expectOnce('thisHour',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(13,$Decorator->thisHour());
- }
- function testNextHour() {
- $this->mockcal->expectOnce('nextHour',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(14,$Decorator->nextHour());
- }
- function testPrevMinute() {
- $this->mockcal->expectOnce('prevMinute',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(29,$Decorator->prevMinute());
- }
- function testThisMinute() {
- $this->mockcal->expectOnce('thisMinute',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(30,$Decorator->thisMinute());
- }
- function testNextMinute() {
- $this->mockcal->expectOnce('nextMinute',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(31,$Decorator->nextMinute());
- }
- function testPrevSecond() {
- $this->mockcal->expectOnce('prevSecond',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(44,$Decorator->prevSecond());
- }
- function testThisSecond() {
- $this->mockcal->expectOnce('thisSecond',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(45,$Decorator->thisSecond());
- }
- function testNextSecond() {
- $this->mockcal->expectOnce('nextSecond',array('int'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(46,$Decorator->nextSecond());
- }
- function testGetEngine() {
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertIsA($Decorator->getEngine(),'Mock_Calendar_Engine');
- }
- function testSetTimestamp() {
- $this->mockcal->expectOnce('setTimestamp',array('12345'));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $Decorator->setTimestamp('12345');
- }
- function testGetTimestamp() {
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual(12345,$Decorator->getTimestamp());
- }
- function testSetSelected() {
- $this->mockcal->expectOnce('setSelected',array(true));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $Decorator->setSelected();
- }
- function testIsSelected() {
- $this->mockcal->setReturnValue('isSelected',true);
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertTrue($Decorator->isSelected());
- }
- function testAdjust() {
- $this->mockcal->expectOnce('adjust',array());
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $Decorator->adjust();
- }
- function testToArray() {
- $this->mockcal->expectOnce('toArray',array(12345));
- $testArray = array('foo'=>'bar');
- $this->mockcal->setReturnValue('toArray',$testArray);
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual($testArray,$Decorator->toArray(12345));
- }
- function testReturnValue() {
- $this->mockcal->expectOnce('returnValue',array('a','b','c','d'));
- $this->mockcal->setReturnValue('returnValue','foo');
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $this->assertEqual('foo',$Decorator->returnValue('a','b','c','d'));
- }
- function testSetFirst() {
- $mockday = & new Mock_Calendar_Day($this);
- $mockday->expectOnce('setFirst',array(true));
- $Decorator =& new Calendar_Decorator($mockday);
- $Decorator->setFirst();
- }
- function testSetLast() {
- $mockday = & new Mock_Calendar_Day($this);
- $mockday->expectOnce('setLast',array(true));
- $Decorator =& new Calendar_Decorator($mockday);
- $Decorator->setLast();
- }
- function testIsFirst() {
- $mockday = & new Mock_Calendar_Day($this);
- $mockday->setReturnValue('isFirst',TRUE);
- $Decorator =& new Calendar_Decorator($mockday);
- $this->assertTrue($Decorator->isFirst());
- }
- function testIsLast() {
- $mockday = & new Mock_Calendar_Day($this);
- $mockday->setReturnValue('isLast',TRUE);
- $Decorator =& new Calendar_Decorator($mockday);
- $this->assertTrue($Decorator->isLast());
- }
- function testSetEmpty() {
- $mockday = & new Mock_Calendar_Day($this);
- $mockday->expectOnce('setEmpty',array(true));
- $Decorator =& new Calendar_Decorator($mockday);
- $Decorator->setEmpty();
- }
- function testIsEmpty() {
- $mockday = & new Mock_Calendar_Day($this);
- $mockday->setReturnValue('isEmpty',TRUE);
- $Decorator =& new Calendar_Decorator($mockday);
- $this->assertTrue($Decorator->isEmpty());
- }
- function testBuild() {
- $testArray=array('foo'=>'bar');
- $this->mockcal->expectOnce('build',array($testArray));
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $Decorator->build($testArray);
- }
- function testFetch() {
- $this->mockcal->expectOnce('fetch',array());
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $Decorator->fetch();
- }
- function testFetchAll() {
- $this->mockcal->expectOnce('fetchAll',array());
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $Decorator->fetchAll();
- }
- function testSize() {
- $this->mockcal->expectOnce('size',array());
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $Decorator->size();
- }
- function testIsValid() {
- $this->mockcal->expectOnce('isValid',array());
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $Decorator->isValid();
- }
- function testGetValidator() {
- $this->mockcal->expectOnce('getValidator',array());
- $Decorator =& new Calendar_Decorator($this->mockcal);
- $Decorator->getValidator();
- }
-}
-?>
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_tests.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_tests.php
deleted file mode 100644
index 316d5bd57..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_tests.php
+++ /dev/null
@@ -1,21 +0,0 @@
-GroupTest('Decorator Tests');
- $this->addTestFile('decorator_test.php');
- $this->addTestFile('decorator_textual_test.php');
- $this->addTestFile('decorator_uri_test.php');
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new DecoratorTests();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_textual_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_textual_test.php
deleted file mode 100644
index 225ceedb5..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_textual_test.php
+++ /dev/null
@@ -1,174 +0,0 @@
-UnitTestCase('Test of Calendar_Decorator_Textual');
- }
- function testMonthNamesLong() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $monthNames = array(
- 1=>'January',
- 2=>'February',
- 3=>'March',
- 4=>'April',
- 5=>'May',
- 6=>'June',
- 7=>'July',
- 8=>'August',
- 9=>'September',
- 10=>'October',
- 11=>'November',
- 12=>'December',
- );
- $this->assertEqual($monthNames,$Textual->monthNames());
- }
- function testMonthNamesShort() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $monthNames = array(
- 1=>'Jan',
- 2=>'Feb',
- 3=>'Mar',
- 4=>'Apr',
- 5=>'May',
- 6=>'Jun',
- 7=>'Jul',
- 8=>'Aug',
- 9=>'Sep',
- 10=>'Oct',
- 11=>'Nov',
- 12=>'Dec',
- );
- $this->assertEqual($monthNames,$Textual->monthNames('short'));
- }
- function testMonthNamesTwo() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $monthNames = array(
- 1=>'Ja',
- 2=>'Fe',
- 3=>'Ma',
- 4=>'Ap',
- 5=>'Ma',
- 6=>'Ju',
- 7=>'Ju',
- 8=>'Au',
- 9=>'Se',
- 10=>'Oc',
- 11=>'No',
- 12=>'De',
- );
- $this->assertEqual($monthNames,$Textual->monthNames('two'));
- }
- function testMonthNamesOne() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $monthNames = array(
- 1=>'J',
- 2=>'F',
- 3=>'M',
- 4=>'A',
- 5=>'M',
- 6=>'J',
- 7=>'J',
- 8=>'A',
- 9=>'S',
- 10=>'O',
- 11=>'N',
- 12=>'D',
- );
- $this->assertEqual($monthNames,$Textual->monthNames('one'));
- }
- function testWeekdayNamesLong() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $weekdayNames = array(
- 0=>'Sunday',
- 1=>'Monday',
- 2=>'Tuesday',
- 3=>'Wednesday',
- 4=>'Thursday',
- 5=>'Friday',
- 6=>'Saturday',
- );
- $this->assertEqual($weekdayNames,$Textual->weekdayNames());
- }
- function testWeekdayNamesShort() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $weekdayNames = array(
- 0=>'Sun',
- 1=>'Mon',
- 2=>'Tue',
- 3=>'Wed',
- 4=>'Thu',
- 5=>'Fri',
- 6=>'Sat',
- );
- $this->assertEqual($weekdayNames,$Textual->weekdayNames('short'));
- }
- function testWeekdayNamesTwo() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $weekdayNames = array(
- 0=>'Su',
- 1=>'Mo',
- 2=>'Tu',
- 3=>'We',
- 4=>'Th',
- 5=>'Fr',
- 6=>'Sa',
- );
- $this->assertEqual($weekdayNames,$Textual->weekdayNames('two'));
- }
- function testWeekdayNamesOne() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $weekdayNames = array(
- 0=>'S',
- 1=>'M',
- 2=>'T',
- 3=>'W',
- 4=>'T',
- 5=>'F',
- 6=>'S',
- );
- $this->assertEqual($weekdayNames,$Textual->weekdayNames('one'));
- }
- function testPrevMonthNameShort() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $this->assertEqual('Sep',$Textual->prevMonthName('short'));
- }
- function testThisMonthNameShort() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $this->assertEqual('Oct',$Textual->thisMonthName('short'));
- }
- function testNextMonthNameShort() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $this->assertEqual('Nov',$Textual->nextMonthName('short'));
- }
- function testThisDayNameShort() {
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $this->assertEqual('Wed',$Textual->thisDayName('short'));
- }
- function testOrderedWeekdaysShort() {
- $weekdayNames = array(
- 0=>'Sun',
- 1=>'Mon',
- 2=>'Tue',
- 3=>'Wed',
- 4=>'Thu',
- 5=>'Fri',
- 6=>'Sat',
- );
- $Textual = new Calendar_Decorator_Textual($this->mockcal);
- $this->assertEqual($weekdayNames,$Textual->orderedWeekdays('short'));
- }
-
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfDecoratorTextual();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_uri_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_uri_test.php
deleted file mode 100644
index 48c212de2..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/decorator_uri_test.php
+++ /dev/null
@@ -1,37 +0,0 @@
-UnitTestCase('Test of Calendar_Decorator_Uri');
- }
- function testFragments() {
- $Uri = new Calendar_Decorator_Uri($this->mockcal);
- $Uri->setFragments('year','month','day','hour','minute','second');
- $this->assertEqual('year=&month=&day=&hour=&minute=&second=',$Uri->this('second'));
- }
- function testScalarFragments() {
- $Uri = new Calendar_Decorator_Uri($this->mockcal);
- $Uri->setFragments('year','month','day','hour','minute','second');
- $Uri->setScalar();
- $this->assertEqual('&&&&&',$Uri->this('second'));
- }
- function testSetSeperator() {
- $Uri = new Calendar_Decorator_Uri($this->mockcal);
- $Uri->setFragments('year','month','day','hour','minute','second');
- $Uri->setSeparator('/');
- $this->assertEqual('year=/month=/day=/hour=/minute=/second=',$Uri->this('second'));
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfDecoratorUri();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/helper_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/helper_test.php
deleted file mode 100644
index cd03bf61b..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/helper_test.php
+++ /dev/null
@@ -1,83 +0,0 @@
-UnitTestCase('Test of Calendar_Table_Helper');
- }
- function setUp() {
- $this->mockengine = new Mock_Calendar_Engine($this);
- $this->mockengine->setReturnValue('getMinYears',1970);
- $this->mockengine->setReturnValue('getMaxYears',2037);
- $this->mockengine->setReturnValue('getMonthsInYear',12);
- $this->mockengine->setReturnValue('getDaysInMonth',31);
- $this->mockengine->setReturnValue('getHoursInDay',24);
- $this->mockengine->setReturnValue('getMinutesInHour',60);
- $this->mockengine->setReturnValue('getSecondsInMinute',60);
- $this->mockengine->setReturnValue('getWeekDays',array(0,1,2,3,4,5,6));
- $this->mockengine->setReturnValue('getDaysInWeek',7);
- $this->mockengine->setReturnValue('getFirstDayOfWeek',1);
- $this->mockengine->setReturnValue('getFirstDayInMonth',3);
- $this->mockcal = new Mock_Calendar_Second($this);
- $this->mockcal->setReturnValue('thisYear',2003);
- $this->mockcal->setReturnValue('thisMonth',10);
- $this->mockcal->setReturnValue('thisDay',15);
- $this->mockcal->setReturnValue('thisHour',13);
- $this->mockcal->setReturnValue('thisMinute',30);
- $this->mockcal->setReturnValue('thisSecond',45);
- $this->mockcal->setReturnValue('getEngine',$this->mockengine);
- }
- function testGetFirstDay() {
- for ( $i = 0; $i <= 7; $i++ ) {
- $Helper = & new Calendar_Table_Helper($this->mockcal,$i);
- $this->assertEqual($Helper->getFirstDay(),$i);
- }
- }
- function testGetDaysOfWeekMonday() {
- $Helper = & new Calendar_Table_Helper($this->mockcal);
- $this->assertEqual($Helper->getDaysOfWeek(),array(1,2,3,4,5,6,0));
- }
- function testGetDaysOfWeekSunday() {
- $Helper = & new Calendar_Table_Helper($this->mockcal,0);
- $this->assertEqual($Helper->getDaysOfWeek(),array(0,1,2,3,4,5,6));
- }
- function testGetDaysOfWeekThursday() {
- $Helper = & new Calendar_Table_Helper($this->mockcal,4);
- $this->assertEqual($Helper->getDaysOfWeek(),array(4,5,6,0,1,2,3));
- }
- function testGetNumWeeks() {
- $Helper = & new Calendar_Table_Helper($this->mockcal);
- $this->assertEqual($Helper->getNumWeeks(),5);
- }
- function testGetNumTableDaysInMonth() {
- $Helper = & new Calendar_Table_Helper($this->mockcal);
- $this->assertEqual($Helper->getNumTableDaysInMonth(),35);
- }
- function testGetEmptyDaysBefore() {
- $Helper = & new Calendar_Table_Helper($this->mockcal);
- $this->assertEqual($Helper->getEmptyDaysBefore(),2);
- }
- function testGetEmptyDaysAfter() {
- $Helper = & new Calendar_Table_Helper($this->mockcal);
- $this->assertEqual($Helper->getEmptyDaysAfter(),33);
- }
- function testGetEmptyDaysAfterOffset() {
- $Helper = & new Calendar_Table_Helper($this->mockcal);
- $this->assertEqual($Helper->getEmptyDaysAfterOffset(),5);
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfTableHelper();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/hour_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/hour_test.php
deleted file mode 100644
index 9e220f44e..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/hour_test.php
+++ /dev/null
@@ -1,98 +0,0 @@
-UnitTestCase('Test of Hour');
- }
- function setUp() {
- $this->cal = new Calendar_Hour(2003,10,25,13);
- }
- function testPrevDay_Array () {
- $this->assertEqual(
- array(
- 'year' => 2003,
- 'month' => 10,
- 'day' => 24,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevDay('array'));
- }
- function testPrevMinute () {
- $this->assertEqual(59,$this->cal->prevMinute());
- }
- function testThisMinute () {
- $this->assertEqual(0,$this->cal->thisMinute());
- }
- function testNextMinute () {
- $this->assertEqual(1,$this->cal->nextMinute());
- }
- function testPrevSecond () {
- $this->assertEqual(59,$this->cal->prevSecond());
- }
- function testThisSecond () {
- $this->assertEqual(0,$this->cal->thisSecond());
- }
- function testNextSecond () {
- $this->assertEqual(1,$this->cal->nextSecond());
- }
- function testGetTimeStamp() {
- $stamp = mktime(13,0,0,10,25,2003);
- $this->assertEqual($stamp,$this->cal->getTimeStamp());
- }
-}
-
-class TestOfHourBuild extends TestOfHour {
- function TestOfHourBuild() {
- $this->UnitTestCase('Test of Hour::build()');
- }
- function testSize() {
- $this->cal->build();
- $this->assertEqual(60,$this->cal->size());
- }
- function testFetch() {
- $this->cal->build();
- $i=0;
- while ( $Child = $this->cal->fetch() ) {
- $i++;
- }
- $this->assertEqual(60,$i);
- }
- function testFetchAll() {
- $this->cal->build();
- $children = array();
- $i = 0;
- while ( $Child = $this->cal->fetch() ) {
- $children[$i]=$Child;
- $i++;
- }
- $this->assertEqual($children,$this->cal->fetchAll());
- }
- function testSelection() {
- require_once(CALENDAR_ROOT . 'Minute.php');
- $selection = array(new Calendar_Minute(2003,10,25,13,32));
- $this->cal->build($selection);
- $i = 0;
- while ( $Child = $this->cal->fetch() ) {
- if ( $i == 32 )
- break;
- $i++;
- }
- $this->assertTrue($Child->isSelected());
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfHour();
- $test->run(new HtmlReporter());
- $test = &new TestOfHourBuild();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/minute_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/minute_test.php
deleted file mode 100644
index 49327ca7a..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/minute_test.php
+++ /dev/null
@@ -1,99 +0,0 @@
-UnitTestCase('Test of Minute');
- }
- function setUp() {
- $this->cal = new Calendar_Minute(2003,10,25,13,32);
- }
- function testPrevDay_Array () {
- $this->assertEqual(
- array(
- 'year' => 2003,
- 'month' => 10,
- 'day' => 24,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevDay('array'));
- }
- function testPrevSecond () {
- $this->assertEqual(59,$this->cal->prevSecond());
- }
- function testThisSecond () {
- $this->assertEqual(0,$this->cal->thisSecond());
- }
- function testThisSecond_Timestamp () {
- $this->assertEqual($this->cal->cE->dateToStamp(
- 2003, 10, 25, 13, 32, 0),
- $this->cal->thisSecond('timestamp'));
- }
- function testNextSecond () {
- $this->assertEqual(1,$this->cal->nextSecond());
- }
- function testNextSecond_Timestamp () {
- $this->assertEqual($this->cal->cE->dateToStamp(
- 2003, 10, 25, 13, 32, 1),
- $this->cal->nextSecond('timestamp'));
- }
- function testGetTimeStamp() {
- $stamp = mktime(13,32,0,10,25,2003);
- $this->assertEqual($stamp,$this->cal->getTimeStamp());
- }
-}
-
-class TestOfMinuteBuild extends TestOfMinute {
- function TestOfMinuteBuild() {
- $this->UnitTestCase('Test of Minute::build()');
- }
- function testSize() {
- $this->cal->build();
- $this->assertEqual(60,$this->cal->size());
- }
- function testFetch() {
- $this->cal->build();
- $i=0;
- while ( $Child = $this->cal->fetch() ) {
- $i++;
- }
- $this->assertEqual(60,$i);
- }
- function testFetchAll() {
- $this->cal->build();
- $children = array();
- $i = 0;
- while ( $Child = $this->cal->fetch() ) {
- $children[$i]=$Child;
- $i++;
- }
- $this->assertEqual($children,$this->cal->fetchAll());
- }
- function testSelection() {
- require_once(CALENDAR_ROOT . 'Second.php');
- $selection = array(new Calendar_Second(2003,10,25,13,32,43));
- $this->cal->build($selection);
- $i = 0;
- while ( $Child = $this->cal->fetch() ) {
- if ( $i == 43 )
- break;
- $i++;
- }
- $this->assertTrue($Child->isSelected());
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfMinute();
- $test->run(new HtmlReporter());
- $test = &new TestOfMinuteBuild();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/month_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/month_test.php
deleted file mode 100644
index d0ef8faba..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/month_test.php
+++ /dev/null
@@ -1,119 +0,0 @@
-UnitTestCase('Test of Month');
- }
- function setUp() {
- $this->cal = new Calendar_Month(2003,10);
- }
- function testPrevMonth_Object() {
- $this->assertEqual(new Calendar_Month(2003, 9), $this->cal->prevMonth('object'));
- }
- function testPrevDay () {
- $this->assertEqual(30,$this->cal->prevDay());
- }
- function testPrevDay_Array () {
- $this->assertEqual(
- array(
- 'year' => 2003,
- 'month' => 9,
- 'day' => 30,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevDay('array'));
- }
- function testThisDay () {
- $this->assertEqual(1,$this->cal->thisDay());
- }
- function testNextDay () {
- $this->assertEqual(2,$this->cal->nextDay());
- }
- function testPrevHour () {
- $this->assertEqual(23,$this->cal->prevHour());
- }
- function testThisHour () {
- $this->assertEqual(0,$this->cal->thisHour());
- }
- function testNextHour () {
- $this->assertEqual(1,$this->cal->nextHour());
- }
- function testPrevMinute () {
- $this->assertEqual(59,$this->cal->prevMinute());
- }
- function testThisMinute () {
- $this->assertEqual(0,$this->cal->thisMinute());
- }
- function testNextMinute () {
- $this->assertEqual(1,$this->cal->nextMinute());
- }
- function testPrevSecond () {
- $this->assertEqual(59,$this->cal->prevSecond());
- }
- function testThisSecond () {
- $this->assertEqual(0,$this->cal->thisSecond());
- }
- function testNextSecond () {
- $this->assertEqual(1,$this->cal->nextSecond());
- }
- function testGetTimeStamp() {
- $stamp = mktime(0,0,0,10,1,2003);
- $this->assertEqual($stamp,$this->cal->getTimeStamp());
- }
-}
-
-class TestOfMonthBuild extends TestOfMonth {
- function TestOfMonthBuild() {
- $this->UnitTestCase('Test of Month::build()');
- }
- function testSize() {
- $this->cal->build();
- $this->assertEqual(31,$this->cal->size());
- }
- function testFetch() {
- $this->cal->build();
- $i=0;
- while ( $Child = $this->cal->fetch() ) {
- $i++;
- }
- $this->assertEqual(31,$i);
- }
- function testFetchAll() {
- $this->cal->build();
- $children = array();
- $i = 1;
- while ( $Child = $this->cal->fetch() ) {
- $children[$i]=$Child;
- $i++;
- }
- $this->assertEqual($children,$this->cal->fetchAll());
- }
- function testSelection() {
- require_once(CALENDAR_ROOT . 'Day.php');
- $selection = array(new Calendar_Day(2003,10,25));
- $this->cal->build($selection);
- $i = 1;
- while ( $Child = $this->cal->fetch() ) {
- if ( $i == 25 )
- break;
- $i++;
- }
- $this->assertTrue($Child->isSelected());
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfMonth();
- $test->run(new HtmlReporter());
- $test = &new TestOfMonthBuild();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/month_weekdays_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/month_weekdays_test.php
deleted file mode 100644
index ba0be7313..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/month_weekdays_test.php
+++ /dev/null
@@ -1,130 +0,0 @@
-UnitTestCase('Test of Month Weekdays');
- }
- function setUp() {
- $this->cal = new Calendar_Month_Weekdays(2003,10);
- }
- function testPrevDay () {
- $this->assertEqual(30,$this->cal->prevDay());
- }
- function testPrevDay_Array () {
- $this->assertEqual(
- array(
- 'year' => 2003,
- 'month' => 9,
- 'day' => 30,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevDay('array'));
- }
- function testThisDay () {
- $this->assertEqual(1,$this->cal->thisDay());
- }
- function testNextDay () {
- $this->assertEqual(2,$this->cal->nextDay());
- }
- function testPrevHour () {
- $this->assertEqual(23,$this->cal->prevHour());
- }
- function testThisHour () {
- $this->assertEqual(0,$this->cal->thisHour());
- }
- function testNextHour () {
- $this->assertEqual(1,$this->cal->nextHour());
- }
- function testPrevMinute () {
- $this->assertEqual(59,$this->cal->prevMinute());
- }
- function testThisMinute () {
- $this->assertEqual(0,$this->cal->thisMinute());
- }
- function testNextMinute () {
- $this->assertEqual(1,$this->cal->nextMinute());
- }
- function testPrevSecond () {
- $this->assertEqual(59,$this->cal->prevSecond());
- }
- function testThisSecond () {
- $this->assertEqual(0,$this->cal->thisSecond());
- }
- function testNextSecond () {
- $this->assertEqual(1,$this->cal->nextSecond());
- }
- function testGetTimeStamp() {
- $stamp = mktime(0,0,0,10,1,2003);
- $this->assertEqual($stamp,$this->cal->getTimeStamp());
- }
-}
-
-class TestOfMonthWeekdaysBuild extends TestOfMonthWeekdays {
- function TestOfMonthWeekdaysBuild() {
- $this->UnitTestCase('Test of Month_Weekdays::build()');
- }
- function testSize() {
- $this->cal->build();
- $this->assertEqual(35,$this->cal->size());
- }
- function testFetch() {
- $this->cal->build();
- $i=0;
- while ( $Child = $this->cal->fetch() ) {
- $i++;
- }
- $this->assertEqual(35,$i);
- }
- function testFetchAll() {
- $this->cal->build();
- $children = array();
- $i = 1;
- while ( $Child = $this->cal->fetch() ) {
- $children[$i]=$Child;
- $i++;
- }
- $this->assertEqual($children,$this->cal->fetchAll());
- }
- function testSelection() {
- require_once(CALENDAR_ROOT . 'Day.php');
- $selection = array(new Calendar_Day(2003,10,25));
- $this->cal->build($selection);
- $i = 1;
- while ( $Child = $this->cal->fetch() ) {
- if ( $i == 27 )
- break;
- $i++;
- }
- $this->assertTrue($Child->isSelected());
- }
- function testEmptyCount() {
- $this->cal->build();
- $empty = 0;
- while ( $Child = $this->cal->fetch() ) {
- if ( $Child->isEmpty() )
- $empty++;
- }
- $this->assertEqual(4,$empty);
- }
- function testEmptyDaysBefore_AfterAdjust() {
- $this->cal = new Calendar_Month_Weekdays(2004,0);
- $this->cal->build();
- $this->assertEqual(0,$this->cal->tableHelper->getEmptyDaysBefore());
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfMonthWeekdays();
- $test->run(new HtmlReporter());
- $test = &new TestOfMonthWeekdaysBuild();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/month_weeks_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/month_weeks_test.php
deleted file mode 100644
index 1cfb8e8df..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/month_weeks_test.php
+++ /dev/null
@@ -1,125 +0,0 @@
-UnitTestCase('Test of Month Weeks');
- }
- function setUp() {
- $this->cal = new Calendar_Month_Weeks(2003,10);
- }
- function testPrevDay () {
- $this->assertEqual(30,$this->cal->prevDay());
- }
- function testPrevDay_Array () {
- $this->assertEqual(
- array(
- 'year' => 2003,
- 'month' => 9,
- 'day' => 30,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevDay('array'));
- }
- function testThisDay () {
- $this->assertEqual(1,$this->cal->thisDay());
- }
- function testNextDay () {
- $this->assertEqual(2,$this->cal->nextDay());
- }
- function testPrevHour () {
- $this->assertEqual(23,$this->cal->prevHour());
- }
- function testThisHour () {
- $this->assertEqual(0,$this->cal->thisHour());
- }
- function testNextHour () {
- $this->assertEqual(1,$this->cal->nextHour());
- }
- function testPrevMinute () {
- $this->assertEqual(59,$this->cal->prevMinute());
- }
- function testThisMinute () {
- $this->assertEqual(0,$this->cal->thisMinute());
- }
- function testNextMinute () {
- $this->assertEqual(1,$this->cal->nextMinute());
- }
- function testPrevSecond () {
- $this->assertEqual(59,$this->cal->prevSecond());
- }
- function testThisSecond () {
- $this->assertEqual(0,$this->cal->thisSecond());
- }
- function testNextSecond () {
- $this->assertEqual(1,$this->cal->nextSecond());
- }
- function testGetTimeStamp() {
- $stamp = mktime(0,0,0,10,1,2003);
- $this->assertEqual($stamp,$this->cal->getTimeStamp());
- }
-}
-
-class TestOfMonthWeeksBuild extends TestOfMonthWeeks {
- function TestOfMonthWeeksBuild() {
- $this->UnitTestCase('Test of Month_Weeks::build()');
- }
- function testSize() {
- $this->cal->build();
- $this->assertEqual(5,$this->cal->size());
- }
-
- function testFetch() {
- $this->cal->build();
- $i=0;
- while ( $Child = $this->cal->fetch() ) {
- $i++;
- }
- $this->assertEqual(5,$i);
- }
-/* Recusive dependency issue with SimpleTest
- function testFetchAll() {
- $this->cal->build();
- $children = array();
- $i = 1;
- while ( $Child = $this->cal->fetch() ) {
- $children[$i]=$Child;
- $i++;
- }
- $this->assertEqual($children,$this->cal->fetchAll());
- }
-*/
- function testSelection() {
- require_once(CALENDAR_ROOT . 'Week.php');
- $selection = array(new Calendar_Week(2003, 10, 12));
- $this->cal->build($selection);
- $i = 1;
- while ($Child = $this->cal->fetch()) {
- if ($i == 2) {
- break; //12-10-2003 is the 2nd day of the week
- }
- $i++;
- }
- $this->assertTrue($Child->isSelected());
- }
- function testEmptyDaysBefore_AfterAdjust() {
- $this->cal = new Calendar_Month_Weeks(2004,0);
- $this->cal->build();
- $this->assertEqual(0,$this->cal->tableHelper->getEmptyDaysBefore());
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfMonthWeeks();
- $test->run(new HtmlReporter());
- $test = &new TestOfMonthWeeksBuild();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/peardate_engine_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/peardate_engine_test.php
deleted file mode 100644
index 4606185eb..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/peardate_engine_test.php
+++ /dev/null
@@ -1,124 +0,0 @@
-UnitTestCase('Test of Calendar_Engine_PearDate');
- }
- function setUp() {
- $this->engine = new Calendar_Engine_PearDate();
- }
- function testGetSecondsInMinute() {
- $this->assertEqual($this->engine->getSecondsInMinute(),60);
- }
- function testGetMinutesInHour() {
- $this->assertEqual($this->engine->getMinutesInHour(),60);
- }
- function testGetHoursInDay() {
- $this->assertEqual($this->engine->getHoursInDay(),24);
- }
- function testGetFirstDayOfWeek() {
- $this->assertEqual($this->engine->getFirstDayOfWeek(),1);
- }
- function testGetWeekDays() {
- $this->assertEqual($this->engine->getWeekDays(),array(0,1,2,3,4,5,6));
- }
- function testGetDaysInWeek() {
- $this->assertEqual($this->engine->getDaysInWeek(),7);
- }
- function testGetWeekNInYear() {
- $this->assertEqual($this->engine->getWeekNInYear(2003, 11, 3), 45);
- }
- function testGetWeekNInMonth() {
- $this->assertEqual($this->engine->getWeekNInMonth(2003, 11, 3), 2);
- }
- function testGetWeeksInMonth0() {
- $this->assertEqual($this->engine->getWeeksInMonth(2003, 11, 0), 6); //week starts on sunday
- }
- function testGetWeeksInMonth1() {
- $this->assertEqual($this->engine->getWeeksInMonth(2003, 11, 1), 5); //week starts on monday
- }
- function testGetWeeksInMonth2() {
- $this->assertEqual($this->engine->getWeeksInMonth(2003, 2, 6), 4); //week starts on saturday
- }
- function testGetWeeksInMonth3() {
- // Unusual cases that can cause fails (shows up with example 21.php)
- $this->assertEqual($this->engine->getWeeksInMonth(2004,2,1),5);
- $this->assertEqual($this->engine->getWeeksInMonth(2004,8,1),6);
- }
- function testGetDayOfWeek() {
- $this->assertEqual($this->engine->getDayOfWeek(2003, 11, 18), 2);
- }
- function testGetFirstDayInMonth() {
- $this->assertEqual($this->engine->getFirstDayInMonth(2003,10),3);
- }
- function testGetDaysInMonth() {
- $this->assertEqual($this->engine->getDaysInMonth(2003,10),31);
- }
- function testGetMinYears() {
- $this->assertEqual($this->engine->getMinYears(),0);
- }
- function testGetMaxYears() {
- $this->assertEqual($this->engine->getMaxYears(),9999);
- }
- function testDateToStamp() {
- $stamp = '2003-10-15 13:30:45';
- $this->assertEqual($this->engine->dateToStamp(2003,10,15,13,30,45),$stamp);
- }
- function testStampToSecond() {
- $stamp = '2003-10-15 13:30:45';
- $this->assertEqual($this->engine->stampToSecond($stamp),45);
- }
- function testStampToMinute() {
- $stamp = '2003-10-15 13:30:45';
- $this->assertEqual($this->engine->stampToMinute($stamp),30);
- }
- function testStampToHour() {
- $stamp = '2003-10-15 13:30:45';
- $this->assertEqual($this->engine->stampToHour($stamp),13);
- }
- function testStampToDay() {
- $stamp = '2003-10-15 13:30:45';
- $this->assertEqual($this->engine->stampToDay($stamp),15);
- }
- function testStampToMonth() {
- $stamp = '2003-10-15 13:30:45';
- $this->assertEqual($this->engine->stampToMonth($stamp),10);
- }
- function testStampToYear() {
- $stamp = '2003-10-15 13:30:45';
- $this->assertEqual($this->engine->stampToYear($stamp),2003);
- }
- function testAdjustDate() {
- $stamp = '2004-01-01 13:30:45';
- $y = $this->engine->stampToYear($stamp);
- $m = $this->engine->stampToMonth($stamp);
- $d = $this->engine->stampToDay($stamp);
-
- //the first day of the month should be thursday
- $this->assertEqual($this->engine->getDayOfWeek($y, $m, $d), 4);
-
- $m--; // 2004-00-01 => 2003-12-01
- $this->engine->adjustDate($y, $m, $d, $dummy, $dummy, $dummy);
-
- $this->assertEqual($y, 2003);
- $this->assertEqual($m, 12);
- $this->assertEqual($d, 1);
-
- // get last day and check if it's wednesday
- $d = $this->engine->getDaysInMonth($y, $m);
-
- $this->assertEqual($this->engine->getDayOfWeek($y, $m, $d), 3);
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfPearDateEngine();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/second_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/second_test.php
deleted file mode 100644
index ea93da6c7..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/second_test.php
+++ /dev/null
@@ -1,34 +0,0 @@
-UnitTestCase('Test of Second');
- }
- function setUp() {
- $this->cal = new Calendar_Second(2003,10,25,13,32,43);
- }
- function testPrevDay_Array () {
- $this->assertEqual(
- array(
- 'year' => 2003,
- 'month' => 10,
- 'day' => 24,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevDay('array'));
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfSecond();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/simple_include.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/simple_include.php
deleted file mode 100644
index c32abeecc..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/simple_include.php
+++ /dev/null
@@ -1,10 +0,0 @@
-
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/table_helper_tests.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/table_helper_tests.php
deleted file mode 100644
index 8ffcb192a..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/table_helper_tests.php
+++ /dev/null
@@ -1,19 +0,0 @@
-GroupTest('Table Helper Tests');
- $this->addTestFile('helper_test.php');
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TableHelperTests();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/unixts_engine_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/unixts_engine_test.php
deleted file mode 100644
index 69e61f408..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/unixts_engine_test.php
+++ /dev/null
@@ -1,104 +0,0 @@
-UnitTestCase('Test of Calendar_Engine_UnixTs');
- }
- function setUp() {
- $this->engine = new Calendar_Engine_UnixTs();
- }
- function testGetSecondsInMinute() {
- $this->assertEqual($this->engine->getSecondsInMinute(),60);
- }
- function testGetMinutesInHour() {
- $this->assertEqual($this->engine->getMinutesInHour(),60);
- }
- function testGetHoursInDay() {
- $this->assertEqual($this->engine->getHoursInDay(),24);
- }
- function testGetFirstDayOfWeek() {
- $this->assertEqual($this->engine->getFirstDayOfWeek(),1);
- }
- function testGetWeekDays() {
- $this->assertEqual($this->engine->getWeekDays(),array(0,1,2,3,4,5,6));
- }
- function testGetDaysInWeek() {
- $this->assertEqual($this->engine->getDaysInWeek(),7);
- }
- function testGetWeekNInYear() {
- $this->assertEqual($this->engine->getWeekNInYear(2003, 11, 3), 45);
- }
- function testGetWeekNInMonth() {
- $this->assertEqual($this->engine->getWeekNInMonth(2003, 11, 3), 2);
- }
- function testGetWeeksInMonth0() {
- $this->assertEqual($this->engine->getWeeksInMonth(2003, 11, 0), 6); //week starts on sunday
- }
- function testGetWeeksInMonth1() {
- $this->assertEqual($this->engine->getWeeksInMonth(2003, 11, 1), 5); //week starts on monday
- }
- function testGetWeeksInMonth2() {
- $this->assertEqual($this->engine->getWeeksInMonth(2003, 2, 6), 4); //week starts on saturday
- }
- function testGetWeeksInMonth3() {
- // Unusual cases that can cause fails (shows up with example 21.php)
- $this->assertEqual($this->engine->getWeeksInMonth(2004,2,1),5);
- $this->assertEqual($this->engine->getWeeksInMonth(2004,8,1),6);
- }
- function testGetDayOfWeek() {
- $this->assertEqual($this->engine->getDayOfWeek(2003, 11, 18), 2);
- }
- function testGetFirstDayInMonth() {
- $this->assertEqual($this->engine->getFirstDayInMonth(2003,10),3);
- }
- function testGetDaysInMonth() {
- $this->assertEqual($this->engine->getDaysInMonth(2003,10),31);
- }
- function testGetMinYears() {
- $test = strpos(PHP_OS, 'WIN') >= 0 ? 1970 : 1902;
- $this->assertEqual($this->engine->getMinYears(),$test);
- }
- function testGetMaxYears() {
- $this->assertEqual($this->engine->getMaxYears(),2037);
- }
- function testDateToStamp() {
- $stamp = mktime(0,0,0,10,15,2003);
- $this->assertEqual($this->engine->dateToStamp(2003,10,15,0,0,0),$stamp);
- }
- function testStampToSecond() {
- $stamp = mktime(13,30,45,10,15,2003);
- $this->assertEqual($this->engine->stampToSecond($stamp),45);
- }
- function testStampToMinute() {
- $stamp = mktime(13,30,45,10,15,2003);
- $this->assertEqual($this->engine->stampToMinute($stamp),30);
- }
- function testStampToHour() {
- $stamp = mktime(13,30,45,10,15,2003);
- $this->assertEqual($this->engine->stampToHour($stamp),13);
- }
- function testStampToDay() {
- $stamp = mktime(13,30,45,10,15,2003);
- $this->assertEqual($this->engine->stampToDay($stamp),15);
- }
- function testStampToMonth() {
- $stamp = mktime(13,30,45,10,15,2003);
- $this->assertEqual($this->engine->stampToMonth($stamp),10);
- }
- function testStampToYear() {
- $stamp = mktime(13,30,45,10,15,2003);
- $this->assertEqual($this->engine->stampToYear($stamp),2003);
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfUnixTsEngine();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/util_tests.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/util_tests.php
deleted file mode 100644
index fd578abb0..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/util_tests.php
+++ /dev/null
@@ -1,20 +0,0 @@
-GroupTest('Util Tests');
- $this->addTestFile('util_uri_test.php');
- $this->addTestFile('util_textual_test.php');
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new UtilTests();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/util_textual_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/util_textual_test.php
deleted file mode 100644
index 3fd80274e..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/util_textual_test.php
+++ /dev/null
@@ -1,191 +0,0 @@
-UnitTestCase('Test of Calendar_Util_Textual');
- }
- function setUp() {
- $this->mockengine = new Mock_Calendar_Engine($this);
- $this->mockcal = new Mock_Calendar_Second($this);
- $this->mockcal->setReturnValue('prevYear',2002);
- $this->mockcal->setReturnValue('thisYear',2003);
- $this->mockcal->setReturnValue('nextYear',2004);
- $this->mockcal->setReturnValue('prevMonth',9);
- $this->mockcal->setReturnValue('thisMonth',10);
- $this->mockcal->setReturnValue('nextMonth',11);
- $this->mockcal->setReturnValue('prevDay',14);
- $this->mockcal->setReturnValue('thisDay',15);
- $this->mockcal->setReturnValue('nextDay',16);
- $this->mockcal->setReturnValue('prevHour',12);
- $this->mockcal->setReturnValue('thisHour',13);
- $this->mockcal->setReturnValue('nextHour',14);
- $this->mockcal->setReturnValue('prevMinute',29);
- $this->mockcal->setReturnValue('thisMinute',30);
- $this->mockcal->setReturnValue('nextMinute',31);
- $this->mockcal->setReturnValue('prevSecond',44);
- $this->mockcal->setReturnValue('thisSecond',45);
- $this->mockcal->setReturnValue('nextSecond',46);
- $this->mockcal->setReturnValue('getEngine',$this->mockengine);
- $this->mockcal->setReturnValue('getTimestamp',12345);
- }
- function tearDown() {
- unset ( $this->engine );
- unset ( $this->mockcal );
- }
- function testMonthNamesLong() {
- $monthNames = array(
- 1=>'January',
- 2=>'February',
- 3=>'March',
- 4=>'April',
- 5=>'May',
- 6=>'June',
- 7=>'July',
- 8=>'August',
- 9=>'September',
- 10=>'October',
- 11=>'November',
- 12=>'December',
- );
- $this->assertEqual($monthNames,Calendar_Util_Textual::monthNames());
- }
- function testMonthNamesShort() {
- $monthNames = array(
- 1=>'Jan',
- 2=>'Feb',
- 3=>'Mar',
- 4=>'Apr',
- 5=>'May',
- 6=>'Jun',
- 7=>'Jul',
- 8=>'Aug',
- 9=>'Sep',
- 10=>'Oct',
- 11=>'Nov',
- 12=>'Dec',
- );
- $this->assertEqual($monthNames,Calendar_Util_Textual::monthNames('short'));
- }
- function testMonthNamesTwo() {
- $monthNames = array(
- 1=>'Ja',
- 2=>'Fe',
- 3=>'Ma',
- 4=>'Ap',
- 5=>'Ma',
- 6=>'Ju',
- 7=>'Ju',
- 8=>'Au',
- 9=>'Se',
- 10=>'Oc',
- 11=>'No',
- 12=>'De',
- );
- $this->assertEqual($monthNames,Calendar_Util_Textual::monthNames('two'));
- }
- function testMonthNamesOne() {
- $monthNames = array(
- 1=>'J',
- 2=>'F',
- 3=>'M',
- 4=>'A',
- 5=>'M',
- 6=>'J',
- 7=>'J',
- 8=>'A',
- 9=>'S',
- 10=>'O',
- 11=>'N',
- 12=>'D',
- );
- $this->assertEqual($monthNames,Calendar_Util_Textual::monthNames('one'));
- }
- function testWeekdayNamesLong() {
- $weekdayNames = array(
- 0=>'Sunday',
- 1=>'Monday',
- 2=>'Tuesday',
- 3=>'Wednesday',
- 4=>'Thursday',
- 5=>'Friday',
- 6=>'Saturday',
- );
- $this->assertEqual($weekdayNames,Calendar_Util_Textual::weekdayNames());
- }
- function testWeekdayNamesShort() {
- $weekdayNames = array(
- 0=>'Sun',
- 1=>'Mon',
- 2=>'Tue',
- 3=>'Wed',
- 4=>'Thu',
- 5=>'Fri',
- 6=>'Sat',
- );
- $this->assertEqual($weekdayNames,Calendar_Util_Textual::weekdayNames('short'));
- }
- function testWeekdayNamesTwo() {
- $weekdayNames = array(
- 0=>'Su',
- 1=>'Mo',
- 2=>'Tu',
- 3=>'We',
- 4=>'Th',
- 5=>'Fr',
- 6=>'Sa',
- );
- $this->assertEqual($weekdayNames,Calendar_Util_Textual::weekdayNames('two'));
- }
- function testWeekdayNamesOne() {
- $weekdayNames = array(
- 0=>'S',
- 1=>'M',
- 2=>'T',
- 3=>'W',
- 4=>'T',
- 5=>'F',
- 6=>'S',
- );
- $this->assertEqual($weekdayNames,Calendar_Util_Textual::weekdayNames('one'));
- }
- function testPrevMonthNameShort() {
- $this->assertEqual('Sep',Calendar_Util_Textual::prevMonthName($this->mockcal,'short'));
- }
- function testThisMonthNameShort() {
- $this->assertEqual('Oct',Calendar_Util_Textual::thisMonthName($this->mockcal,'short'));
- }
- function testNextMonthNameShort() {
- $this->assertEqual('Nov',Calendar_Util_Textual::nextMonthName($this->mockcal,'short'));
- }
- function testThisDayNameShort() {
- $this->assertEqual('Wed',Calendar_Util_Textual::thisDayName($this->mockcal,'short'));
- }
- function testOrderedWeekdaysShort() {
- $weekdayNames = array(
- 0=>'Sun',
- 1=>'Mon',
- 2=>'Tue',
- 3=>'Wed',
- 4=>'Thu',
- 5=>'Fri',
- 6=>'Sat',
- );
- $this->assertEqual($weekdayNames,Calendar_Util_Textual::orderedWeekdays($this->mockcal,'short'));
- }
-
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfUtilTextual();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/util_uri_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/util_uri_test.php
deleted file mode 100644
index 7b4afe1ad..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/util_uri_test.php
+++ /dev/null
@@ -1,54 +0,0 @@
-UnitTestCase('Test of Calendar_Util_Uri');
- }
-
- function setUp() {
- $this->MockCal = & new Mock_Calendar_Day($this);
- $this->MockCal->setReturnValue('getEngine',new Mock_Calendar_Engine($this));
- }
-
- function testFragments() {
- $Uri = new Calendar_Util_Uri('y','m','d','h','m','s');
- $Uri->setFragments('year','month','day','hour','minute','second');
- $this->assertEqual(
- 'year=&month=&day=&hour=&minute=&second=',
- $Uri->this($this->MockCal, 'second')
- );
- }
- function testScalarFragments() {
- $Uri = new Calendar_Util_Uri('year','month','day','hour','minute','second');
- $Uri->scalar = true;
- $this->assertEqual(
- '&&&&&',
- $Uri->this($this->MockCal, 'second')
- );
- }
- function testSetSeperator() {
- $Uri = new Calendar_Util_Uri('year','month','day','hour','minute','second');
- $Uri->separator = '/';
- $this->assertEqual(
- 'year=/month=/day=/hour=/minute=/second=',
- $Uri->this($this->MockCal, 'second')
- );
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfUtilUri();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/validator_error_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/validator_error_test.php
deleted file mode 100644
index aafc99c51..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/validator_error_test.php
+++ /dev/null
@@ -1,34 +0,0 @@
-UnitTestCase('Test of Validation Error');
- }
- function setUp() {
- $this->vError = new Calendar_Validation_Error('foo',20,'bar');
- }
- function testGetUnit() {
- $this->assertEqual($this->vError->getUnit(),'foo');
- }
- function testGetValue() {
- $this->assertEqual($this->vError->getValue(),20);
- }
- function testGetMessage() {
- $this->assertEqual($this->vError->getMessage(),'bar');
- }
- function testToString() {
- $this->assertEqual($this->vError->toString(),'foo = 20 [bar]');
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfValidationError();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/validator_tests.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/validator_tests.php
deleted file mode 100644
index 6749b1173..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/validator_tests.php
+++ /dev/null
@@ -1,20 +0,0 @@
-GroupTest('Validator Tests');
- $this->addTestFile('validator_unit_test.php');
- $this->addTestFile('validator_error_test.php');
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new ValidatorTests();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/validator_unit_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/validator_unit_test.php
deleted file mode 100644
index 3f4a58a40..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/validator_unit_test.php
+++ /dev/null
@@ -1,210 +0,0 @@
-UnitTestCase('Test of Validator');
- }
- function setUp() {
- $this->mockengine = new Mock_Calendar_Engine($this);
- $this->mockengine->setReturnValue('getMinYears',1970);
- $this->mockengine->setReturnValue('getMaxYears',2037);
- $this->mockengine->setReturnValue('getMonthsInYear',12);
- $this->mockengine->setReturnValue('getDaysInMonth',30);
- $this->mockengine->setReturnValue('getHoursInDay',24);
- $this->mockengine->setReturnValue('getMinutesInHour',60);
- $this->mockengine->setReturnValue('getSecondsInMinute',60);
- $this->mockcal = new Mock_Calendar_Second($this);
- $this->mockcal->setReturnValue('getEngine',$this->mockengine);
- }
- function tearDown() {
- unset ($this->mockengine);
- unset ($this->mocksecond);
- }
- function testIsValidYear() {
- $this->mockcal->setReturnValue('thisYear',2000);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertTrue($Validator->isValidYear());
- }
- function testIsValidYearTooSmall() {
- $this->mockcal->setReturnValue('thisYear',1969);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidYear());
- }
- function testIsValidYearTooLarge() {
- $this->mockcal->setReturnValue('thisYear',2038);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidYear());
- }
- function testIsValidMonth() {
- $this->mockcal->setReturnValue('thisMonth',10);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertTrue($Validator->isValidMonth());
- }
- function testIsValidMonthTooSmall() {
- $this->mockcal->setReturnValue('thisMonth',0);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidMonth());
- }
- function testIsValidMonthTooLarge() {
- $this->mockcal->setReturnValue('thisMonth',13);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidMonth());
- }
- function testIsValidDay() {
- $this->mockcal->setReturnValue('thisDay',10);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertTrue($Validator->isValidDay());
- }
- function testIsValidDayTooSmall() {
- $this->mockcal->setReturnValue('thisDay',0);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidDay());
- }
- function testIsValidDayTooLarge() {
- $this->mockcal->setReturnValue('thisDay',31);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidDay());
- }
- function testIsValidHour() {
- $this->mockcal->setReturnValue('thisHour',10);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertTrue($Validator->isValidHour());
- }
- function testIsValidHourTooSmall() {
- $this->mockcal->setReturnValue('thisHour',-1);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidHour());
- }
- function testIsValidHourTooLarge() {
- $this->mockcal->setReturnValue('thisHour',24);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidHour());
- }
- function testIsValidMinute() {
- $this->mockcal->setReturnValue('thisMinute',30);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertTrue($Validator->isValidMinute());
- }
- function testIsValidMinuteTooSmall() {
- $this->mockcal->setReturnValue('thisMinute',-1);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidMinute());
- }
- function testIsValidMinuteTooLarge() {
- $this->mockcal->setReturnValue('thisMinute',60);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidMinute());
- }
- function testIsValidSecond() {
- $this->mockcal->setReturnValue('thisSecond',30);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertTrue($Validator->isValidSecond());
- }
- function testIsValidSecondTooSmall() {
- $this->mockcal->setReturnValue('thisSecond',-1);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidSecond());
- }
- function testIsValidSecondTooLarge() {
- $this->mockcal->setReturnValue('thisSecond',60);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValidSecond());
- }
- function testIsValid() {
- $this->mockcal->setReturnValue('thisYear',2000);
- $this->mockcal->setReturnValue('thisMonth',5);
- $this->mockcal->setReturnValue('thisDay',15);
- $this->mockcal->setReturnValue('thisHour',13);
- $this->mockcal->setReturnValue('thisMinute',30);
- $this->mockcal->setReturnValue('thisSecond',40);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertTrue($Validator->isValid());
- }
- function testIsValidAllWrong() {
- $this->mockcal->setReturnValue('thisYear',2038);
- $this->mockcal->setReturnValue('thisMonth',13);
- $this->mockcal->setReturnValue('thisDay',31);
- $this->mockcal->day = 31;
- $this->mockcal->setReturnValue('thisHour',24);
- $this->mockcal->setReturnValue('thisMinute',60);
- $this->mockcal->setReturnValue('thisSecond',60);
- $Validator = & new Calendar_Validator($this->mockcal);
- $this->assertFalse($Validator->isValid());
- $i = 0;
- while ( $Validator->fetch() ) {
- $i++;
- }
- $this->assertEqual($i,6);
- }
-}
-
-class TestOfValidatorLive extends UnitTestCase {
- function TestOfValidatorLive() {
- $this->UnitTestCase('Test of Validator Live');
- }
- function testYear() {
- $Unit = new Calendar_Year(2038);
- $Validator = & $Unit->getValidator();
- $this->assertFalse($Validator->isValidYear());
- }
- function testMonth() {
- $Unit = new Calendar_Month(2000,13);
- $Validator = & $Unit->getValidator();
- $this->assertFalse($Validator->isValidMonth());
- }
-/*
- function testWeek() {
- $Unit = new Calendar_Week(2000,12,7);
- $Validator = & $Unit->getValidator();
- $this->assertFalse($Validator->isValidWeek());
- }
-*/
- function testDay() {
- $Unit = new Calendar_Day(2000,12,32);
- $Validator = & $Unit->getValidator();
- $this->assertFalse($Validator->isValidDay());
- }
- function testHour() {
- $Unit = new Calendar_Hour(2000,12,20,24);
- $Validator = & $Unit->getValidator();
- $this->assertFalse($Validator->isValidHour());
- }
- function testMinute() {
- $Unit = new Calendar_Minute(2000,12,20,23,60);
- $Validator = & $Unit->getValidator();
- $this->assertFalse($Validator->isValidMinute());
- }
- function testSecond() {
- $Unit = new Calendar_Second(2000,12,20,23,59,60);
- $Validator = & $Unit->getValidator();
- $this->assertFalse($Validator->isValidSecond());
- }
- function testAllBad() {
- $Unit = new Calendar_Second(2000,13,32,24,60,60);
- $this->assertFalse($Unit->isValid());
- $Validator = & $Unit->getValidator();
- $i = 0;
- while ( $Validator->fetch() ) {
- $i++;
- }
- $this->assertEqual($i,5);
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfValidator();
- $test->run(new HtmlReporter());
- $test = &new TestOfValidatorLive();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/week_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/week_test.php
deleted file mode 100644
index 8073b985a..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/week_test.php
+++ /dev/null
@@ -1,214 +0,0 @@
-UnitTestCase('Test of Week');
- }
- function setUp() {
- $this->cal = new Calendar_Week(2003, 10, 9, 1); //force firstDay = monday
- //print_r($this->cal);
- }
- function testPrevDay () {
- $this->assertEqual(8, $this->cal->prevDay());
- }
- function testPrevDay_Array () {
- $this->assertEqual(
- array(
- 'year' => 2003,
- 'month' => 10,
- 'day' => 8,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevDay('array'));
- }
- function testThisDay () {
- $this->assertEqual(9, $this->cal->thisDay());
- }
- function testNextDay () {
- $this->assertEqual(10, $this->cal->nextDay());
- }
- function testPrevHour () {
- $this->assertEqual(23, $this->cal->prevHour());
- }
- function testThisHour () {
- $this->assertEqual(0, $this->cal->thisHour());
- }
- function testNextHour () {
- $this->assertEqual(1, $this->cal->nextHour());
- }
- function testPrevMinute () {
- $this->assertEqual(59, $this->cal->prevMinute());
- }
- function testThisMinute () {
- $this->assertEqual(0, $this->cal->thisMinute());
- }
- function testNextMinute () {
- $this->assertEqual(1, $this->cal->nextMinute());
- }
- function testPrevSecond () {
- $this->assertEqual(59, $this->cal->prevSecond());
- }
- function testThisSecond () {
- $this->assertEqual(0, $this->cal->thisSecond());
- }
- function testNextSecond () {
- $this->assertEqual(1, $this->cal->nextSecond());
- }
- function testGetTimeStamp() {
- $stamp = mktime(0,0,0,10,9,2003);
- $this->assertEqual($stamp,$this->cal->getTimeStamp());
- }
- function testNewTimeStamp() {
- $stamp = mktime(0,0,0,7,28,2004);
- $this->cal->setTimestamp($stamp);
- $this->assertEqual('30 2004', date('W Y', $this->cal->prevWeek(true)));
- $this->assertEqual('31 2004', date('W Y', $this->cal->thisWeek(true)));
- $this->assertEqual('32 2004', date('W Y', $this->cal->nextWeek(true)));
- }
- function testPrevWeekInMonth() {
- $this->assertEqual(1, $this->cal->prevWeek());
- }
- function testThisWeekInMonth() {
- $this->assertEqual(2, $this->cal->thisWeek());
- }
- function testNextWeekInMonth() {
- $this->assertEqual(3, $this->cal->nextWeek());
- }
- function testPrevWeekInYear() {
- $this->assertEqual(40, $this->cal->prevWeek('n_in_year'));
- }
- function testThisWeekInYear() {
- $this->assertEqual(41, $this->cal->thisWeek('n_in_year'));
- }
- function testNextWeekInYear() {
- $this->assertEqual(42, $this->cal->nextWeek('n_in_year'));
- }
- function testPrevWeekArray() {
- $testArray = array(
- 'year'=>2003,
- 'month'=>9,
- 'day'=>29,
- 'hour'=>0,
- 'minute'=>0,
- 'second'=>0
- );
- $this->assertEqual($testArray, $this->cal->prevWeek('array'));
- }
- function testThisWeekArray() {
- $testArray = array(
- 'year'=>2003,
- 'month'=>10,
- 'day'=>6,
- 'hour'=>0,
- 'minute'=>0,
- 'second'=>0
- );
- $this->assertEqual($testArray, $this->cal->thisWeek('array'));
- }
- function testNextWeekArray() {
- $testArray = array(
- 'year'=>2003,
- 'month'=>10,
- 'day'=>13,
- 'hour'=>0,
- 'minute'=>0,
- 'second'=>0
- );
- $this->assertEqual($testArray, $this->cal->nextWeek('array'));
- }
- function testPrevWeekObject() {
- $testWeek = new Calendar_Week(2003,9,29);
- $Week = $this->cal->prevWeek('object');
- $this->assertEqual($testWeek->getTimeStamp(),$Week->getTimeStamp());
- }
- function testThisWeekObject() {
- $testWeek = new Calendar_Week(2003,10,6);
- $Week = $this->cal->thisWeek('object');
- $this->assertEqual($testWeek->getTimeStamp(),$Week->getTimeStamp());
- }
- function testNextWeekObject() {
- $testWeek = new Calendar_Week(2003,10,13);
- $Week = $this->cal->nextWeek('object');
- $this->assertEqual($testWeek->getTimeStamp(),$Week->getTimeStamp());
- }
-}
-
-class TestOfWeekBuild extends TestOfWeek {
- function TestOfWeekBuild() {
- $this->UnitTestCase('Test of Week::build()');
- }
- function testSize() {
- $this->cal->build();
- $this->assertEqual(7, $this->cal->size());
- }
-
- function testFetch() {
- $this->cal->build();
- $i=0;
- while ($Child = $this->cal->fetch()) {
- $i++;
- }
- $this->assertEqual(7, $i);
- }
- function testFetchAll() {
- $this->cal->build();
- $children = array();
- $i = 1;
- while ( $Child = $this->cal->fetch() ) {
- $children[$i]=$Child;
- $i++;
- }
- $this->assertEqual($children,$this->cal->fetchAll());
- }
-
- function testSelection() {
- require_once(CALENDAR_ROOT . 'Day.php');
- $selection = array(new Calendar_Day(2003, 10, 7));
- $this->cal->build($selection);
- $i = 1;
- while ($Child = $this->cal->fetch()) {
- if ($i == 2) {
- break; //07-10-2003 is the 2nd day of the week
- }
- $i++;
- }
- $this->assertTrue($Child->isSelected());
- }
- function testSelectionCornerCase() {
- require_once(CALENDAR_ROOT . 'Day.php');
- $selectedDays = array(
- new Calendar_Day(2003, 12, 28),
- new Calendar_Day(2003, 12, 29),
- new Calendar_Day(2003, 12, 30),
- new Calendar_Day(2003, 12, 31),
- new Calendar_Day(2004, 01, 01),
- new Calendar_Day(2004, 01, 02),
- new Calendar_Day(2004, 01, 03)
- );
- $this->cal = new Calendar_Week(2003, 12, 31, 0);
- $this->cal->build($selectedDays);
- while ($Day = $this->cal->fetch()) {
- $this->assertTrue($Day->isSelected());
- }
- $this->cal = new Calendar_Week(2004, 1, 1, 0);
- $this->cal->build($selectedDays);
- while ($Day = $this->cal->fetch()) {
- $this->assertTrue($Day->isSelected());
- }
- }
-}
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfWeek();
- $test->run(new HtmlReporter());
- $test = &new TestOfWeekBuild();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/Calendar/tests/year_test.php b/campcaster/src/tools/pear/src/tests/Calendar/tests/year_test.php
deleted file mode 100644
index 8e7d6bd91..000000000
--- a/campcaster/src/tools/pear/src/tests/Calendar/tests/year_test.php
+++ /dev/null
@@ -1,142 +0,0 @@
-UnitTestCase('Test of Year');
- }
- function setUp() {
- $this->cal = new Calendar_Year(2003);
- }
- function testPrevYear_Object() {
- $this->assertEqual(new Calendar_Year(2002), $this->cal->prevYear('object'));
- }
- function testThisYear_Object() {
- $this->assertEqual(new Calendar_Year(2003), $this->cal->thisYear('object'));
- }
- function testPrevMonth () {
- $this->assertEqual(12,$this->cal->prevMonth());
- }
- function testPrevMonth_Array () {
- $this->assertEqual(
- array(
- 'year' => 2002,
- 'month' => 12,
- 'day' => 1,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevMonth('array'));
- }
- function testThisMonth () {
- $this->assertEqual(1,$this->cal->thisMonth());
- }
- function testNextMonth () {
- $this->assertEqual(2,$this->cal->nextMonth());
- }
- function testPrevDay () {
- $this->assertEqual(31,$this->cal->prevDay());
- }
- function testPrevDay_Array () {
- $this->assertEqual(
- array(
- 'year' => 2002,
- 'month' => 12,
- 'day' => 31,
- 'hour' => 0,
- 'minute' => 0,
- 'second' => 0),
- $this->cal->prevDay('array'));
- }
- function testThisDay () {
- $this->assertEqual(1,$this->cal->thisDay());
- }
- function testNextDay () {
- $this->assertEqual(2,$this->cal->nextDay());
- }
- function testPrevHour () {
- $this->assertEqual(23,$this->cal->prevHour());
- }
- function testThisHour () {
- $this->assertEqual(0,$this->cal->thisHour());
- }
- function testNextHour () {
- $this->assertEqual(1,$this->cal->nextHour());
- }
- function testPrevMinute () {
- $this->assertEqual(59,$this->cal->prevMinute());
- }
- function testThisMinute () {
- $this->assertEqual(0,$this->cal->thisMinute());
- }
- function testNextMinute () {
- $this->assertEqual(1,$this->cal->nextMinute());
- }
- function testPrevSecond () {
- $this->assertEqual(59,$this->cal->prevSecond());
- }
- function testThisSecond () {
- $this->assertEqual(0,$this->cal->thisSecond());
- }
- function testNextSecond () {
- $this->assertEqual(1,$this->cal->nextSecond());
- }
- function testGetTimeStamp() {
- $stamp = mktime(0,0,0,1,1,2003);
- $this->assertEqual($stamp,$this->cal->getTimeStamp());
- }
-}
-
-class TestOfYearBuild extends TestOfYear {
- function TestOfYearBuild() {
- $this->UnitTestCase('Test of Year::build()');
- }
- function testSize() {
- $this->cal->build();
- $this->assertEqual(12,$this->cal->size());
- }
- function testFetch() {
- $this->cal->build();
- $i=0;
- while ( $Child = $this->cal->fetch() ) {
- $i++;
- }
- $this->assertEqual(12,$i);
- }
- function testFetchAll() {
- $this->cal->build();
- $children = array();
- $i = 1;
- while ( $Child = $this->cal->fetch() ) {
- $children[$i]=$Child;
- $i++;
- }
- $this->assertEqual($children,$this->cal->fetchAll());
- }
- function testSelection() {
- require_once(CALENDAR_ROOT . 'Month.php');
- $selection = array(new Calendar_Month(2003,10));
- $this->cal->build($selection);
- $i = 1;
- while ( $Child = $this->cal->fetch() ) {
- if ( $i == 10 )
- break;
- $i++;
- }
- $this->assertTrue($Child->isSelected());
- }
-}
-
-if (!defined('TEST_RUNNING')) {
- define('TEST_RUNNING', true);
- $test = &new TestOfYear();
- $test->run(new HtmlReporter());
- $test = &new TestOfYearBuild();
- $test->run(new HtmlReporter());
-}
-?>
\ No newline at end of file
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/db_error.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/db_error.phpt
deleted file mode 100644
index 66de08bd2..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/db_error.phpt
+++ /dev/null
@@ -1,79 +0,0 @@
---TEST--
-DB::DB_Error
---SKIPIF--
-
---FILE--
- 'Error',
- E_WARNING => 'Warning',
- E_PARSE => 'Parsing Error',
- E_NOTICE => 'Notice',
- E_CORE_ERROR => 'Core Error',
- E_CORE_WARNING => 'Core Warning',
- E_COMPILE_ERROR => 'Compile Error',
- E_COMPILE_WARNING => 'Compile Warning',
- E_USER_ERROR => 'User Error',
- E_USER_WARNING => 'User Warning',
- E_USER_NOTICE => 'User Notice',
- E_STRICT => 'Strict Notice',
- );
- $prefix = $errortype[$errno];
- print "\n$prefix: $errmsg in " . basename($file) . " on line XXX\n";
-}
-
-error_reporting(E_ALL);
-set_error_handler('test_error_handler');
-
-print "testing different error codes...\n";
-$e = new DB_Error(); print strtolower($e->toString())."\n";
-$e = new DB_Error("test error"); print strtolower($e->toString())."\n";
-$e = new DB_Error(DB_OK); print strtolower($e->toString())."\n";
-$e = new DB_Error(DB_ERROR); print strtolower($e->toString())."\n";
-$e = new DB_Error(DB_ERROR_SYNTAX); print strtolower($e->toString())."\n";
-$e = new DB_Error(DB_ERROR_DIVZERO); print strtolower($e->toString())."\n";
-
-print "testing different error modes...\n";
-$e = new DB_Error(DB_ERROR, PEAR_ERROR_PRINT); print strtolower($e->toString())."\n";
-$e = new DB_Error(DB_ERROR_SYNTAX, PEAR_ERROR_TRIGGER);
-
-print "testing different error serverities...\n";
-$e = new DB_Error(DB_ERROR_SYNTAX, PEAR_ERROR_TRIGGER, E_USER_NOTICE);
-$e = new DB_Error(DB_ERROR_SYNTAX, PEAR_ERROR_TRIGGER, E_USER_WARNING);
-$e = new DB_Error(DB_ERROR_SYNTAX, PEAR_ERROR_TRIGGER, E_USER_ERROR);
-
-?>
---GET--
---POST--
---EXPECT--
-testing different error codes...
-[db_error: message="db error: unknown error" code=-1 mode=return level=notice prefix="" info=""]
-[db_error: message="db error: test error" code=-1 mode=return level=notice prefix="" info=""]
-[db_error: message="db error: no error" code=1 mode=return level=notice prefix="" info=""]
-[db_error: message="db error: unknown error" code=-1 mode=return level=notice prefix="" info=""]
-[db_error: message="db error: syntax error" code=-2 mode=return level=notice prefix="" info=""]
-[db_error: message="db error: division by zero" code=-13 mode=return level=notice prefix="" info=""]
-testing different error modes...
-DB Error: unknown error[db_error: message="db error: unknown error" code=-1 mode=print level=notice prefix="" info=""]
-
-User Notice: DB Error: syntax error in PEAR.php on line XXX
-testing different error serverities...
-
-User Notice: DB Error: syntax error in PEAR.php on line XXX
-
-User Warning: DB Error: syntax error in PEAR.php on line XXX
-
-User Error: DB Error: syntax error in PEAR.php on line XXX
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/db_error2.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/db_error2.phpt
deleted file mode 100644
index 2cc01ff2b..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/db_error2.phpt
+++ /dev/null
@@ -1,92 +0,0 @@
---TEST--
-DB::Error 2
---SKIPIF--
-
---FILE--
-toString()) . "\n";
-}
-function myfunc2(&$obj) {
- print 'myfunc2 here, obj='
- . strtolower($obj->toString()) . "\n";
-}
-class myclass {
- function myfunc(&$obj) {
- print 'myclass::myfunc here, obj='
- . strtolower($obj->toString()) . "\n";
- }
-}
-function test_error_handler($errno, $errmsg, $file, $line, $vars) {
- if (defined('E_STRICT')) {
- if ($errno & E_STRICT
- && (error_reporting() & E_STRICT) != E_STRICT) {
- // Ignore E_STRICT notices unless they have been turned on
- return;
- }
- } else {
- define('E_STRICT', 2048);
- }
- $errortype = array (
- E_ERROR => 'Error',
- E_WARNING => 'Warning',
- E_PARSE => 'Parsing Error',
- E_NOTICE => 'Notice',
- E_CORE_ERROR => 'Core Error',
- E_CORE_WARNING => 'Core Warning',
- E_COMPILE_ERROR => 'Compile Error',
- E_COMPILE_WARNING => 'Compile Warning',
- E_USER_ERROR => 'User Error',
- E_USER_WARNING => 'User Warning',
- E_USER_NOTICE => 'User Notice',
- E_STRICT => 'Strict Notice',
- );
- $prefix = $errortype[$errno];
- print strtolower("$prefix: $errmsg in " . basename($file)
- . " on line XXX\n");
-}
-
-$obj = new myclass;
-
-$dbh = DB::factory("mysql");
-
-print "default: ";
-$e = $dbh->raiseError("return testing error");
-print strtolower($e->toString()) . "\n";
-
-print "global default: ";
-PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, "myfunc2");
-$e = $dbh->raiseError("global default test");
-
-$dbh->setErrorHandling(PEAR_ERROR_PRINT);
-print "mode=print: ";
-$e = $dbh->raiseError("print testing error");
-print "\n";
-
-$dbh->setErrorHandling(PEAR_ERROR_CALLBACK, "myfunc");
-print "mode=function callback: ";
-$e = $dbh->raiseError("function callback testing error");
-
-$dbh->setErrorHandling(PEAR_ERROR_CALLBACK, array($obj, "myfunc"));
-print "mode=object callback: ";
-$e = $dbh->raiseError("object callback testing error");
-
-set_error_handler("test_error_handler");
-$dbh->setErrorHandling(PEAR_ERROR_TRIGGER);
-print "mode=trigger: ";
-$e = $dbh->raiseError("trigger testing error");
-
-?>
---EXPECT--
-default: [db_error: message="db error: return testing error" code=-1 mode=return level=notice prefix="" info=" [db error: unknown error]"]
-global default: myfunc2 here, obj=[db_error: message="db error: global default test" code=-1 mode=callback callback=myfunc2 prefix="" info=" [db error: unknown error]"]
-mode=print: DB Error: print testing error
-mode=function callback: myfunc here, obj=[db_error: message="db error: function callback testing error" code=-1 mode=callback callback=myfunc prefix="" info=" [db error: unknown error]"]
-mode=object callback: myclass::myfunc here, obj=[db_error: message="db error: object callback testing error" code=-1 mode=callback callback=myclass::myfunc prefix="" info=" [db error: unknown error]"]
-mode=trigger: user notice: db error: trigger testing error in pear.php on line xxx
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/db_factory.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/db_factory.phpt
deleted file mode 100644
index e359485e3..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/db_factory.phpt
+++ /dev/null
@@ -1,53 +0,0 @@
---TEST--
-DB::factory
---SKIPIF--
-
---FILE--
-getMessage() . "\n";
- } else {
- print 'object: ' . $obj->toString() . "\n";
- }
-}
-
-?>
---GET--
---POST--
---EXPECT--
-testing dbase: object: db_dbase: (phptype=dbase, dbsyntax=dbase)
-testing fbsql: object: db_fbsql: (phptype=fbsql, dbsyntax=fbsql)
-testing ibase: object: db_ibase: (phptype=ibase, dbsyntax=ibase)
-testing ifx: object: db_ifx: (phptype=ifx, dbsyntax=ifx)
-testing msql: object: db_msql: (phptype=msql, dbsyntax=msql)
-testing mssql: object: db_mssql: (phptype=mssql, dbsyntax=mssql)
-testing mysql: object: db_mysql: (phptype=mysql, dbsyntax=mysql)
-testing mysqli: object: db_mysqli: (phptype=mysqli, dbsyntax=mysqli)
-testing oci8: object: db_oci8: (phptype=oci8, dbsyntax=oci8)
-testing odbc: object: db_odbc: (phptype=odbc, dbsyntax=sql92)
-testing pgsql: object: db_pgsql: (phptype=pgsql, dbsyntax=pgsql)
-testing sqlite: object: db_sqlite: (phptype=sqlite, dbsyntax=sqlite)
-testing sybase: object: db_sybase: (phptype=sybase, dbsyntax=sybase)
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/db_ismanip.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/db_ismanip.phpt
deleted file mode 100644
index c6a275366..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/db_ismanip.phpt
+++ /dev/null
@@ -1,57 +0,0 @@
---TEST--
-DB::isManip
---SKIPIF--
-
---FILE--
-
---GET--
---POST--
---EXPECT--
-testing DB::isManip...
-SELECT : 0
-Select : 0
-select : 0
-sElECt : 0
-SELECT : 0
-UPDATE : 1
-DELETE : 1
-delete : 1
-create : 1
-CREATE : 1
-"CREATE : 1
-GRANT : 1
-REVOKE : 1
-SHOW : 0
-DROP : 1
-ALTER : 1
- : 0
- : 1
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/db_parsedsn.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/db_parsedsn.phpt
deleted file mode 100644
index 20955ac7e..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/db_parsedsn.phpt
+++ /dev/null
@@ -1,480 +0,0 @@
---TEST--
-DB::parseDSN
---SKIPIF--
-
---FILE--
- 'mysql',
- 'hostspec' => 'foobar',
-);
-testArray($array);
-
-?>
---GET--
---POST--
---EXPECT--
-testing DB::parseDSN...
-
-DSN: mysql
-Array
-(
- [phptype] => mysql
- [dbsyntax] => mysql
- [username] =>
- [password] =>
- [protocol] =>
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] =>
-)
-DSN: odbc(mssql)
-Array
-(
- [phptype] => odbc
- [dbsyntax] => mssql
- [username] =>
- [password] =>
- [protocol] =>
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] =>
-)
-DSN: odbc(db2)://user:password@/database
-Array
-(
- [phptype] => odbc
- [dbsyntax] => db2
- [username] => user
- [password] => password
- [protocol] => tcp
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] => database
-)
-DSN: odbc(access):///database
-Array
-(
- [phptype] => odbc
- [dbsyntax] => access
- [username] =>
- [password] =>
- [protocol] => tcp
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] => database
-)
-DSN: odbc://admin@/datasourceName
-Array
-(
- [phptype] => odbc
- [dbsyntax] => odbc
- [username] => admin
- [password] =>
- [protocol] => tcp
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] => datasourceName
-)
-DSN: mysql://localhost
-Array
-(
- [phptype] => mysql
- [dbsyntax] => mysql
- [username] =>
- [password] =>
- [protocol] => tcp
- [hostspec] => localhost
- [port] =>
- [socket] =>
- [database] =>
-)
-DSN: mysql://remote.host.com/db
-Array
-(
- [phptype] => mysql
- [dbsyntax] => mysql
- [username] =>
- [password] =>
- [protocol] => tcp
- [hostspec] => remote.host.com
- [port] =>
- [socket] =>
- [database] => db
-)
-DSN: oci8://system:manager@
-Array
-(
- [phptype] => oci8
- [dbsyntax] => oci8
- [username] => system
- [password] => manager
- [protocol] => tcp
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] =>
-)
-DSN: oci8://user:pass@tns-name
-Array
-(
- [phptype] => oci8
- [dbsyntax] => oci8
- [username] => user
- [password] => pass
- [protocol] => tcp
- [hostspec] => tns-name
- [port] =>
- [socket] =>
- [database] =>
-)
-DSN: odbc(solid)://foo:bar@tcp+localhost+1313
-Array
-(
- [phptype] => odbc
- [dbsyntax] => solid
- [username] => foo
- [password] => bar
- [protocol] => tcp
- [hostspec] => localhost+1313
- [port] =>
- [socket] =>
- [database] =>
-)
-DSN: pgsql://user@unix+localhost/pear
-Array
-(
- [phptype] => pgsql
- [dbsyntax] => pgsql
- [username] => user
- [password] =>
- [protocol] => unix
- [hostspec] =>
- [port] =>
- [socket] => localhost
- [database] => pear
-)
-DSN: ibase://user%40domain:password@host
-Array
-(
- [phptype] => ibase
- [dbsyntax] => ibase
- [username] => user@domain
- [password] => password
- [protocol] => tcp
- [hostspec] => host
- [port] =>
- [socket] =>
- [database] =>
-)
-DSN: ibase://user@domain:pass@word@/database
-Array
-(
- [phptype] => ibase
- [dbsyntax] => ibase
- [username] => user@domain
- [password] => pass@word
- [protocol] => tcp
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] => database
-)
-DSN: ifx://user@domain:pass@word@host.com//usr/db/general.db
-Array
-(
- [phptype] => ifx
- [dbsyntax] => ifx
- [username] => user@domain
- [password] => pass@word
- [protocol] => tcp
- [hostspec] => host.com
- [port] =>
- [socket] =>
- [database] => /usr/db/general.db
-)
-DSN: ifx://remote.host.com/c:\windows\my.db
-Array
-(
- [phptype] => ifx
- [dbsyntax] => ifx
- [username] =>
- [password] =>
- [protocol] => tcp
- [hostspec] => remote.host.com
- [port] =>
- [socket] =>
- [database] => c:\windows\my.db
-)
-DSN: oci8://SHOOTOUT:******@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.101.161)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TIS)))
-Array
-(
- [phptype] => oci8
- [dbsyntax] => oci8
- [username] => SHOOTOUT
- [password] => ******
- [protocol] => tcp
- [hostspec] => (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.101.161)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TIS)))
- [port] =>
- [socket] =>
- [database] =>
-)
-DSN: odbc(solid)://foo:bar@localhost:1313
-Array
-(
- [phptype] => odbc
- [dbsyntax] => solid
- [username] => foo
- [password] => bar
- [protocol] => tcp
- [hostspec] => localhost
- [port] => 1313
- [socket] =>
- [database] =>
-)
-DSN: pgsql://user@unix()/pear
-Array
-(
- [phptype] => pgsql
- [dbsyntax] => pgsql
- [username] => user
- [password] =>
- [protocol] => unix
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] => pear
-)
-DSN: mysql://user@unix(/path/to/socket)/pear
-Array
-(
- [phptype] => mysql
- [dbsyntax] => mysql
- [username] => user
- [password] =>
- [protocol] => unix
- [hostspec] =>
- [port] =>
- [socket] => /path/to/socket
- [database] => pear
-)
-DSN: pgsql://user@tcp()/pear
-Array
-(
- [phptype] => pgsql
- [dbsyntax] => pgsql
- [username] => user
- [password] =>
- [protocol] => tcp
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] => pear
-)
-DSN: pgsql://user@tcp(somehost)/pear
-Array
-(
- [phptype] => pgsql
- [dbsyntax] => pgsql
- [username] => user
- [password] =>
- [protocol] => tcp
- [hostspec] => somehost
- [port] =>
- [socket] =>
- [database] => pear
-)
-DSN: pgsql://user:pass@word@tcp(somehost:7777)/pear
-Array
-(
- [phptype] => pgsql
- [dbsyntax] => pgsql
- [username] => user
- [password] => pass@word
- [protocol] => tcp
- [hostspec] => somehost
- [port] => 7777
- [socket] =>
- [database] => pear
-)
-DSN: ibase://user:pass@localhost//var/lib/dbase.dbf?role=foo
-Array
-(
- [phptype] => ibase
- [dbsyntax] => ibase
- [username] => user
- [password] => pass
- [protocol] => tcp
- [hostspec] => localhost
- [port] =>
- [socket] =>
- [database] => /var/lib/dbase.dbf
- [role] => foo
-)
-DSN: dbase://@/?role=foo&dialect=bar
-Array
-(
- [phptype] => dbase
- [dbsyntax] => dbase
- [username] =>
- [password] =>
- [protocol] => tcp
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] =>
- [role] => foo
- [dialect] => bar
-)
-DSN: sqlite:////unix/path/to/database?option=value&anotheroption=anothervalue
-Array
-(
- [phptype] => sqlite
- [dbsyntax] => sqlite
- [username] =>
- [password] =>
- [protocol] => tcp
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] => /unix/path/to/database
- [option] => value
- [anotheroption] => anothervalue
-)
-DSN: sqlite:///c:/win/path/to/database?option=value
-Array
-(
- [phptype] => sqlite
- [dbsyntax] => sqlite
- [username] =>
- [password] =>
- [protocol] => tcp
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] => c:/win/path/to/database
- [option] => value
-)
-DSN: mysql://username@hostspec
-Array
-(
- [phptype] => mysql
- [dbsyntax] => mysql
- [username] => username
- [password] =>
- [protocol] => tcp
- [hostspec] => hostspec
- [port] =>
- [socket] =>
- [database] =>
-)
-DSN: mysql://hostspec/database
-Array
-(
- [phptype] => mysql
- [dbsyntax] => mysql
- [username] =>
- [password] =>
- [protocol] => tcp
- [hostspec] => hostspec
- [port] =>
- [socket] =>
- [database] => database
-)
-DSN: mysql://hostspec
-Array
-(
- [phptype] => mysql
- [dbsyntax] => mysql
- [username] =>
- [password] =>
- [protocol] => tcp
- [hostspec] => hostspec
- [port] =>
- [socket] =>
- [database] =>
-)
-DSN: mysql:///database
-Array
-(
- [phptype] => mysql
- [dbsyntax] => mysql
- [username] =>
- [password] =>
- [protocol] => tcp
- [hostspec] =>
- [port] =>
- [socket] =>
- [database] => database
-)
-DSN: array
-Array
-(
- [phptype] => mysql
- [dbsyntax] => mysql
- [username] =>
- [password] =>
- [protocol] =>
- [hostspec] => foobar
- [port] =>
- [socket] =>
- [database] =>
-)
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/01connect.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/01connect.phpt
deleted file mode 100644
index dbeae1e91..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/01connect.phpt
+++ /dev/null
@@ -1,76 +0,0 @@
---TEST--
-DB_driver::connect
---INI--
-error_reporting = 2047
---SKIPIF--
-
---FILE--
-toString());
- }
- if (is_object($dbh)) {
- print "$name is an object\n";
- }
- switch ($dbh->phptype) {
- case 'dbase':
- if (is_int($dbh->connection)) {
- print "$name is connected\n";
- } else {
- print "$name NOT connected\n";
- }
- break;
- case 'mysqli':
- if (is_a($dbh->connection, 'mysqli')) {
- print "$name is connected\n";
- } else {
- print "$name NOT connected\n";
- }
- break;
- default:
- if (gettype($dbh->connection) == 'resource') {
- print "$name is connected\n";
- } else {
- print "$name NOT connected\n";
- }
- }
-}
-
-
-check_dbh($dbh, '$dbh');
-
-
-$test_array_dsn = DB::parseDSN($dsn);
-foreach ($test_array_dsn as $key => $value) {
- if ($value === false) {
- unset($test_array_dsn[$key]);
- }
-}
-
-$dbha =& DB::connect($test_array_dsn, $options);
-check_dbh($dbha, '$dbha');
-
-
-$tmp = serialize($dbha);
-$dbhu = unserialize($tmp);
-check_dbh($dbhu, '$dbhu');
-
-?>
---EXPECT--
-$dbh is an object
-$dbh is connected
-$dbha is an object
-$dbha is connected
-$dbhu is an object
-$dbhu is connected
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/02fetch.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/02fetch.phpt
deleted file mode 100644
index af6c39c28..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/02fetch.phpt
+++ /dev/null
@@ -1,40 +0,0 @@
---TEST--
-DB_driver::fetch
---INI--
-error_reporting = 2047
---SKIPIF--
-
---FILE--
-
---EXPECT--
-testing fetchrow:
-row 1: 42, bing, This is a test, 1999-11-21
-row 2: 1, one, One, 2001-02-16
-row 3: 2, two, Two, 2001-02-15
-row 4: 3, three, Three, 2001-02-14
-row 5: NULL
-testing fetchmodes: fetchrow default default, portability mode DB_PORTABILITY_ALL ^ DB_PORTABILITY_RTRIM
-0 1 2 3
-output matched expected format
-testing fetchmodes: fetchinto default default
-0 1 2 3
-42 bing This is a test 1999-11-21
-testing fetchmodes: fetchrow ordered default
-0 1 2 3
-testing fetchmodes: fetchrow assoc default
-a b c d
-testing fetchmodes: fetchrow ordered default with assoc specified
-a b c d
-testing fetchmodes: fetchrow assoc default with ordered specified
-0 1 2 3
-testing fetchmodes: fetchinto ordered default
-0 1 2 3
-testing fetchmodes: fetchinto assoc default
-a b c d
-testing fetchmodes: fetchinto ordered default with assoc specified
-a b c d
-testing fetchmodes: fetchinto assoc default with ordered specified
-0 1 2 3
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/03simplequery.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/03simplequery.phpt
deleted file mode 100644
index c0b450ab0..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/03simplequery.phpt
+++ /dev/null
@@ -1,13 +0,0 @@
---TEST--
-DB_driver::simpleQuery
---INI--
-error_reporting = 2047
---SKIPIF--
-
---FILE--
-
---EXPECT--
-passed
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/04numcols.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/04numcols.phpt
deleted file mode 100644
index f9a275af2..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/04numcols.phpt
+++ /dev/null
@@ -1,16 +0,0 @@
---TEST--
-DB_driver::numCols
---INI--
-error_reporting = 2047
---SKIPIF--
-
---FILE--
-
---EXPECT--
-1
-2
-3
-4
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/05sequences.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/05sequences.phpt
deleted file mode 100644
index 17ec2f27f..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/05sequences.phpt
+++ /dev/null
@@ -1,28 +0,0 @@
---TEST--
-DB_driver::sequences
---INI--
-error_reporting = 2047
---SKIPIF--
-dropSequence('ajkdslfajoijkadie');
-if (DB::isError($tableInfo) && $tableInfo->code == DB_ERROR_NOT_CAPABLE) {
- die("skip $tableInfo->message");
-}
-?>
---FILE--
-
---EXPECT--
-an error is the proper response here
-an error cought by the error handler is good
-a=1
-b=2
-b-a=1
-c=1
-d=1
-e=1
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/06prepexec.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/06prepexec.phpt
deleted file mode 100644
index 3feb0ebbf..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/06prepexec.phpt
+++ /dev/null
@@ -1,50 +0,0 @@
---TEST--
-DB_driver::prepare/execute
---INI--
-error_reporting = 2047
---SKIPIF--
-
---FILE--
-
---EXPECT--
-------------1------------
-sth1,sth2,sth3,sth4 created
-sth1: ? as param, passing as array... sth1 executed
-sth2: ! and ? as params, passing as array... sth2 executed
-sth3: ?, ! and & as params, passing as array... sth3 executed
-sth4: no params... sth4 executed
-results:
-|72 - a - - |
-|72 - direct - - |
-|72 - it's good - opaque placeholder's test - |
-|72 - that's right - - |
-
-------------2------------
-results:
-|72 - set1 - opaque placeholder's test - 1234-56-78|
-|72 - set2 - opaque placeholder's test - |
-|72 - set3 - opaque placeholder's test - |
-
-------------3------------
-TRUE
-FALSE
-
-------------4------------
-|72 - set1 - opaque placeholder's test - 1234-56-78|
-|72 - set2 - opaque placeholder's test - |
-|72 - set3 - opaque placeholder's test - |
-~~
-~~
-|72 - set1 - opaque placeholder's test - 1234-56-78|
-~~
-|72 - set1 - opaque placeholder's test - 1234-56-78|
-|72 - set2 - opaque placeholder's test - |
-|72 - set3 - opaque placeholder's test - |
-~~
-
-------------5------------
-insert: okay
-a = 11, b = three, d = got expected outcome
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/08affectedrows.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/08affectedrows.phpt
deleted file mode 100644
index 2624ac845..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/08affectedrows.phpt
+++ /dev/null
@@ -1,62 +0,0 @@
---TEST--
-DB_driver::affectedRows
---INI--
-error_reporting = 2047
---SKIPIF--
-
---FILE--
-setErrorHandling(PEAR_ERROR_RETURN);
- drop_table($dbh, 'phptest');
-
- die($o->toString());
-}
-
-$dbh->setErrorHandling(PEAR_ERROR_CALLBACK, 'pe');
-
-
-// Clean table
-$dbh->query("DELETE FROM phptest");
-
-// Affected rows by INSERT statement
-$dbh->query("INSERT INTO phptest (a,b) VALUES(1, 'test')");
-$dbh->query("INSERT INTO phptest (a,b) VALUES(2, 'test')");
-printf("%d after insert\n", $dbh->affectedRows());
-
-// Affected rows by SELECT statement
-$dbh->query("SELECT * FROM phptest");
-printf("%d after select\n", $dbh->affectedRows());
-$dbh->query("DELETE FROM phptest WHERE b = 'test'");
-printf("%d after delete\n", $dbh->affectedRows());
-
-// Affected rows by DELETE statement
-$dbh->query("INSERT INTO phptest (a,b) VALUES(1, 'test')");
-$dbh->query("INSERT INTO phptest (a,b) VALUES(2, 'test')");
-$dbh->query("DELETE FROM phptest");
-printf("%d after delete all\n", $dbh->affectedRows());
-
-
-$dbh->setErrorHandling(PEAR_ERROR_RETURN);
-drop_table($dbh, 'phptest');
-
-?>
---EXPECT--
-1 after insert
-0 after select
-2 after delete
-2 after delete all
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/09numrows.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/09numrows.phpt
deleted file mode 100644
index bc08f7763..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/09numrows.phpt
+++ /dev/null
@@ -1,22 +0,0 @@
---TEST--
-DB_driver::numRows
---INI--
-error_reporting = 2047
---SKIPIF--
-
---FILE--
-
---EXPECT--
-(want 1) got 1 from first
-(want 2) got 2 from 0
-(want 3) got 3 from 1
-(want 4) got 4 from 2
-(want 5) got 5 from 3
-(want 6) got 6 from 4
-(want 5) got 5 from > 0 (passing params to query)
-(want 4) got 4 from < 4 (doing prepare/execute)
-(want 2) got 2 from 5 and 6 not deleted
-(want 0) got 0 from < 0
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/10errormap.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/10errormap.phpt
deleted file mode 100644
index d953bef42..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/10errormap.phpt
+++ /dev/null
@@ -1,37 +0,0 @@
---TEST--
-DB_driver::error mapping
---INI--
-error_reporting = 2047
---SKIPIF--
-
---FILE--
-
---EXPECT--
-DB_ERROR_NOSUCHTABLE for select: matches expected outcome
-DB_ERROR_NOSUCHTABLE for drop: matches expected outcome
-DB_ERROR_NOT_FOUND for drop index: matches expected outcome
-DB_ERROR_ALREADY_EXISTS for create table: matches expected outcome
-DB_ERROR_ALREADY_EXISTS for create index: matches expected outcome
-DB_ERROR_CONSTRAINT for primary key insert duplicate: matches expected outcome
-DB_ERROR_CONSTRAINT for primary key update duplicate: matches expected outcome
-DB_ERROR_CONSTRAINT for unique key insert duplicate: matches expected outcome
-DB_ERROR_CONSTRAINT for unique key update duplicate: matches expected outcome
-DB_ERROR_CONSTRAINT for foreign key on insert: matches expected outcome
-DB_ERROR_CONSTRAINT for foreign key on delete: matches expected outcome
-DB_ERROR_CONSTRAINT_NOT_NULL on insert: matches expected outcome
-DB_ERROR_CONSTRAINT_NOT_NULL on update: matches expected outcome
-DB_ERROR_NOSUCHFIELD joining ON bogus column: matches expected outcome
-DB_ERROR_NOSUCHFIELD joining USING bogus column: matches expected outcome
-DB_ERROR_DIVZERO: matches expected outcome
-DB_ERROR_INVALID_NUMBER putting chars in INT column: matches expected outcome
-DB_ERROR_INVALID_NUMBER putting float in INT column: matches expected outcome
-DB_ERROR_INVALID_NUMBER putting excessive int in INT column: matches expected outcome
-DB_ERROR_INVALID_NUMBER putting int in CHAR column: matches expected outcome
-DB_ERROR_NOSUCHFIELD: matches expected outcome
-DB_ERROR_SYNTAX: matches expected outcome
-DB_ERROR_VALUE_COUNT_ON_ROW: matches expected outcome
-DB_ERROR_INVALID on CHAR column data too long: matches expected outcome
-DB_ERROR_INVALID on VARCHAR column data too long: matches expected outcome
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/11transactions.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/11transactions.phpt
deleted file mode 100644
index 888417df8..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/11transactions.phpt
+++ /dev/null
@@ -1,26 +0,0 @@
---TEST--
-DB_driver::transaction test
---INI--
-error_reporting = 2047
---SKIPIF--
-features['transactions']) {
- die('skip this driver does not support transactions');
-}
-?>
---FILE--
-
---EXPECT--
-1) after autocommit: bing one. ops=ok
-2) before commit: bing one two three. ops=ok
-3) after commit: bing one two three. ops=ok
-4) before rollback: bing one two three four five. ops=ok
-5) after rollback: bing one two three. ops=ok
-6) before autocommit+rollback: bing one two three six seven. ops=ok
-7) after autocommit+rollback: bing one two three six seven. ops=ok
-8) testing that select doesn't disturbe opcount: ok
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/13limit.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/13limit.phpt
deleted file mode 100644
index 69bc5f2e2..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/13limit.phpt
+++ /dev/null
@@ -1,54 +0,0 @@
---TEST--
-DB_driver::row limit
---INI--
-error_reporting = 2047
---SKIPIF--
-
---FILE--
-
---EXPECT--
-======= From: 0 || Number of rows to fetch: 10 =======
-1.- result 0
-2.- result 1
-3.- result 2
-4.- result 3
-5.- result 4
-6.- result 5
-7.- result 6
-8.- result 7
-9.- result 8
-10.- result 9
-======= From: 10 || Number of rows to fetch: 10 =======
-11.- result 10
-12.- result 11
-13.- result 12
-14.- result 13
-15.- result 14
-16.- result 15
-17.- result 16
-18.- result 17
-19.- result 18
-20.- result 19
-======= From: 20 || Number of rows to fetch: 10 =======
-21.- result 20
-22.- result 21
-23.- result 22
-24.- result 23
-25.- result 24
-26.- result 25
-27.- result 26
-28.- result 27
-29.- result 28
-30.- result 29
-======= From: 30 || Number of rows to fetch: 10 =======
-31.- result 30
-32.- result 31
-33.- result 32
-======= Passing $params || From: 11 || Number of rows to fetch: 3 =======
-12.- result 11
-13.- result 12
-14.- result 13
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/14fetchmode_object.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/14fetchmode_object.phpt
deleted file mode 100644
index fda4799d3..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/14fetchmode_object.phpt
+++ /dev/null
@@ -1,24 +0,0 @@
---TEST--
-DB_driver::fetchmode object
---INI--
-error_reporting = 2047
---SKIPIF--
-
---FILE--
-
---EXPECT--
---- fetch with param DB_FETCHMODE_OBJECT ---
-stdclass -> a b c d
-stdclass -> a b c d
---- fetch with default fetchmode DB_FETCHMODE_OBJECT ---
-stdclass -> a b c d
-stdclass -> a b c d
---- fetch with default fetchmode DB_FETCHMODE_OBJECT and class DB_row ---
-db_row -> a b c d
-db_row -> a b c d
---- fetch with default fetchmode DB_FETCHMODE_OBJECT with no class then DB_row ---
-stdclass -> a b c d
-db_row -> a b c d
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/15quote.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/15quote.phpt
deleted file mode 100644
index e80aaa979..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/15quote.phpt
+++ /dev/null
@@ -1,273 +0,0 @@
---TEST--
-DB_driver::quote
---INI--
-error_reporting = 2047
---SKIPIF--
-
---FILE--
-setErrorHandling(PEAR_ERROR_RETURN);
- drop_table($dbh, 'pearquote');
-
- die($o->toString());
-}
-
-// DBMS boolean column type simulation...
-$boolean_col_type = array(
- 'dbase' => 'Logical',
- 'fbsql' => 'BOOLEAN',
- 'ibase' => 'SMALLINT',
- 'ifx' => 'SMALLINT',
- 'msql' => 'INTEGER',
- 'mssql' => 'BIT',
- 'mysql' => 'TINYINT(1)',
- 'mysqli' => 'TINYINT(1)',
- 'oci8' => 'NUMBER(1)',
- 'odbc' => 'SMALLINT',
- 'pgsql' => 'BOOLEAN',
- 'sqlite' => 'INTEGER',
- 'sybase' => 'TINYINT',
-);
-
-// adjust things for specific DBMS's
-
-if ($dbh->phptype == 'odbc') {
- if ($dbh->dbsyntax == 'odbc') {
- $type = $dbh->phptype;
- } else {
- $type = $dbh->dbsyntax;
- }
-} else {
- $type = $dbh->phptype;
-}
-
-switch ($type) {
- case 'access':
- $decimal = 'SINGLE';
- $null = '';
- $chr = 'VARCHAR(8)';
- $identifier = 'q\ut "dnt';
- break;
- case 'db2':
- case 'ibase':
- $decimal = 'DECIMAL(3,1)';
- $null = '';
- $chr = 'VARCHAR(8)';
- $identifier = 'q\ut] "dn[t';
- break;
- case 'ifx':
- // doing this for ifx to keep certain versions happy
- $decimal = 'DECIMAL(3,1)';
- $null = '';
- $chr = 'CHAR(8)';
- $identifier = '';
- break;
- case 'msql':
- $decimal = 'REAL';
- $null = '';
- $chr = 'CHAR(8)';
- $identifier = '';
- break;
- case 'fbsql':
- case 'oci8':
- $decimal = 'DECIMAL(3,1)';
- $null = '';
- $chr = 'VARCHAR(8)';
- $identifier = 'q\ut] dn[t';
- break;
- default:
- $decimal = 'DECIMAL(3,1)';
- $null = 'NULL';
- $chr = 'VARCHAR(8)';
- $identifier = 'q\ut] "dn[t';
-}
-
-$dbh->setErrorHandling(PEAR_ERROR_RETURN);
-drop_table($dbh, 'pearquote');
-
-
-if ($identifier) {
- switch ($dbh->phptype) {
- case 'sybase':
- $res = $dbh->query('set quoted_identifier on');
- if (DB::isError($res) ) {
- pe($res);
- }
- break;
- default:
- }
- $create = $dbh->query("
- CREATE TABLE pearquote (
- n $decimal $null,
- s $chr $null,
- " . $dbh->quoteIdentifier($identifier) . " $decimal $null,
- b {$boolean_col_type[$dbh->phptype]} $null
- )
- ");
-
- if (DB::isError($create) ) {
- pe($create);
- }
-
- $info = $dbh->tableInfo('pearquote');
- if (DB::isError($info) ) {
- if ($info->code == DB_ERROR_NOT_CAPABLE) {
- print "Got outcome expected from delimited identifier.\n";
- } else {
- print "tableInfo() failed.\n";
- }
- } else {
- if ($identifier == $info[2]['name']) {
- print "Got outcome expected from delimited identifier.\n";
- // print "COLUMN NAME IS: {$info[2]['name']}\n";
- } else {
- print "Expected column name: '$identifier' ... ";
- print "Actual column name: '{$info[2]['name']}'\n";
- }
- }
-
-} else {
- $dbh->query("
- CREATE TABLE pearquote (
- n $decimal $null,
- s $chr $null,
- plainidentifier $decimal $null,
- b {$boolean_col_type[$dbh->phptype]} $null
- )
- ");
- print "Got outcome expected from delimited identifier.\n";
-}
-
-
-$dbh->setErrorHandling(PEAR_ERROR_CALLBACK, 'pe');
-
-
-$strings = array(
- "'",
- "\"",
- "\\",
- "%",
- "_",
- "''",
- "\"\"",
- "\\\\",
- "\\'\\'",
- "\\\"\\\""
-);
-
-$nums = array(
- 12.3,
- 15,
-);
-
-$bools = array(
- TRUE,
- FALSE,
-);
-
-
-echo "String escape test: ";
-foreach ($strings as $s) {
- $quoted = $dbh->quoteSmart($s);
- $dbh->query("INSERT INTO pearquote (s) VALUES ($quoted)");
-}
-$diff = array_diff($strings, $res = $dbh->getCol("SELECT s FROM pearquote"));
-if (count($diff) > 0) {
- echo "FAIL";
- print_r($strings);
- print_r($res);
-} else {
- echo "OK";
-}
-
-$dbh->query("DELETE FROM pearquote");
-
-
-echo "\nNumber escape test: ";
-foreach ($nums as $n) {
- $quoted = $dbh->quoteSmart($n);
- $dbh->query("INSERT INTO pearquote (n) VALUES ($quoted)");
-}
-
-$diff = array();
-$res =& $dbh->getCol('SELECT n FROM pearquote ORDER BY n');
-foreach ($nums as $key => $val) {
- if ($val != $res[$key]) {
- $diff[] = "$val != {$res[$key]}";
- }
-}
-
-if (count($diff) > 0) {
- echo "FAIL\n";
- print_r($diff);
-} else {
- echo 'OK';
-}
-
-$dbh->query('DELETE FROM pearquote');
-
-
-echo "\nBoolean escape test: ";
-$i = 1;
-foreach ($bools as $b) {
- $quoted = $dbh->quoteSmart($b);
- $dbh->query("INSERT INTO pearquote (n, b) VALUES ($i, $quoted)");
- $i++;
-}
-
-$diff = array();
-$res =& $dbh->getCol('SELECT b, n FROM pearquote ORDER BY n');
-foreach ($bools as $key => $val) {
- if ($val === true) {
- if ($res[$key] == 1 || $res[$key] == true ||
- substr(strtolower($res[$key]), 0, 1) == 't')
- {
- // good
- } else {
- $diff[] = "in:true != out:{$res[$key]}";
- }
- } else {
- if ($res[$key] == 0 || $res[$key] == false ||
- substr(strtolower($res[$key]), 0, 1) == 'f')
- {
- // good
- } else {
- $diff[] = "in:false != out:{$res[$key]}";
- }
- }
-}
-
-if (count($diff) > 0) {
- echo "FAIL\n";
- print_r($diff);
-} else {
- echo "OK\n";
-}
-
-
-$dbh->setErrorHandling(PEAR_ERROR_RETURN);
-drop_table($dbh, 'pearquote');
-
-?>
---EXPECT--
-Got outcome expected from delimited identifier.
-String escape test: OK
-Number escape test: OK
-Boolean escape test: OK
diff --git a/campcaster/src/tools/pear/src/tests/DB/tests/driver/16tableinfo.phpt b/campcaster/src/tools/pear/src/tests/DB/tests/driver/16tableinfo.phpt
deleted file mode 100644
index fb2fe9509..000000000
--- a/campcaster/src/tools/pear/src/tests/DB/tests/driver/16tableinfo.phpt
+++ /dev/null
@@ -1,1340 +0,0 @@
---TEST--
-DB_driver::tableInfo
---INI--
-error_reporting = 2047
---SKIPIF--
-$quirks array, which has the following format:
- *
- *
- * 'driver' => array(
- * 'clob' => DBMS's column type for creating CLOB fields
- * 'date' => DBMS's column type for creating DATE fields
- * 'dateliteral' => The SQL keyword necessary for defining dates
- * 'finds_table' => Can this DBMS determine table names from queries?
- * 'size_from_table' => Does this DBMS know the column size via table name?
- * 'handles_results' => Can the DBMS get info from query results?
- * 'commands' => array(
- * Extra commands to be passed to PHP's eval() function
- * )
- * 0 => array(
- * // Info expected to be reported for phptest_fk.a
- * // (INTEGER NOT NULL) (UNIQUE KEY with d)
- * 'type' => Column type reported by the DBMS
- * 'len' => Column size reported by the DBMS
- * 'flags' => Flags reported by the DBMS
- * )
- * 1 => array() Info expected to be reported for phptest_fk.fk
- * (INTEGER NOT NULL) (PRIMARY KEY)
- * 2 => array() Info expected to be reported for phptest_fk.c
- * (CLOB/CHAR/VARCHAR NULL)
- * 3 => array() Info expected to be reported for phptest_fk.d
- * (DATE NOT NULL) (UNIQUE KEY with a)
- * 4 => array() Info expected to be reported for phptest_fk.e
- * (CHAR(2) DEFAULT ' e' NOT NULL)
- * 5 => array() Info expected to be reported for phptest_fk.f
- * (DECIMAL(2,1) NULL)
- * 9 => array() Info expected to be reported for phptest.d
- * (VARCHAR(20) NULL)
- * )
- *