Commit graph

324 commits

Author SHA1 Message Date
Woody Gilk 7c7cd8af3a Cleaned up Database_Query_Builder_Insert->compile() 2009-06-22 16:43:47 -05:00
Woody Gilk 3832829f13 Updated Database_MySQL to do profiling for query() calls (not in Database_Query, duh!) 2009-06-22 15:27:02 -05:00
Woody Gilk b5a198a825 Updated Database_Query to include the SQL compiliation as part of the benchmark time/memory usage 2009-06-22 15:27:02 -05:00
Woody Gilk 8b93b497d5 Mistake! The columns part of an INSERT must always be present, even when using an INSERT INTO ... SELECT query 2009-06-22 14:54:18 -05:00
Woody Gilk 3cea136637 Updated Database_Query_Builder_Insert to allow INSERT INTO ... SELECT combinations 2009-06-22 14:47:57 -05:00
Woody Gilk fefceb953d Updated Database quoting, instances of Database_Query should call compile() rather than forcing __toString() to be called, so that the correct instance ($this) is always used 2009-06-22 14:47:57 -05:00
Woody Gilk 4434e15533 Updated Database_Query, added type() to get the current query type, added missing comments, and changed compile() to always require a Database instance to be passed 2009-06-22 14:47:46 -05:00
Woody Gilk fc29f9c04b Cleaned up Database_Query_Builder_Select comments and optimized array_map() calls in compile() 2009-06-22 13:20:35 -05:00
Woody Gilk 9af0fd6a92 Updated Database_Query_Builder_Insert: added support for multiple inserts, moved setting the columns to __construct() and added columns() method, fixed compile() quoting, removed set(), and cleaned up comments 2009-06-22 13:19:23 -05:00
Woody Gilk 006b1fde76 Removed Database_Query->resplace() because it is a nasty hack 2009-06-22 13:14:40 -05:00
Woody Gilk 0a896d8c7f Fixing a syntax error in Database_Query->parameters() 2009-06-22 13:14:18 -05:00
Woody Gilk 6f019a6068 This should have been commited with 70113fa770 2009-06-22 12:11:46 -05:00
Woody Gilk 397ef2aec5 Added missing SYSPATH security checks, fixes #31 2009-06-22 12:08:27 -05:00
Woody Gilk 70113fa770 Added Route::$default_action to allow actions besides "index" to be used as the default, an no longer require the "action" parameter to be passed to Route::defaults(), which will prevent reverse routing from always adding the action 2009-06-22 12:03:52 -05:00
Woody Gilk d490efe275 Route::get() now throws an exception when the specified route does not exist, rather than returning FALSE, for proper errors 2009-06-22 12:01:05 -05:00
Woody Gilk 7b3d593153 Removing the "$value = NULL" from where() methods, to prevent ambiguity about how where() methods are called 2009-06-22 11:56:55 -05:00
Woody Gilk 6ba8c262af Updated JOIN support in Database_Query_Builder_Select, added on() method 2009-06-22 11:42:17 -05:00
Woody Gilk 6c8e840319 Added Database_Query_Builder_Join as a wrapper for JOIN statements and completed Database_Query_Builder::compile_join() 2009-06-22 11:39:37 -05:00
Woody Gilk 892f2c8d14 Trying to quote a variable that doesn't exist, fixes #30 2009-06-21 07:44:42 -05:00
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