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
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
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
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
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
Robert Sesek [Sat, 28 Jul 2007 17:37:32 +0000 (17:37 +0000)]
Starting to migrate from SimpleTest to PHPUnit.
* docs/UnitTestReport.php: Renamed to SimpleTestReporter
* docs/UnitTest/AllTests.php: Changing the path to the test reporter, see above.
* docs/PHPUnitTestReporter.php: Added
Robert Sesek [Sat, 21 Apr 2007 21:23:47 +0000 (21:23 +0000)]
- In Pagination::constructPageNav() we added the $addParam paramter to not force adding the ? or & onto the end of $baselink
- Fixed "Call to undefined method BSInput::input_clean()"
Robert Sesek [Wed, 4 Apr 2007 02:40:20 +0000 (02:40 +0000)]
Removing BSTemplate database-driven system in place of BSTemplateFs (which is now called BSTemplate) because we never use database-driven templates any more, but rather file templates with database caching
Robert Sesek [Wed, 4 Apr 2007 01:46:09 +0000 (01:46 +0000)]
Rewrote the <lang> tag parser in BSTemplate::_parsePhrases():
- Now the indices in the tag actually correspond to the appropriate argument
- It looks a lot cooler?
Robert Sesek [Sat, 17 Mar 2007 15:39:07 +0000 (15:39 +0000)]
Fixed a bug in Mail that was fixed on trunk: in send() we change the global headers ($this->headers) and that creates a problem if we want to change the from address, etc. So in send() no longer change that variable.
Robert Sesek [Sat, 17 Feb 2007 23:30:00 +0000 (23:30 +0000)]
Added an additional parsing step in which curly braces are parsed into PHP code no matter what, so that way we can use all kinds of cool functions in them
Robert Sesek [Sat, 17 Feb 2007 03:56:55 +0000 (03:56 +0000)]
- Moving some important things (like painting a blank canvas and allocating common colors) to BSGraph from BSGraphPie
- We can now properly label our axes in BSGraphLine, though we don't show any points
Robert Sesek [Thu, 15 Feb 2007 02:26:59 +0000 (02:26 +0000)]
Added a very nifty caching system for filesystem templates. Apparently, the main most time is spent in the actual processing of templates (parsing language and conditionals). This system works by polling the database cache (which stores the fully compiled templates) and checks to make sure that the filesystem files aren't actually updated. If they are, it updates the cache, and if they aren't it just returns the database copy. The process only works on templates called in cache() and not in lazy-loading in fetch().