isso.git
15 years agoUpdating the version 3.1.3 3.1.x 3.1.3
Robert Sesek [Mon, 5 Jan 2009 03:11:23 +0000 (19:11 -0800)]
Updating the version 3.1.3

* version.php

15 years agoAdd BSApi::fetchValue() and BSApi::reset() methods
Robert Sesek [Fri, 7 Nov 2008 17:16:59 +0000 (12:16 -0500)]
Add BSApi::fetchValue() and BSApi::reset() methods

* Api.php:
(BSApi::fetchValue): New method to return the value of a field from either the record[] or values[] array
(BSApi::reset): New method to reset the API object to only have the REQ_AUTO field set

15 years agoBSPrinterRootForm's marked as ::setUpload() would not have the right enctype set
Robert Sesek [Thu, 23 Oct 2008 14:01:24 +0000 (10:01 -0400)]
BSPrinterRootForm's marked as ::setUpload() would not have the right enctype set

* PrinterRootForm.php:
(BSPrinterRootForm::paint): Use the proper enctype

15 years agoUpdate version number 3.1.2
Robert Sesek [Wed, 17 Sep 2008 14:25:04 +0000 (10:25 -0400)]
Update version number

* version.php

15 years agoChange BSApi::remove() to BSApi::delete()
Robert Sesek [Sat, 6 Sep 2008 18:24:04 +0000 (14:24 -0400)]
Change BSApi::remove() to BSApi::delete()

* Api.php:
(BSApi::remove): Renamed to delete()

15 years agoAdd convert_txt tool to convert a text file into a HTML document
Robert Sesek [Wed, 20 Aug 2008 01:57:11 +0000 (21:57 -0400)]
Add convert_txt tool to convert a text file into a HTML document

* docs/tools/convert_txt.php: New file

15 years agoFix create_schema.php to work with the current version of ISSO and BSDb
Robert Sesek [Wed, 9 Jul 2008 15:30:01 +0000 (11:30 -0400)]
Fix create_schema.php to work with the current version of ISSO and BSDb

* docs/tools/create_schema.php

15 years agoUse a regex to match queries that need Result objects, because it's more than just...
Robert Sesek [Wed, 9 Jul 2008 15:29:20 +0000 (11:29 -0400)]
Use a regex to match queries that need Result objects, because it's more than just SELECT

* Db.php:
(BSDb::query): SELECT, DESCRIBE, and EXPLAIN queries all need a Result object

15 years agoFixing an undefined variable notice and improving the debug output 3.1.1
Robert Sesek [Mon, 7 Jul 2008 20:08:15 +0000 (16:08 -0400)]
Fixing an undefined variable notice and improving the debug output

* Mail.php:
(BSMail::send): Change the $sendHtml param to $sendhtml and mark the BSApp::debug messages with the class name

15 years agoVersion 3.1.1
Robert Sesek [Mon, 7 Jul 2008 14:15:14 +0000 (10:15 -0400)]
Version 3.1.1

15 years agoUpdate the API documentation
Robert Sesek [Mon, 7 Jul 2008 13:43:44 +0000 (09:43 -0400)]
Update the API documentation

* PrinterAbstract.php
(BSPrinterAbstract::setId): Document the return type
(BSPrinterAbstract::_prepareStyle): Update docs

15 years agoFixing a call to undefined function error for BSFunctions::Rand() in BSMail::send()
Robert Sesek [Sun, 6 Jul 2008 12:52:21 +0000 (08:52 -0400)]
Fixing a call to undefined function error for BSFunctions::Rand() in BSMail::send()

* Mail.php:
(BSMail::send): Require Functions.php and then call ::random() instead of ::Rand()

15 years agoSetting the verison to be 3.1.0 3.1.0
Robert Sesek [Sun, 6 Jul 2008 12:39:27 +0000 (08:39 -0400)]
Setting the verison to be 3.1.0

* version.php

15 years agoWe need to require() Functions.php in BSPrinterRootPage::paint() for the ISSO_MT_STAR...
Robert Sesek [Sun, 6 Jul 2008 12:28:17 +0000 (08:28 -0400)]
We need to require() Functions.php in BSPrinterRootPage::paint() for the ISSO_MT_START timer

* PrinterRootPage.php
(BSPrinterRootPage::paint)

15 years agoAdding a global exception handler BSExceptionHandler
Robert Sesek [Wed, 2 Jul 2008 02:13:25 +0000 (22:13 -0400)]
Adding a global exception handler BSExceptionHandler

* ExceptionHandler.php: New file
* App.php: set_exception_handler() to use BSExceptionHandler

15 years agoApiException will now string all of its exceptions together to form the message
Robert Sesek [Tue, 1 Jul 2008 21:50:15 +0000 (17:50 -0400)]
ApiException will now string all of its exceptions together to form the message

* Api.php:
(ApiException::__construct): Add a prefix for the list of errors to be displayed
(ApiException::addException): Append the exception's message to ApiException->message

15 years agoBetter handle parse errors in nested templates
Robert Sesek [Thu, 26 Jun 2008 16:10:50 +0000 (12:10 -0400)]
Better handle parse errors in nested templates

* Template.php:
(BSTemplate::evaluate): Don't call ob_end_clean()

15 years agoAdd BSTemplate::$globalVars that every template will substitute through
Robert Sesek [Thu, 26 Jun 2008 14:37:44 +0000 (10:37 -0400)]
Add BSTemplate::$globalVars that every template will substitute through

* Template.php:
(BSTemplate::evaluate)

15 years agoPass the BSTemplate object to the ISSO hook
Robert Sesek [Thu, 26 Jun 2008 14:15:44 +0000 (10:15 -0400)]
Pass the BSTemplate object to the ISSO hook

* Template.php:
(BSTemplate::_parseTemplate)

15 years agoMake Pagination->page and Pagination->perpage be public and not protected
Robert Sesek [Wed, 25 Jun 2008 18:51:46 +0000 (14:51 -0400)]
Make Pagination->page and Pagination->perpage be public and not protected

* Pagination.php

15 years agoAdd a test for the new Iterarator implementation in BSDBResult
Robert Sesek [Wed, 25 Jun 2008 14:25:50 +0000 (10:25 -0400)]
Add a test for the new Iterarator implementation in BSDBResult

* UnitTest/DatabaseTestAbstract.php
(DatabaseTestAbstract::testIterator): New method

15 years agoImplement Iterator in BSDbResult
Robert Sesek [Wed, 25 Jun 2008 14:14:33 +0000 (10:14 -0400)]
Implement Iterator in BSDbResult

* Db.php: Add $iterator ivar
(BSDBResult::rewind): New method
(BSDBResult::current): New method
(BSDBResult::key): New method
(BSDBResult::next): New method
(BSDBResult::valid): New method

16 years agoIn the template manager, add an option to echo in the opening tag
Robert Sesek [Mon, 14 Apr 2008 18:09:39 +0000 (14:09 -0400)]
In the template manager, add an option to echo in the opening tag

* Template.php:
(BSTemplate::_parseTokens): If the tag is <%- convert it to <?php echo

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

16 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.

16 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

16 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

16 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

16 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.

16 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()

16 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

16 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

16 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

16 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)

16 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

16 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

16 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)

16 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)

16 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)

16 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

16 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

16 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

16 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

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