]> src.bluestatic.org Git - isso.git/log
isso.git
16 years agoAdd a __toString() method on BSPrinterAbstract
Robert Sesek [Tue, 8 Apr 2008 17:40:34 +0000 (13:40 -0400)]
Add a __toString() method on BSPrinterAbstract

* PrinterAbstract.php:
(BSPrinterAbstract::__toString): New method that calls paint()

16 years agoMaking BSTemplate follow OOP instead of just being a metaclass/object. Updating the...
Robert Sesek [Mon, 7 Apr 2008 18:32:08 +0000 (14:32 -0400)]
Making BSTemplate follow OOP instead of just being a metaclass/object. Updating the unit tests to reflect this, too.

16 years agoMake makepo.sh.php work with ISSO 3.0
Robert Sesek [Thu, 3 Apr 2008 16:42:03 +0000 (12:42 -0400)]
Make makepo.sh.php work with ISSO 3.0

* docs/makepo.sh.php

16 years agoMaking a lot of previously-private methods and ivars public or protected
Robert Sesek [Thu, 3 Apr 2008 16:37:30 +0000 (12:37 -0400)]
Making a lot of previously-private methods and ivars public or protected

16 years agoMerge ../butv10/core/framework
Robert Sesek [Thu, 27 Mar 2008 04:32:33 +0000 (00:32 -0400)]
Merge ../butv10/core/framework

Conflicts:

CHANGES

16 years agoAdd a way to quick-set API fields via an array
Robert Sesek [Wed, 26 Mar 2008 18:14:08 +0000 (14:14 -0400)]
Add a way to quick-set API fields via an array

* Api.php:
(BSApi::setArray): New method to set API fields via an array

16 years agoAdd the ability to set the id attribute of all Printer elements
Robert Sesek [Wed, 26 Mar 2008 18:11:25 +0000 (14:11 -0400)]
Add the ability to set the id attribute of all Printer elements

* PrinterAbstract.php: New id ivar
(BSPrinterAbstract::setId): New method
(BSPrinterAbstract::_prepareStyle): Add the id attribute if it's present

16 years agoAdd a method for injecting code into the <head> element of the page
Robert Sesek [Tue, 18 Mar 2008 01:56:26 +0000 (21:56 -0400)]
Add a method for injecting code into the <head> element of the page

* PrinterRootPage.php: Add a headerCode ivar
(BSPrinterRootPage::setHeaderCode): New method
(BSPrinterRootPage::paint): Paint the header code

16 years agoRemove the text-indent from .input
Robert Sesek [Wed, 12 Mar 2008 15:21:06 +0000 (11:21 -0400)]
Remove the text-indent from .input

* printer.css.php
* CHANGES

16 years agoRemove the text-indent from .input
Robert Sesek [Wed, 12 Mar 2008 15:13:36 +0000 (11:13 -0400)]
Remove the text-indent from .input

* printer.css.php

16 years agoIn BSPrinterElementTable::__construct(), we can now on-the-fly create Label elements...
Robert Sesek [Tue, 11 Mar 2008 19:16:51 +0000 (15:16 -0400)]
In BSPrinterElementTable::__construct(), we can now on-the-fly create Label elements from just strings to save us some code

* CHANGES
* PrinterElementTable.php:
(BSPrinterElementTable::__construct): If the child is not an instance of BSPrinterAbstract, make it into a Label

16 years agoUpdate the comment formatting to not use the pound bar anymore and to put a space... 3.0.0
Robert Sesek [Thu, 28 Feb 2008 20:49:05 +0000 (15:49 -0500)]
Update the comment formatting to not use the pound bar anymore and to put a space in front of the PHPdoc comments

16 years agoMaking BSPagination an abstract class that people extend instead of using callback...
Robert Sesek [Thu, 28 Feb 2008 20:11:45 +0000 (15:11 -0500)]
Making BSPagination an abstract class that people extend instead of using callback functions

* Pagination.php

16 years agoRemoved a globalization of $bugsys (wow, talk about directly ripping from Bugdar)
Robert Sesek [Mon, 28 Jan 2008 05:26:22 +0000 (00:26 -0500)]
Removed a globalization of $bugsys (wow, talk about directly ripping from Bugdar)

