Commit graph

405 commits

Author SHA1 Message Date
Woody Gilk ca656e0ac5 Fixing database configuration, fixes #29 2009-06-20 13:32:34 -05:00
Woody Gilk cd77b4eb7d Cleaning up comments in Database_Result 2009-06-20 13:28:44 -05:00
Woody Gilk 4f9bae789e Tracking changes to modules/codebench 2009-06-20 13:27:30 -05:00
Woody Gilk ab58f3d3aa Database_Result::get() should check to make sure the column exists, fixes #16 2009-06-20 12:25:25 -05:00
Woody Gilk 7951ac12c9 Make it possible to use Database::instance() without configuration files by passing an array of configuration as the second parameter. Updated comments 2009-06-20 12:13:40 -05:00
Woody Gilk 193fea74cf Added DB::insert() and Database_Query_Builder_Insert class 2009-06-20 11:51:49 -05:00
Woody Gilk fec5e90e22 Updated Database_Query_Builder and Database_Query_Builder_Select, tracking f6dcca4634 2009-06-20 11:50:51 -05:00
Woody Gilk 9698e4a75f Updated Database_MySQL, tracking changes in f6dcca4634 2009-06-20 11:49:32 -05:00
Woody Gilk f6dcca4634 Added Database::$_identifier for the database specific identifier quoting character. Renamed Database::quote_column() to Database::quote_identifier() to be more technically accurate. Renamed Database::$_name to Database::$_instance for accuracy. Made __construct(), __destruct(), and __toString() final to force proper abstraction. Added missing comments. 2009-06-20 11:46:24 -05:00
Woody Gilk 93678881c1 Renamed Database_Query_Select to Database_Query_Builder_Select for consistency with Zend standards 2009-06-20 10:23:28 -05:00
Woody Gilk 9e3e3bfb9e Renamed HTML::specialchars() to HTML::chars() to save keystrokes 2009-06-20 09:34:41 -05:00
Woody Gilk c89ae497a5 Initialized modules/codebench 2009-06-20 08:40:57 -05:00
Geert De Deckere 5f37c21c22 Added Codebench, which is fully working at this point, as a submodule. 2009-06-20 14:33:30 +02:00
Geert De Deckere c3547376de Added HTML::specialchars().
I realize this is a very simple wrapper for htmlspecialchars(), definitely now we're requiring 5.2.3 for double_encode; however, not having to manually pass on the ENT_QUOTES and Kohana::$charset parameters would keep my views cleaner. This is by far the most used HTML helper function by me.
2009-06-20 14:21:14 +02:00
Geert De Deckere 0b4977ba10 Comment typo. 2009-06-20 13:55:57 +02:00
Geert De Deckere 4f58a1b01d Merge branch 'master' of git://github.com/shadowhand/kohana 2009-06-20 09:14:07 +02:00
Woody Gilk f0579d6d0d Fixed up database module for naming conventions, and (mostly) completed the Database_Query_Builder and Database_Query_Select classes (need to finish JOIN support) 2009-06-19 18:43:52 -05:00
Geert De Deckere 0ba427b1cc Fixing small bug: module paths don't end in a slash by default. 2009-06-19 20:00:38 +02:00
Woody Gilk 0efedad222 Replace file_exists() with is_file() in Kohana::modules() 2009-06-19 12:43:48 -05:00
Woody Gilk 9538489efc Added module initialization check: if a module has an "init.php" file at the top level, it will be included the first time the module is loaded 2009-06-19 10:40:48 -05:00
Woody Gilk 0009c72d12 When a Validate rule fails, the value must be removed from the $params list, thanks biakaveron 2009-06-19 10:06:28 -05:00
Woody Gilk 3527dad3b2 Validate still uses Kohana::$profile, see 4e18abc1f3 2009-06-19 09:56:22 -05:00
Woody Gilk 5c7acd0955 The message for Validate::exact_length() should be "exact_length", not "length", fixes #19 2009-06-19 09:55:16 -05:00
Woody Gilk fbd5003ece Added Request::$client_ip, the connecting client ip address 2009-06-19 09:50:17 -05:00
Woody Gilk f9b461fe2f Updated Request::instance() to reduce multiple slashes to a single slash, and remove all dot-paths 2009-06-19 09:50:17 -05:00
Woody Gilk 977cc01071 Removed 4th parameter to htmlspecialchars() in HTML::attributes(), fixes #25 2009-06-19 07:58:52 -05:00
Woody Gilk 6c642bf594 Forgot a Kohana_ prefix on Validate, fixes #26 2009-06-19 07:44:12 -05:00
Woody Gilk f56c811bae Adding missing params to htmlspecialchars() in Kohana debugging methods 2009-06-19 07:43:37 -05:00
Woody Gilk 24806abb21 Require PHP 5.2.3+ so that htmlspecialchars() does not have to be hacked 2009-06-19 07:39:48 -05:00
Woody Gilk 4f4f4b27f9 Making View->__get() return by reference, fixes #24 2009-06-18 18:52:28 -05:00
Woody Gilk 4e269086a0 UTF8 should be a top-level class because it is declared as final, from ab887e639d 2009-06-18 18:15:57 -05:00
Woody Gilk e440358c16 Cleaning up some lingering issues from 1877dd7a9b, fixes #22 2009-06-18 18:03:16 -05:00
Woody Gilk ebcb2c0b78 Create empty extensions for the Template and REST controllers, fixes #23 2009-06-18 17:33:20 -05:00
Woody Gilk 7cf6405c25 Controller_Template should be abstract 2009-06-18 17:30:46 -05:00
Woody Gilk 54b1506bb3 Started tracking jheathco/orm 2009-06-18 16:39:08 -05:00
Woody Gilk 4e18abc1f3 Renamed Kohana::$profile to Kohana::$profiling for consistency 2009-06-18 16:34:27 -05:00
Woody Gilk 1877dd7a9b Throw the correct exceptions in View and Request, follow up on 7f28b57b2ecb3e4cfac1e7b44860bdc8e9b145ff 2009-06-18 16:34:27 -05:00
Woody Gilk e28395b088 Do not extend Kohana_Config or Kohana_Log, as they will conflict with PEAR class names and should not be used 2009-06-18 16:03:43 -05:00
Woody Gilk f154b09331 Added Validate::exact_length(), fixes #19. Thanks biakaveron 2009-06-18 15:31:52 -05:00
Woody Gilk 2c8510d49c Removed extension directory, removed lingering _Core suffixes, removed transparent class extension from Kohana::auto_load(). This finishes 7f28b57b2ecb3e4cfac1e7b44860bdc8e9b145ff 2009-06-18 15:10:05 -05:00
Woody Gilk 109520c3f4 Merge branch 'master' of git@github.com:shadowhand/kohana 2009-06-18 15:00:06 -05:00
Woody Gilk c40fd66d5a Added missing extensions and normalized all class names (uppercasing the first letter) completes 7f28b57b2ecb3e4cfac1e7b44860bdc8e9b145ff 2009-06-18 14:59:33 -05:00
Woody Gilk a9145f384e Moved all extension classes to classes/ to complete 7f28b57b2ecb3e4cfac1e7b44860bdc8e9b145ff 2009-06-18 13:46:56 -05:00
Woody Gilk ab887e639d Moved all classes to classes/kohana to start 'namespacing' Kohana (not PHP 5.3 namespaces!) 2009-06-18 13:46:56 -05:00
Woody Gilk 97b4be01c0 Fixing #21, strings representing static methods cannot be used on some versions of PHP. Thanks kerkness! 2009-06-18 13:46:56 -05:00
Geert De Deckere 90d8a37f56 Removing the logs directory check. It is not a good idea. 2009-06-18 13:46:56 -05:00
Geert De Deckere 5e3a05c6f9 Some minor comment cleanups in the Kohana class 2009-06-18 13:46:56 -05:00
Geert De Deckere c870515dfb The double_encode parameter for htmlspecialchars() was only added in PHP 5.2.3, and since we are only requiring PHP 5.2 (see install.php) I removed it. It defaults to TRUE anyway. 2009-06-18 13:46:56 -05:00
Geert De Deckere f932c92453 Fixed a minor bug that would cause Kohana::list_files() to return invalid relative filenames for directories with the unlikely name "0". 2009-06-18 13:46:56 -05:00
Geert De Deckere 1054def037 Added check for writable logs directory to install.php 2009-06-18 13:46:56 -05:00