]>
src.bluestatic.org Git - isso.git/log
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
Robert Sesek [Fri, 30 Nov 2007 18:31:49 +0000 (13:31 -0500)]
Renaming Api->objdata to be Api->record
* Api.php
Robert Sesek [Fri, 30 Nov 2007 18:30:38 +0000 (13:30 -0500)]
Adding a testCondition() method to the API test
* UnitTest/ApiTest.php
Robert Sesek [Mon, 19 Nov 2007 14:44:56 +0000 (09:44 -0500)]
Add thed API unit tests
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.
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
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
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
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.
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()
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
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
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
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)
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
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
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)
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)
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)
Robert Sesek [Mon, 20 Aug 2007 16:43:24 +0000 (09:43 -0700)]
Removing the old ReigsterTest.php
* UnitTest/RegisterTest.php: Removed
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
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
Robert Sesek [Mon, 20 Aug 2007 00:58:02 +0000 (17:58 -0700)]
Removing all the package replacement tags and SVN keyword tags
Robert Sesek [Sun, 19 Aug 2007 20:34:11 +0000 (20:34 +0000)]
Finishing the template unit test
Robert Sesek [Sun, 19 Aug 2007 20:34:03 +0000 (20:34 +0000)]
Fixing more instances of BSApp::GetType()
* Template.php:
(BSTemplate::flush)
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
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
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
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
Robert Sesek [Thu, 16 Aug 2007 20:54:42 +0000 (20:54 +0000)]
Removing dead function in Template.php
* Template.php:
(print_around): Removed
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 [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)
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 04:01:27 +0000 (04:01 +0000)]
Moving the tools/ directory to the docs/ folder
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
Robert Sesek [Tue, 14 Aug 2007 04:00:01 +0000 (04:00 +0000)]
Removing dead files that we no longer need
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)
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
Robert Sesek [Tue, 14 Aug 2007 03:46:05 +0000 (03:46 +0000)]
Fixing "method not found" for BSApp::GetType()
* Input.php:
(BSInput::escape)
Robert Sesek [Tue, 14 Aug 2007 03:44:27 +0000 (03:44 +0000)]
Renaming BSRegister to BSApp and moving Register.php to App.php
Robert Sesek [Tue, 14 Aug 2007 03:42:12 +0000 (03:42 +0000)]
Updating the unit tests for preparation of renaming BSRegister to BSApp
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 [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
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
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
Robert Sesek [Tue, 14 Aug 2007 01:48:27 +0000 (01:48 +0000)]
Renaming the transaction*() methods to just be the type of transaction statement to send, and removing savepoint support
* DbMySql.php
* DbMySqlI.php
* Db.php
* DbPostgreSql.php
Robert Sesek [Tue, 14 Aug 2007 01:44:39 +0000 (01:44 +0000)]
Removing a call to _error in DbMySql.php because it's no longer needed with exceptions
* DbMySql.php:
(DbMySql::_selectDb)
Robert Sesek [Tue, 14 Aug 2007 01:42:55 +0000 (01:42 +0000)]
Adding database unit tests and in the Db module, use a new DatabaseException class intead of triggering errors
Robert Sesek [Fri, 3 Aug 2007 18:30:16 +0000 (18:30 +0000)]
Don't quote certain MySQL values
Robert Sesek [Fri, 3 Aug 2007 18:02:31 +0000 (18:02 +0000)]
Updating create_schema.php to work with the new ISSO3 stuff
Robert Sesek [Sat, 28 Jul 2007 18:33:43 +0000 (18:33 +0000)]
- Switch to using Exception in Xml.php, Register.php, and Input.php
- We now have a fully working test suite again
Robert Sesek [Sat, 28 Jul 2007 18:16:35 +0000 (18:16 +0000)]
Our test suite is now done with PHPUnit, although it's rather broken
Robert Sesek [Sat, 28 Jul 2007 17:43:46 +0000 (17:43 +0000)]
* tools/ISI_PHPUnit2_Output_HTML_Listener.php: Removed because we added it already.
Robert Sesek [Sat, 28 Jul 2007 17:42:38 +0000 (17:42 +0000)]
Removing the pconnect option from BSDb and it's children.
* Db.php:
(BSDb::connect): Removing the $pconnect paramater
(BSDb::_pConnect): Removed.
* DbMySql.php:
(BSDbMySql::_pConnect): Removed
* DbMySqlI.php:
(BSDbMySqlI::_pConnect): Removed
* DbPostgreSql.php:
(BSDbPostgreSql::_pConnect): Removed
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 [Sun, 15 Jul 2007 19:33:01 +0000 (19:33 +0000)]
Adding the results of testing with PHP5
Robert Sesek [Sun, 15 Jul 2007 18:53:27 +0000 (18:53 +0000)]
Adding PDO tests
Robert Sesek [Sun, 15 Jul 2007 18:50:23 +0000 (18:50 +0000)]
Moving imported tools into the tools/ directory
Robert Sesek [Sun, 15 Jul 2007 18:48:53 +0000 (18:48 +0000)]
Merging the php520 tests from the branch
Robert Sesek [Sun, 15 Jul 2007 18:43:55 +0000 (18:43 +0000)]
Importing tools to ISSO
Robert Sesek [Sat, 14 Jul 2007 23:14:27 +0000 (23:14 +0000)]
Adding date tests
Robert Sesek [Sat, 14 Jul 2007 22:48:54 +0000 (22:48 +0000)]
Adding a few tests of PHP5's new features
Robert Sesek [Sat, 14 Jul 2007 22:39:12 +0000 (22:39 +0000)]
Branching the ISSO3 trunk in experimenting with the new features of PHP 5.2.0
Robert Sesek [Fri, 13 Jul 2007 05:08:00 +0000 (05:08 +0000)]
Merging changes from the 2.1.x branch back to trunk (r860-862)
Robert Sesek [Fri, 13 Jul 2007 05:00:49 +0000 (05:00 +0000)]
In mail.php, we don't want to double encode fields so in send() create local variables instead of using object properties
Robert Sesek [Sat, 7 Jul 2007 23:50:46 +0000 (23:50 +0000)]
Change Mail::_encodeHeaderValue() to use regexp instead of a for() loop
Robert Sesek [Sat, 7 Jul 2007 23:36:24 +0000 (23:36 +0000)]
Adding Mail::_encodeHeaderValue()
Robert Sesek [Sat, 7 Jul 2007 22:41:16 +0000 (22:41 +0000)]
In xml.php, the default should be utf8 and when using it, we don't want to call utf8_encode()
Robert Sesek [Wed, 13 Jun 2007 23:17:30 +0000 (23:17 +0000)]
In BSApi::fetch(), remove the code that populated BSApi->values[] with the objdata result
Robert Sesek [Wed, 13 Jun 2007 23:16:05 +0000 (23:16 +0000)]
Adding a verify_unique() method to BSApi
Robert Sesek [Wed, 13 Jun 2007 23:06:37 +0000 (23:06 +0000)]
In Api.php, TYPE_NOCLEAN no longer exists as it was replaced with TYPE_NONE
Robert Sesek [Wed, 13 Jun 2007 23:05:49 +0000 (23:05 +0000)]
Modifying the error handling system in BSApi so that errors generated from validating data that's only used to fetch are ignored
Robert Sesek [Wed, 13 Jun 2007 22:53:34 +0000 (22:53 +0000)]
In BSRegister::RequiredModules, we forgot a word in the error message
Robert Sesek [Tue, 1 May 2007 00:17:12 +0000 (00:17 +0000)]
Removing the Markdown parser because we don't need it really
Robert Sesek [Sun, 22 Apr 2007 06:15:28 +0000 (06:15 +0000)]
Optimizing BSFunctions::Random() ever so slightly so we only need one loop instead of many
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 [Mon, 9 Apr 2007 00:18:25 +0000 (00:18 +0000)]
Remove a potential warning in BSRegister::_errorHandler() due to an array index
Robert Sesek [Wed, 4 Apr 2007 02:52:30 +0000 (02:52 +0000)]
Don't call intval() on the percentages because then we can end up with bad data sets
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 [Wed, 4 Apr 2007 00:49:11 +0000 (00:49 +0000)]
Added BSFunctions::Substring() that doesn't take in a length, but rather an end position
Robert Sesek [Tue, 3 Apr 2007 20:06:32 +0000 (20:06 +0000)]
Added a system to extract the link map...
Robert Sesek [Tue, 3 Apr 2007 19:31:17 +0000 (19:31 +0000)]
Added support for horizontal rules in Markdown
Robert Sesek [Tue, 3 Apr 2007 19:24:28 +0000 (19:24 +0000)]
Markdown parser in progress....
Robert Sesek [Sun, 1 Apr 2007 20:35:22 +0000 (20:35 +0000)]
We forgot to close a <p> tag in MarkdownTest::testParagraphs()
Robert Sesek [Sun, 1 Apr 2007 19:19:14 +0000 (19:19 +0000)]
More small fixes to the Markdown unit test
Robert Sesek [Sun, 1 Apr 2007 08:04:44 +0000 (08:04 +0000)]
Fix the DateTest uni test do it doesn't break in DST
Robert Sesek [Sun, 1 Apr 2007 07:58:10 +0000 (07:58 +0000)]
Fixing a few bugs with the Markdown unit test
Robert Sesek [Sun, 1 Apr 2007 07:36:11 +0000 (07:36 +0000)]
Added an empty Markdown.php file and a skeleton BSMarkdown class. Complete unit test for the Markdown parser is done.
Robert Sesek [Wed, 28 Mar 2007 03:42:56 +0000 (03:42 +0000)]
Adding a test method for the debug list
Robert Sesek [Sun, 25 Mar 2007 19:01:17 +0000 (19:01 +0000)]
Fixed another problem where there would be DB function-not-found errors if the cache table wouldn't be enabled
Robert Sesek [Mon, 19 Mar 2007 18:16:39 +0000 (18:16 +0000)]
Fixing makepo.sh.php to actually use deep directories
Robert Sesek [Mon, 19 Mar 2007 05:50:04 +0000 (05:50 +0000)]
People without PHP's short tags on will get some weird results with the installer module...
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 [Thu, 15 Mar 2007 03:11:21 +0000 (03:11 +0000)]
Removing the Router and RouterController system because it's not very cross-platform and cross-server friendly
Robert Sesek [Sun, 11 Mar 2007 23:17:14 +0000 (23:17 +0000)]
Updating makepo.sh.php to reflect the new way ScanDir() works
Robert Sesek [Tue, 27 Feb 2007 03:34:46 +0000 (03:34 +0000)]
Do the same thing of allowing multiple connections in our call to mysql_connect() from r828 on the 2.1.x branch
Robert Sesek [Tue, 27 Feb 2007 03:33:51 +0000 (03:33 +0000)]
In our call to mysql_connect(), allow us to open multiple connections to the database server.