* Pagination.php
(BSPagination::constructPageNav): Do not globalize a gvar we don't need

16 years agoAdd fluent interfaces for set() functions in BSPrinterelement
Robert Sesek [Fri, 25 Jan 2008 17:25:21 +0000 (12:25 -0500)]
Add fluent interfaces for set() functions in BSPrinterelement

* PrinterElement.php
(BSPrinterElement::setActive): Return $this
(BSPrinterElement::setOnClick): ditto
(BSPrinterElement::setAccessKey): ditto
(BSPrinterElement::setName): ditto

16 years agoFixing some references to controller/action that we used back when we were going...
Robert Sesek [Fri, 25 Jan 2008 17:21:19 +0000 (12:21 -0500)]
Fixing some references to controller/action that we used back when we were going to have a controller module

* PrinterRootForm.php: Renamed BSPrinterRootForm->controller to be ->action and BSPrinterRootForm->action to be ->do
(BSPrinterRootForm::__construct): Changes to ivar assignment
(BSPrinterRootForm::paint): Changes for ivar names
* PrinterRootPage.php: ditto
(BSPrinterRootPage::redirect): Take a location instead of a controller/action pair; additionally, make changes for postvars
(BSPrinterRootPage::confirm): Rename parameters to match BSPrinterRootForm ivars

16 years agoFixing a documentation and error mistake that weren't fixed through our sesarch/repla...
Robert Sesek [Thu, 24 Jan 2008 22:08:19 +0000 (17:08 -0500)]
Fixing a documentation and error mistake that weren't fixed through our sesarch/replace of renaming Printer classes

16 years agoFixing a bad function call to BSFunctions::SwapCssClasses()
Robert Sesek [Thu, 24 Jan 2008 21:56:28 +0000 (16:56 -0500)]
Fixing a bad function call to BSFunctions::SwapCssClasses()

* PrinterAbstract.php
(BSPrinterAbstract::_prepareStyle): Change the call to swap_css_classes()

16 years agoRenaming all the classes for the Printer to match the name of the file
Robert Sesek [Thu, 24 Jan 2008 21:55:33 +0000 (16:55 -0500)]
Renaming all the classes for the Printer to match the name of the file

16 years agoFinished that file name swap.
Robert Sesek [Thu, 24 Jan 2008 21:21:44 +0000 (16:21 -0500)]
Finished that file name swap.

16 years agoThese two files need to be swapped
Robert Sesek [Thu, 24 Jan 2008 21:21:21 +0000 (16:21 -0500)]
These two files need to be swapped

16 years agoRenaming the Printer files to make their names much less verbose. Part 1 of 2.
Robert Sesek [Thu, 24 Jan 2008 21:20:14 +0000 (16:20 -0500)]
Renaming the Printer files to make their names much less verbose. Part 1 of 2.

16 years agoAdd a rule about how to advance the ISSO version number and a version constant file
Robert Sesek [Thu, 24 Jan 2008 17:39:54 +0000 (12:39 -0500)]
Add a rule about how to advance the ISSO version number and a version constant file

* docs/versioning_rules.txt: Outlines the procedures for updating the version number
* version.php: The version number stored in a file

16 years agoDo not allow random() to take an array of high or low, just an optional fixed length...
Robert Sesek [Thu, 24 Jan 2008 16:24:51 +0000 (11:24 -0500)]
Do not allow random() to take an array of high or low, just an optional fixed length (otherwise it will randomly select one)

* Functions.php:
(BSFunctions::random): Do not accept an Array as a parameter, just an optional int
* UnitTest/FunctionsTest.php:
(FunctionsTest::testRandom): Test using a fixed length as well as the random length

16 years agoRemoving the is_browser() function
Robert Sesek [Wed, 23 Jan 2008 22:15:47 +0000 (17:15 -0500)]
Removing the is_browser() function

* Functions.php:
(BSFunctions::is_browser): Removed
(BSFunctions::download_file): Send both application/octet-stream and application/octetstream so we don't need to browser sniff anymore
* UnitTest/FunctionsTest.php: Removed the empty unit test for is_browser()

16 years agoChanging our coding standards slightly:
Robert Sesek [Wed, 23 Jan 2008 21:06:33 +0000 (16:06 -0500)]
Changing our coding standards slightly:

- foreach($a AS $b) goes to foreach($a as $b)
- ($a AND $b) goes to ($a && $b)
- ($a OR $b) goes to ($a || $b)

16 years agoWe no longer need the ISSO_CHECK_POST_REFERER because we made BSInput::_checkPostRefe...
Robert Sesek [Wed, 23 Jan 2008 20:45:57 +0000 (15:45 -0500)]
We no longer need the ISSO_CHECK_POST_REFERER because we made BSInput::_checkPostReferer() public

* Input.php:
(BSInput::__construct): Remove the code that called _checkPostReferer()
(BSInput::checkPostReferer): Removed the _ from the old name and made it public

16 years agoAdd sanity checks to BSPrinterNavigation when setting focus or sections
Robert Sesek [Mon, 14 Jan 2008 22:04:29 +0000 (17:04 -0500)]
Add sanity checks to BSPrinterNavigation when setting focus or sections

* PrinterNavigation.php
(BSPrinterNavigation::addFocus): Make sure the key is unique and exists before accepting it
(BSPrinterNavigation::addSection): ditto

16 years agoWe were testing for a condition that always works but used a non-existant var
Robert Sesek [Mon, 14 Jan 2008 21:48:03 +0000 (16:48 -0500)]
We were testing for a condition that always works but used a non-existant var

* printer.css.php

16 years agoFixing another bug in BSPrinterRootElementPage in paint() that was still making refer...
Robert Sesek [Mon, 14 Jan 2008 21:12:10 +0000 (16:12 -0500)]
Fixing another bug in BSPrinterRootElementPage in paint() that was still making references to GetType()

* PrinterRootElementPage.php
(BSPrinterRootElementPage::paint): We no longer use GetType() but instead cvars in BSApp

16 years agoFixing a bug in BSPrinterRootElementPage that would cause an error whenever we tried...
Robert Sesek [Mon, 14 Jan 2008 21:08:43 +0000 (16:08 -0500)]
Fixing a bug in BSPrinterRootElementPage that would cause an error whenever we tried to paint children

* PrinterRootElementPage.php:
(BSPrinterRootElementPage::_paintChildren): We use the var builder not this->builder

16 years agoMinor adjustments to the BSPrinterNavigation system to support not having tabs or...
Robert Sesek [Mon, 14 Jan 2008 21:06:25 +0000 (16:06 -0500)]
Minor adjustments to the BSPrinterNavigation system to support not having tabs or toplinks

* PrinterNavigation.php

16 years agoUpdating the PrinterNavigation system to take an XML structure instead that is much...
Robert Sesek [Mon, 14 Jan 2008 21:01:38 +0000 (16:01 -0500)]
Updating the PrinterNavigation system to take an XML structure instead that is much more powerful than the scoped keys of the old version

16 years agoMaking BSPrinterRootElementPage::setNavigator() part of the fluent interface
Robert Sesek [Mon, 14 Jan 2008 20:09:45 +0000 (15:09 -0500)]
Making BSPrinterRootElementPage::setNavigator() part of the fluent interface

* PrinterRootElementPage.php
(BSPrinterRootElementPage::setNavigator): Return a fluent interface

16 years agoFixing some things in the Printer system
Robert Sesek [Mon, 14 Jan 2008 20:04:19 +0000 (15:04 -0500)]
Fixing some things in the Printer system

* Printer.php: include PrinterNavigation.php
* PrinterRootElementPage.php:
(BSPrinterRootElementPage::get/setNavigator): Renamed from get/setNavigation()
(BSPrinterRootElementPage::paint): Fix a parse error caused by a missing concat op

16 years agoInstead of using the registry to get the PrinterNavigation system, add methods to...
Robert Sesek [Mon, 14 Jan 2008 19:58:38 +0000 (14:58 -0500)]
Instead of using the registry to get the PrinterNavigation system, add methods to set BSPrinterRootElementPage->navigator

* PrinterRootElementPage.php:
(BSPrinterRootElementPage::setNavigator): New method
(BSPrinterRootElementPage::getNavigator): New method

16 years agoWe now pass the installer test again, the issue was that InstallerTest->input wasn...
Robert Sesek [Mon, 14 Jan 2008 19:41:00 +0000 (14:41 -0500)]
We now pass the installer test again, the issue was that InstallerTest->input wasn't being set. The circular ref to the rig in TestInstallerFixture was also cleaned up

* UnitTest/InstallerTest.php

16 years agoRemoving the PHP tests because we have now implemented our conclusions
Robert Sesek [Sun, 13 Jan 2008 22:35:43 +0000 (14:35 -0800)]
Removing the PHP tests because we have now implemented our conclusions

16 years agoAdding fixes in the unit tests for all the refactoring we did
Robert Sesek [Sun, 13 Jan 2008 22:11:46 +0000 (14:11 -0800)]
Adding fixes in the unit tests for all the refactoring we did

16 years agoRemoving the BSVariableRegistry and instead making public static vars in BSApp for...
Robert Sesek [Sun, 13 Jan 2008 21:37:31 +0000 (13:37 -0800)]
Removing the BSVariableRegistry and instead making public static vars in BSApp for the necessary inter-linking modules

* Api.php: No longer use BSApp::registry() but rather just the cvars
* App.php: Make the ivars cvars so we no longer need singleton stuff
(BSApp::_instance): Removed
(BSApp::registry): Removed
(BSApp::load_module): Removed, just directly instantiate now
(BSApp::required_modules): Removed
(BSVariableRegistry): Removed
* Input.php: Use cvars instead of the BSApp::registry()
* Installer.php: ditto
* Mail.php: ditto
* Pagination.php: ditto
* Template.php: ditto

16 years agoRemoving a lot of old system variables from BSApp
Robert Sesek [Sun, 13 Jan 2008 20:43:26 +0000 (12:43 -0800)]
Removing a lot of old system variables from BSApp

* App.php: Removed BSApp->application, BSApp->appPath, BSApp->appVersion, BSApp->webPath
(BSApp::set_application): Removed
(BSApp::get_application): Removed
(BSApp::set_app_path): Removed
(BSApp::get_app_path): Removed
(BSApp::set_app_version): Removed
(BSApp::get_app_version): Removed
(BSApp::set_web_path): Removed
(BSApp::get_web_path): Removed
* Printer.php: Add BSPrinter->copyright to store copyright information for the footer of pages
(BSPrinter::get_copyright): New method
(BSPrinter::set_copyright): New method
* PrinterNavigation.php: BSPrinter->realm is now the only component used for titles
(BSPrinterNavigation::constructHeaderHtml): Now uses only the realm
* PrinterRootElementPage.php: Again, only use BSPrinter->realm
(BSPrinterRootElementPage::paint): Switch to using only the realm in the title and using BSPrinter->copyright in the footer

16 years agoFixing a few functions that broke during the refactoring
Robert Sesek [Sun, 13 Jan 2008 18:46:16 +0000 (10:46 -0800)]
Fixing a few functions that broke during the refactoring

* Functions.php:
(BSFunctions::swap_css_classes): This function wasn't marked static so it wasn't refactored, fixed both of those issues
(BSFunctions::scan_directory): Issues arose with _help_scan_directory()
(BSFunctions::_help_scan_directory): ditto

16 years agoRefactoring all the static functions to not use the upper camel-case nomenclature...
Robert Sesek [Sun, 13 Jan 2008 08:19:10 +0000 (00:19 -0800)]
Refactoring all the static functions to not use the upper camel-case nomenclature, but rather underscores

16 years agoWe need to throw Exceptions rather than trigger_error()
Robert Sesek [Sun, 13 Jan 2008 04:55:41 +0000 (20:55 -0800)]
We need to throw Exceptions rather than trigger_error()

* PrinterNavigation.php:
(BSPrinterNavigation::setFocus)

16 years agoSetting up the fluent interface for all of the printer classes
Robert Sesek [Sat, 12 Jan 2008 23:29:54 +0000 (15:29 -0800)]
Setting up the fluent interface for all of the printer classes

16 years agoStart providing a fluent interface for the printer stuff. All printer elemnets now...
Robert Sesek [Sat, 12 Jan 2008 23:19:12 +0000 (15:19 -0800)]
Start providing a fluent interface for the printer stuff. All printer elemnets now have a make() method that calls the constructor

16 years agoHappy new year!
Robert Sesek [Sat, 5 Jan 2008 19:57:13 +0000 (11:57 -0800)]
Happy new year!

16 years agoRemoving the CSS editor generator
Robert Sesek [Thu, 20 Dec 2007 16:52:08 +0000 (11:52 -0500)]
Removing the CSS editor generator

* PrinterCss.php: Removed

16 years agoRemoving the graphing files
Robert Sesek [Mon, 17 Dec 2007 05:23:38 +0000 (00:23 -0500)]
Removing the graphing files

* Graph.php
* GraphLine.php
* GraphPie.php

16 years agoThe API is now all unit tested
Robert Sesek [Mon, 17 Dec 2007 05:12:15 +0000 (00:12 -0500)]
The API is now all unit tested

* Api.php
* UnitTest/ApiTest.php

16 years agoRemoving the XML class because we will now use SimpleXML for all our parsing needs
Robert Sesek [Thu, 6 Dec 2007 18:33:35 +0000 (13:33 -0500)]
Removing the XML class because we will now use SimpleXML for all our parsing needs

* UnitTest/AllTests.php: do not include the XML tests anymore
* UnitTest/XmlTest.php: Removed
* Xml.php: Removed

16 years agoUnit test updates
Robert Sesek [Thu, 6 Dec 2007 18:31:22 +0000 (13:31 -0500)]
Unit test updates

* UnitTest/ApiTest.php

16 years agoFixing some warnings that I discovered through unit testing under E_ALL
Robert Sesek [Fri, 30 Nov 2007 18:47:12 +0000 (13:47 -0500)]
Fixing some warnings that I discovered through unit testing under E_ALL

* Functions.php:
(BSFunctions::FetchMicrotimeDiff): Refactored the local vars
* Template.php:
(BSTemplate::fetch): Fixed a warning generated by the uncached template counter
(BSTemplate::flush): Fixed a warning about the microtime diff because we weren't passing a microtime, just the seconds

16 years agoCleaning up the Api::_runActionMethod() method
Robert Sesek [Fri, 30 Nov 2007 18:33:03 +0000 (13:33 -0500)]
Cleaning up the Api::_runActionMethod() method

* Api.php:
(BSApi::_runActionMethod): Don't use the ternary operator, just use the if() statment at the beginning

16 years agoRenaming Api->objdata to be Api->record
Robert Sesek [Fri, 30 Nov 2007 18:31:49 +0000 (13:31 -0500)]
Renaming Api->objdata to be Api->record

* Api.php

16 years agoAdding a testCondition() method to the API test
Robert Sesek [Fri, 30 Nov 2007 18:30:38 +0000 (13:30 -0500)]
Adding a testCondition() method to the API test

* UnitTest/ApiTest.php

16 years agoAdd thed API unit tests
Robert Sesek [Mon, 19 Nov 2007 14:44:56 +0000 (09:44 -0500)]
Add thed API unit tests

17 years agoWhen the API needs to throw an exception regarding a field, use a new FieldException...
Robert Sesek [Wed, 17 Oct 2007 20:50:36 +0000 (16:50 -0400)]
When the API needs to throw an exception regarding a field, use a new FieldException which holds the name of the field as well as the error.

17 years agoIn Api.php we were still calling BSApp::GetType() instead of BSApp::Registry()->getType()
Robert Sesek [Wed, 17 Oct 2007 20:40:26 +0000 (16:40 -0400)]
In Api.php we were still calling BSApp::GetType() instead of BSApp::Registry()->getType()

* Api.php

17 years agoAdding the API::$table and API::$prefix instance variables so that subclasses know...
Robert Sesek [Wed, 17 Oct 2007 20:31:44 +0000 (16:31 -0400)]
Adding the API::$table and API::$prefix instance variables so that subclasses know to override them

* Api.php

17 years agoChanging the error reporting system in the API to use exceptions instead of the old...
Robert Sesek [Fri, 12 Oct 2007 19:24:08 +0000 (15:24 -0400)]
Changing the error reporting system in the API to use exceptions instead of the old error handler system of before

* Api.php

17 years agoChanging the way we include framework files. Instead of modifying the include_path...
Robert Sesek [Wed, 26 Sep 2007 16:40:19 +0000 (12:40 -0400)]
Changing the way we include framework files. Instead of modifying the include_path we just define the constant ISSO as the path to ISSO.

17 years agoCleaing up error reporting and error triggering in Api.php
Robert Sesek [Sun, 23 Sep 2007 15:28:53 +0000 (11:28 -0400)]
Cleaing up error reporting and error triggering in Api.php

* Api.php: Removed the APIError() system and we now use exceptions instead of trigger_error()

17 years agoFix a failing unit test to work around the file system being slow
Robert Sesek [Sat, 22 Sep 2007 18:44:56 +0000 (14:44 -0400)]
Fix a failing unit test to work around the file system being slow

* UnitTest/TemplateTest.php:
(TemplateTest::testDbCache): sleep() for a second in order to allow the file system to catch up to the changes we're making

17 years agoMoving the insertId() and affectedRows() methods from the result class to the databas...
Robert Sesek [Sat, 22 Sep 2007 18:37:42 +0000 (14:37 -0400)]
Moving the insertId() and affectedRows() methods from the result class to the database one and fixed a broken BSDbResult::free

* Db.php
* DbMySql.php
* DbMySqlI.php
* DbPostgreSql.php
* UnitTest/DatabaseTestAbstract.php

17 years agoDatabase results are now independent objects as opposed to being a resource identifie...
Robert Sesek [Sat, 22 Sep 2007 18:31:31 +0000 (14:31 -0400)]
Database results are now independent objects as opposed to being a resource identifier, which greatly simplifies method calls

* Db.php
* DbMySql.php
* DbMySqlI.php
* DbPostgreSql.php
* Template.php
* UnitTest/DatabaseTestAbstract.php

17 years agoIn the installer test, the welcome page is to be echo'd instead of return'd
Robert Sesek [Sat, 15 Sep 2007 17:51:48 +0000 (13:51 -0400)]
In the installer test, the welcome page is to be echo'd instead of return'd

* UnitTest/InstallerTest.php:
(TestInstallerFixture::_welcomePage)

17 years agoFixing a broken unit test
Robert Sesek [Sat, 15 Sep 2007 17:07:49 +0000 (13:07 -0400)]
Fixing a broken unit test

* UnitTest/AppTest.php:
(AppTest::testGetAll): The count was off by one due to a new method

17 years agoAdded the installer unit test
Robert Sesek [Sat, 15 Sep 2007 17:03:44 +0000 (13:03 -0400)]
Added the installer unit test

* Installer.php:
(BSInstaller::__construct): Fixed a bad call to the registry
* UnitTest/AllTests.php: Add the installer test
* UnitTest/InstallerTest.php: New file

17 years agoRemove the check in BSApp::RequiredModules that was meant for checking static classes...
Robert Sesek [Sat, 15 Sep 2007 16:55:33 +0000 (12:55 -0400)]
Remove the check in BSApp::RequiredModules that was meant for checking static classes (as we don't need it)

* App.php:
(BSApp::RequiredModules)

17 years agoFixing some bugs in the mail framework due to mistyped variable capitalization and...
Robert Sesek [Wed, 22 Aug 2007 08:07:11 +0000 (01:07 -0700)]
Fixing some bugs in the mail framework due to mistyped variable capitalization and a call to $this->registry->unsanitize()

* Mail.php:
(BSMail::send)

17 years agoFixing another call to BSApp::GetType() and switching to using the ::Registry()
Robert Sesek [Wed, 22 Aug 2007 07:55:02 +0000 (00:55 -0700)]
Fixing another call to BSApp::GetType() and switching to using the ::Registry()

* Mail.php:
(BSMail::send)

17 years agoRemoving the old ReigsterTest.php
Robert Sesek [Mon, 20 Aug 2007 16:43:24 +0000 (09:43 -0700)]
Removing the old ReigsterTest.php

* UnitTest/RegisterTest.php: Removed

17 years agoRemoving the old coverage reporter from the unit test system
Robert Sesek [Mon, 20 Aug 2007 16:30:10 +0000 (09:30 -0700)]
Removing the old coverage reporter from the unit test system

* UnitTest/Coverage.php: Removed

17 years agoUse (c) instead of the actual copyright symbol to avoid the really annoying character...
Robert Sesek [Mon, 20 Aug 2007 01:08:27 +0000 (18:08 -0700)]
Use (c) instead of the actual copyright symbol to avoid the really annoying character encoding issues

17 years agoRemoving all the package replacement tags and SVN keyword tags
Robert Sesek [Mon, 20 Aug 2007 00:58:02 +0000 (17:58 -0700)]
Removing all the package replacement tags and SVN keyword tags

17 years agoFinishing the template unit test
Robert Sesek [Sun, 19 Aug 2007 20:34:11 +0000 (20:34 +0000)]
Finishing the template unit test

17 years agoFixing more instances of BSApp::GetType()
Robert Sesek [Sun, 19 Aug 2007 20:34:03 +0000 (20:34 +0000)]
Fixing more instances of BSApp::GetType()

* Template.php:
(BSTemplate::flush)

17 years agoAdded tests for template preparse hooks and the cache system
Robert Sesek [Sun, 19 Aug 2007 17:58:38 +0000 (17:58 +0000)]
Added tests for template preparse hooks and the cache system

* UnitTest/TemplateTest.php

17 years agoDiscovered another older style of accessing the registry
Robert Sesek [Sun, 19 Aug 2007 17:41:51 +0000 (17:41 +0000)]
Discovered another older style of accessing the registry

* Template.php:
(BSTemplate::cache): Use the new BSApp::Registry() system

17 years agoFixing the include path for docs/tools/create_schema.php
Robert Sesek [Sun, 19 Aug 2007 15:23:40 +0000 (15:23 +0000)]
Fixing the include path for docs/tools/create_schema.php

* docs/tools/create_schema.php: Hard-coding our include path

17 years agoAdding a TemplateTest.php file and all the associated template files along with it
Robert Sesek [Sun, 19 Aug 2007 08:15:12 +0000 (08:15 +0000)]
Adding a TemplateTest.php file and all the associated template files along with it

17 years agoRemoving dead function in Template.php
Robert Sesek [Thu, 16 Aug 2007 20:54:42 +0000 (20:54 +0000)]
Removing dead function in Template.php

* Template.php:
(print_around): Removed

17 years agoRemoving the usage counter in from the template system
Robert Sesek [Thu, 16 Aug 2007 20:51:48 +0000 (20:51 +0000)]
Removing the usage counter in from the template system

* Template.php:
(BSTemplate::cache): No longer initialize the usage counter
(BSTemplate::fetch): Only increment the BSTemplate->uncached[] template counter when the template is not cached
(BSTemplate::flsuh): Remove the template debug block and only show uncached templates and their usage

17 years agoRemoving the SVN constant option and the ISSO_MT_START (thanks to $_SERVER['REQUEST_T...
Robert Sesek [Thu, 16 Aug 2007 20:44:53 +0000 (20:44 +0000)]
Removing the SVN constant option and the ISSO_MT_START (thanks to $_SERVER['REQUEST_TIME'])

* Template.php:
(BSTemplate::flush): No longer display SVN information and we can use $_SERVER[REQUEST_TIME] so we don't need to define ISSO_MT_START
* App.php: Remove documentation about constants

17 years agoSimplifying the loading of templates so we don't have two exceptions to throw for...
Robert Sesek [Thu, 16 Aug 2007 20:35:59 +0000 (20:35 +0000)]
Simplifying the loading of templates so we don't have two exceptions to throw for the same type of error

* Template.php
(BSTemplate::_loadTemplate): Check if the path is a file and can be read, instead of checking the result of file_get_contents() becaues that way we don't throw multiple exceptions in the same method unnecessarily

17 years agoDo not use BSApp::GetAppPath() anymore for the template path, but instead use a fully...
Robert Sesek [Thu, 16 Aug 2007 20:23:57 +0000 (20:23 +0000)]
Do not use BSApp::GetAppPath() anymore for the template path, but instead use a fully-qualified path in BSTemplate->templateDir

* Template.php:
(BSTemplate::cache)
(BSTemplate::_loadTemplate)

17 years agoMaking the two MySQL tests create an InnoDB database so that we can practice our...
Robert Sesek [Wed, 15 Aug 2007 07:06:17 +0000 (07:06 +0000)]
Making the two MySQL tests create an InnoDB database so that we can practice our new transaction test

* UnitTest/DatabaseMySQLTest.php:
(DatabaseMySQLTest::setUp): Create the test table as InnoDB
* UnitTest/DatabaseMySQLiTest.php:
(DatabaseMySQLiTest::setUp): ditto
* UnitTest/DatabaseTestAbstract.php:
(DatabaseTestAbstract::testTransactions): New method

17 years agoMoving the tools/ directory to the docs/ folder
Robert Sesek [Tue, 14 Aug 2007 04:01:27 +0000 (04:01 +0000)]
Moving the tools/ directory to the docs/ folder

17 years agoMoving the UnitTest directory out of the docs/ folder and into the root of the framework
Robert Sesek [Tue, 14 Aug 2007 04:00:56 +0000 (04:00 +0000)]
Moving the UnitTest directory out of the docs/ folder and into the root of the framework

17 years agoRemoving dead files that we no longer need
Robert Sesek [Tue, 14 Aug 2007 04:00:01 +0000 (04:00 +0000)]
Removing dead files that we no longer need

17 years agoFixing a call to BSApp::GetType() that no longer exists
Robert Sesek [Tue, 14 Aug 2007 03:49:10 +0000 (03:49 +0000)]
Fixing a call to BSApp::GetType() that no longer exists

* App.php:
(BSApp::RequiredModules)

17 years agoForgot to change our require_once() in our unit test for AppTest
Robert Sesek [Tue, 14 Aug 2007 03:47:02 +0000 (03:47 +0000)]
Forgot to change our require_once() in our unit test for AppTest

* docs/UnitTest/AppTest.php:
(AppTest::setUp): Change the require_once() path

17 years agoFixing "method not found" for BSApp::GetType()
Robert Sesek [Tue, 14 Aug 2007 03:46:05 +0000 (03:46 +0000)]
Fixing "method not found" for BSApp::GetType()

* Input.php:
(BSInput::escape)

17 years agoRenaming BSRegister to BSApp and moving Register.php to App.php
Robert Sesek [Tue, 14 Aug 2007 03:44:27 +0000 (03:44 +0000)]
Renaming BSRegister to BSApp and moving Register.php to App.php

17 years agoUpdating the unit tests for preparation of renaming BSRegister to BSApp
Robert Sesek [Tue, 14 Aug 2007 03:42:12 +0000 (03:42 +0000)]
Updating the unit tests for preparation of renaming BSRegister to BSApp

17 years agoChanging the registry part of BSRegister to be a new inner class called BSVariableReg...
Robert Sesek [Tue, 14 Aug 2007 03:38:41 +0000 (03:38 +0000)]
Changing the registry part of BSRegister to be a new inner class called BSVariableRegistry

* Register.php:
(BSRegister::__construct): Instantiate a new instance of BSVariableRegistry
(BSRegister::Registry): New method
(BSRegister::Register): Removed
(BSRegister::Unregister): Removed
(BSRegister::Get): Removed
(BSRegister::GetType): Removed
(BSRegister::GetAll): Removed
(BSVariableRegistry): New class
* docs/UnitTest/RegisterTest.php: Updated the unit test for the new BSRegister functionality

17 years agoRemvoing all the methods in BSRegister that handle error reporting
Robert Sesek [Tue, 14 Aug 2007 02:54:08 +0000 (02:54 +0000)]
Remvoing all the methods in BSRegister that handle error reporting

* Register.php:
(BSRegister::Message): Removed
(BSRegister::_errorHandler): Removed
(BSRegister::ExplainErrorReporting): Removed

17 years agoSwitching from calls to trigger_error() to throwing generic exceptions for client...
Robert Sesek [Tue, 14 Aug 2007 01:59:04 +0000 (01:59 +0000)]
Switching from calls to trigger_error() to throwing generic exceptions for client implementation errors

* Installer.php
* Template.php
* PrinterBaseElement.php
* PrinterTableElement.php
* PrinterRootElementTable.php
* Mail.php

17 years agoSuppress errors in connecting via MySQLi
Robert Sesek [Tue, 14 Aug 2007 01:49:38 +0000 (01:49 +0000)]
Suppress errors in connecting via MySQLi

* DbMySqlI.php:
(BSDbMySqlI::_connect): Suppress the errors in our call to mysqli_connect