Commit graph

5977 commits

Author SHA1 Message Date
predominant
ac86ad05ac Moving access modifier doc tag. 2009-11-14 23:38:52 +11:00
predominant
0977b3fe15 Standardising docblock endings throughout. 2009-11-14 23:19:25 +11:00
predominant
5092262d4d Reformatting and adding missing documentation blocks. 2009-11-14 23:18:31 +11:00
mark_story
9376826aa4 Fixing HttpSocket::buildUri when host key is empty.
Tests added
Fixes #271
2009-11-13 14:42:40 -05:00
mark_story
360ea2a46a Adding extract task to Console Group test. 2009-11-13 10:24:36 -05:00
mark_story
d93c94f702 Fixing failing test, picked in from 1.2. 2009-11-13 09:53:31 -05:00
mark_story
bfde6b81fe Adding test to form helper to increase code coverage. 2009-11-13 09:48:31 -05:00
mark_story
8d407ac915 Adding test to form helper to increase code coverage. 2009-11-13 09:45:25 -05:00
mark_story
d302ed1bfa Fixing comment block formatting. 2009-11-13 09:44:51 -05:00
ceeram
a67a97722a refs #291
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-13 09:25:47 -05:00
ceeram
ea482442ff test to prove ticket #291
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-13 09:22:05 -05:00
mark_story
13f9b79dc9 Removing console/libs/templates. Has been moved in 1.3 and a merge with 1.2 added it again. 2009-11-13 09:15:31 -05:00
mark_story
2c5fa171e0 Updating CakeSchema to pass a Model object into DboSource::fullTableName(); Fixes schema's not correctly reading tablePrefixes.
Fixes #290
2009-11-13 00:43:40 -05:00
nate
1c8a2f232b Changes Model::find() to allow modification of DataSource connection during callbacks. 2009-11-12 14:48:03 -05:00
mark_story
38f578199d Changing new Model() for ClassRegistry::init(). Fixes issues when baking admin and non-admin methods for a controller that uses bound translations + TranslateBehavior. Fixes #245 2009-11-12 09:32:45 -05:00
renan.saddam
8cab87fd8e Fixing fixtures path when using a fixture inside a plugin. 2009-11-11 20:14:24 -02:00
mark_story
61d56cd275 Changing order of text in project task.
Making ProjectTask::getPrefix silent when interactive = false.
Making ProjectTask silent from View task if all or a controller name is provided.
2009-11-11 09:56:35 -05:00
mark_story
47e6f332d7 Reformatting doc blocks. 2009-11-10 23:35:45 -05:00
mark_story
63ee8f0fcd Starting pass through validation handling.
Implemented phone, and postal pass throughs.
Adding tests.
2009-11-10 21:20:39 -05:00
mark_story
c5a41913c3 Merge branch '1.3' into 1.3-misc 2009-11-10 20:22:42 -05:00
mark_story
0d37beca75 Removing duplicate variable assignment. 2009-11-10 09:23:43 -05:00
mark_story
b39b38aac9 Adding missing variable.
Adding Test case for previous commit.
2009-11-10 09:17:54 -05:00
mark_story
2af5318e7a Moving import in ModelTask to fix issue running bake model all. 2009-11-09 23:54:59 -05:00
mark_story
f0628d100b Fixing issues with getting values from habtm data after form posting and validation has failed.
Tests added.
Refs #279
2009-11-09 21:00:19 -05:00
mark_story
f5cfab7b4f Merge branch '1.3' into 1.3-misc 2009-11-09 20:10:56 -05:00
mark_story
adaa2b689c Adding test case for previous commit.
Fixing function for non-windows paths.
2009-11-09 20:10:24 -05:00
ceeram
c810b3cde4 Making ProjectTask bake constants with DS instead of hardcoded / or \.
Makes developing/deploying to mixed systems easier.

refs #278

Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-09 18:58:21 -05:00
ceeram
d251a1d5ca Adding config() call to ensure that DATABASE_CONFIG has been
loaded before attempting to use it.
refs #277

Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-09 18:55:37 -05:00
predominant
26e19caad5 Removing unnecessary getInstance() calls. 2009-11-10 10:30:13 +11:00
mark_story
fa1b7f617f Fixing issues caused by merge with 1.2. 2009-11-09 14:07:19 -05:00
mark_story
c4b493c934 Manually merging changes from ModelTask in 1.2 to FixtureTask
Adding test cases for FixtureTask.
2009-11-08 22:22:08 -05:00
mark_story
6b5c247162 Merge commit 'origin/1.2' into mergers
Conflicts:
	cake/bootstrap.php
	cake/console/cake.php
	cake/console/libs/tasks/model.php
	cake/libs/configure.php
	cake/libs/view/helpers/cache.php
	cake/libs/view/helpers/paginator.php
	cake/tests/cases/console/libs/tasks/model.test.php
	cake/tests/cases/libs/view/helpers/cache.test.php
2009-11-08 22:21:21 -05:00
mark_story
7981b44db4 Merge branch '1.3-misc' into mergers 2009-11-08 21:39:55 -05:00
mark_story
a7a6dc8c43 Fixing issue where SecurityComponent::_validatePost could generate notices if elements were removed from _Token array.
Tests Added
Fixed #228
2009-11-08 14:12:18 -05:00
mark_story
6b79c8d375 Adding checks for parent classname when converting error method names. Fixes #273 2009-11-08 14:07:25 -05:00
mark_story
95cafc7138 Adding missing help text. 2009-11-08 13:46:45 -05:00
mark_story
82a2b1a019 Changing import of Dispatcher to direct require.
Modifying order of operations in Configure::__loadBootstrap()
moving inclusion of app/config/bootstrap.php after the creation of core cache configs.  This allows App::import() to be used in the bootstrap file with cached paths.
2009-11-07 17:53:14 -05:00
mark_story
6db91b0f49 Fixing issues in ContainableBehavior that could leave models unbound when 'fields' was used as part of containment conditions. Fixes #253 2009-11-07 17:43:18 -05:00
ceeram
dd0c4a64c5 Test to prove ticket #253 2009-11-07 11:02:43 -05:00
mark_story
30dc0cfe56 Removing unused $view property from CacheHelper.
Fixes #272
2009-11-07 10:44:14 -05:00
mark_story
4a08bd120d Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-11-07 10:41:12 -05:00
mark_story
4704a8cd00 Removing unused $view property from CacheHelper.
Fixes #272
2009-11-07 10:40:48 -05:00
ADmad
002a01a9d8 passedArgs from current request are auto merged with url options of paginator helper
Signed-off-by: Florian Krmer <florian.kraemer@cakedc.com>
2009-11-06 18:31:42 +01:00
mark_story
4deaf27cc0 Removing deprecated code in Html::css()
Minor refactoring in HtmlHelper methods.
Fixes #268
2009-11-06 09:31:57 -05:00
mark_story
ab76cb1217 Merge branch '1.3' into 1.3-misc 2009-11-06 09:25:11 -05:00
mark_story
e7c2fe2b7e Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-11-06 09:24:55 -05:00
SkieDr
ce15cc61d9 Fix order of keys in l10n catalog list 2009-11-06 15:46:54 +03:00
predominant
884490f1a1 Removing leftover SVN tags. 2009-11-06 18:35:14 +11:00
predominant
167c6e26c0 Removing more @filesource lines. 2009-11-06 18:12:27 +11:00
predominant
90248af9a4 Removing SVN lines. 2009-11-06 18:11:17 +11:00
predominant
62810fb4f4 Updating more Copyright dates. 2009-11-06 18:04:38 +11:00
predominant
1185681549 Removing newline caused by Subversion line removal. 2009-11-06 18:01:22 +11:00
predominant
384bb7a0e0 Update license lines throughout. 2009-11-06 17:51:51 +11:00
predominant
d7b604c8ed Fixing links throughout 2009-11-06 17:46:59 +11:00
predominant
8ff6505fe8 Removing excess whitespace 2009-11-06 17:08:23 +11:00
predominant
6782cb019c Update CakePHP Project link. 2009-11-06 17:00:11 +11:00
predominant
5dfe1777af Removing Subversion file headers. 2009-11-06 16:51:09 +11:00
mark_story
4bbfcbff7e Fixing limit:0 and controller::paginate. Removes possibilty to generate sql errors by inputting invalid limit options. Tests updated. Refs #264 2009-11-06 00:44:21 -05:00
predominant
ceee56013c Remove Subversion $Date$ lines. 2009-11-06 16:17:01 +11:00
predominant
04f1b6cdfe Remove Subversion $LastChangedBy$ lines. 2009-11-06 16:11:16 +11:00
predominant
42f3f16d60 Remove subversion $Revision$ lines. 2009-11-06 16:08:02 +11:00
predominant
531eaaad4e Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc 2009-11-06 15:54:01 +11:00
Ernst Mayerhofer
0327f15395 paginator works with limit 0 now too 2009-11-05 23:44:02 -05:00
predominant
1b9b0aae5e Updating Copyright date to include 2009. 2009-11-06 15:34:28 +11:00
mark_story
e776cf1ad2 Adding tests and fixing inline parameter being converted to an attribute.
Fixes #265
2009-11-05 23:32:39 -05:00
mark_story
83845c6b1b Removing blank line. 2009-11-05 23:27:58 -05:00
mark_story
0c22175042 Updating doc blocks for CakeLog. 2009-11-05 23:25:08 -05:00
predominant
8f75ff58c7 Removing @filesource 2009-11-06 15:24:02 +11:00
mark_story
5506af8fcc Updating file headers.
Removing Object::$_log.  CakeLog is now called statically.  Saving an instance is not longer necessary or desired.
2009-11-05 23:21:40 -05:00
mark_story
c238d4d11b Adding return and test case for CakeLog::write() 2009-11-05 23:20:40 -05:00
mark_story
f414378bc7 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-11-05 22:03:38 -05:00
mark_story
781d184dbd Merge branch '1.3-logging' into 1.3-misc 2009-11-05 22:03:18 -05:00
predominant
490e76460f Changing quotes and adding spaces. Standarization cleanup. 2009-11-06 13:46:49 +11:00
mark_story
6b2f7f67a6 Removing whitespace. 2009-11-05 20:16:25 -05:00
mark_story
84c8cc3f36 Adding tests for importing loggers from app/libs and plugin/libs.
Adding tests for failed configs.
2009-11-05 20:13:15 -05:00
mark_story
54c772c5d5 Updating fileheader. 2009-11-05 19:49:12 -05:00
mark_story
b6ed3a9999 Updating doc block. 2009-11-05 19:45:04 -05:00
mark_story
6c9f215306 Adding tests for file log path settings. 2009-11-05 19:44:50 -05:00
mark_story
01bb9e5957 Refactoring FileLog
Adding test case for FileLog
2009-11-05 19:41:43 -05:00
mark_story
1e70119232 Adding basics to lib group, it wasn't part of any group before. 2009-11-05 19:20:35 -05:00
mark_story
afdcd36687 Fixing test broken by merge. 2009-11-05 19:18:38 -05:00
mark_story
d23f2f4604 Implementing CakeLog::config() adding simple tests for config(). 2009-11-05 19:16:46 -05:00
mark_story
98f0e370a1 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-logging 2009-11-05 18:40:01 -05:00
mark_story
b4f6dd9c6e Adding tests and support for binary columns in model task. Fixes #241 2009-11-04 22:57:43 -05:00
predominant
2669b6179f Fix committed merge conflict for home page. 2009-11-05 14:30:56 +11:00
mark_story
6523fb1d47 Adding initial implementation of Logging streams. 2009-11-04 18:19:22 -05:00
mark_story
ceb7826db0 Adding test case for CakeLog stream autoconfiguration. 2009-11-04 18:07:39 -05:00
mark_story
380b49a446 Fixing Helper::value() and extraction of habtm data. Refs #256 2009-11-04 14:05:12 -05:00
mark_story
b974127562 Adding tests for habtm data selection. Refs #256 2009-11-04 13:56:44 -05:00
mark_story
5f1d090bf0 Adding import()s to DbConfigTask and ModelTask to fix missing class errors, when methods are run in certain orders. 2009-11-04 13:21:05 -05:00
mark_story
f81d3da175 Moving import to fix issue where cakeschema would not be found when baking models. 2009-11-04 12:59:32 -05:00
mark_story
e609875754 Updating Model::invalidFields, so returning false from beforeValidate() will abort both the validation and saving() of the record.
Tests added to check beforeSave, beforeValidate, and beforeDelete return values.
Fixes #257
2009-11-04 12:36:17 -05:00
mark_story
dc07a05fca Merge branch '1.3' into 1.3-misc 2009-11-04 09:20:21 -05:00
tPl0ch
f5ca3ace1f Modified Model::find() to make Model::findQueryType available in Model callbacks. Fixes https://trac.cakephp.org/ticket/5847. Tests added
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-04 09:16:04 -05:00
mark_story
5a6a6e5364 Fixing doc block for APPLIBS 2009-11-04 09:10:57 -05:00
predominant
59c62426c9 Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc 2009-11-04 16:11:35 +11:00
predominant
cf42c8dd7f Updating default views and baking templates to use $this->Helper syntax for helpers. 2009-11-04 15:52:56 +11:00
mark_story
12c7203c71 Merge branch '1.3-alpha' into 1.3
Conflicts:
	cake/libs/view/pages/home.ctp
2009-11-03 23:19:01 -05:00
mark_story
5da3becc18 Merge branch '1.3' of dev@code.cakephp.org:cakephp into 1.3 2009-11-03 23:16:40 -05:00
phpnut
2bf630f209 Merge branch '1.3' of code.cakephp.org:cakephp into 1.3 2009-11-03 22:03:09 -06:00
phpnut
a1ce9e662c Fixing real issue for Ticket #137
Reverted changes replacing [ and ] with .
2009-11-03 22:02:26 -06:00
mark_story
1d22adbc1a Merge branch '1.3-misc' into 1.3 2009-11-03 22:50:11 -05:00
mark_story
adb4dcf1c4 Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-11-03 22:47:22 -05:00
predominant
7383e97115 Adding datasources array to Configure. 2009-11-04 14:45:44 +11:00
mark_story
0aecb9de2d Applying patch from 'dogmatic' to update home.ctp to use helper methods, and i18n. 2009-11-03 22:40:36 -05:00
mark_story
bc8d920c0f Updating changelog link on home.ctp 2009-11-03 19:53:59 -05:00
mark_story
4965ab5bdc Updating version numbers for 1.3.0-alpha 2009-11-03 19:52:03 -05:00
mark_story
d17c526dc3 Fixing String::insert() when $data is an empty array. Which was happening in the dbo source tests. 2009-11-03 18:21:01 -05:00
mark_story
4632402a25 Fixing controller test to run when app/views/posts/index.ctp is present. 2009-11-03 17:42:42 -05:00
mark_story
3b3ceddfdb Fixing Email test to account for whitespace changes done on view files. 2009-11-03 17:39:59 -05:00
mark_story
df4cd12d0f Fixing RequestHandler test case when app/views/posts/index.ctp is available. 2009-11-03 17:19:02 -05:00
mark_story
8c46cc49fb Fixing issue in Dispatcher::cached() where plugins ending in asset extensions would be incorrectly handled.
Test added
Fixes #237
2009-11-03 13:14:38 -05:00
mark_story
74edb052f3 Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2 2009-11-03 09:58:58 -05:00
mark_story
d63218c0a0 Fixing error in previous commit. 2009-11-03 09:52:59 -05:00
mark_story
133299c653 Removing duplicate constructor from ShellDispatcher.
Fixes warnings under PHP5.3.
Fixes #132
2009-11-03 09:02:17 -05:00
mark_story
055b5c66aa Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-11-02 23:59:25 -05:00
mark_story
6b043c6c57 Updating doc blocks for paginator helper. 2009-11-02 21:37:20 -05:00
renan.saddam
5ebdc88223 Fixing declaration of @access property. 2009-11-02 21:54:03 -02:00
mark_story
fc9cecc24e Converting spaces to tabs. 2009-11-02 13:51:46 -05:00
renan.saddam
91b9e1d50b Updating docblock for FormHelper::dateTime method. 2009-11-02 13:57:05 -02:00
renan.saddam
034b5c435c Allowing FormHelper::month() to use a $monthNames array as values. 2009-11-02 13:51:16 -02:00
ceeram
988ab2d29f fixes Ticket #6300
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-02 00:19:44 -05:00
ceeram
a3775937a4 Tests updated for new output of FormHelper::input
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-02 00:19:01 -05:00
mark_story
9d2628f699 Removing tab 2009-11-02 00:07:16 -05:00
mark_story
a87d31cc7f Fixing $cacheAction requiring the inclusion of the controller name for view cache files to be generated. This behavior makes the cache helper behave as documented.
Test cases added.  Fixes #232
2009-11-02 00:07:02 -05:00
mark_story
b39df8ce2b Removing reference to deprecated method. 2009-11-01 12:58:09 -05:00
mark_story
f033516fcc Moving inflector test around, fixes group test fails. 2009-11-01 12:53:47 -05:00
mark_story
d77761e03b Fixing merged test from 1.2 2009-11-01 12:31:57 -05:00
mark_story
d956378d48 Improving console group test suite.
Still getting intermittant fails from controller task.
2009-11-01 12:31:41 -05:00
mark_story
ac97dfd70d Fixing api shell test case. 2009-11-01 12:25:40 -05:00
mark_story
35fa099f6a Updating ajax helper test to reflect changes in FormHelper parameter usage. 2009-11-01 12:20:37 -05:00
mark_story
a3bb77c4f3 Merge branch '1.2' into 1.3-merger
Conflicts:
	cake/console/libs/acl.php
	cake/console/libs/tasks/controller.php
	cake/console/libs/tasks/db_config.php
	cake/console/libs/tasks/model.php
	cake/console/libs/templates/skel/views/layouts/xml/default.ctp
	cake/libs/model/datasources/dbo/dbo_mysql.php
	cake/libs/model/datasources/dbo/dbo_mysqli.php
	cake/libs/validation.php
	cake/libs/view/helpers/form.php
	cake/tests/cases/basics.test.php
	cake/tests/cases/console/libs/tasks/model.test.php
	cake/tests/cases/libs/cake_test_case.test.php
	cake/tests/cases/libs/model/datasources/dbo/dbo_mysql.test.php
	cake/tests/cases/libs/model/datasources/dbo/dbo_mysqli.test.php
	cake/tests/cases/libs/view/helpers/javascript.test.php
	cake/tests/cases/libs/view/helpers/session.test.php
	cake/tests/groups/controller.group.php
	cake/tests/groups/lib.group.php
	cake/tests/groups/no_database.group.php
2009-11-01 12:11:49 -05:00
mark_story
44d7742b85 Minor refactoring and removal of duplicate test. 2009-10-31 16:28:43 -04:00
tPl0ch
2331cfde60 Added 'before' and 'after' options to FormHelper::submit(). Test cases updated.
Signed-off-by: Mark Story <mark@mark-story.com>
2009-10-31 16:21:53 -04:00
mark_story
a855a6aa41 Renaming variable. 2009-10-31 16:16:58 -04:00
mark_story
cab64b780c Refactoring switch in Scaffold. 2009-10-31 16:16:25 -04:00
mark_story
3a59bf5ed6 Updating Scaffold to work with any single prefix. You can set $scaffold = to any prefix defined in Routing.prefixes.
Tests added.
2009-10-31 16:06:20 -04:00
mark_story
873760aae4 Merge branch '1.2' of dev@code.cakephp.org:cakephp into 1.2 2009-10-31 15:05:51 -04:00
mark_story
51244907d1 Updating merge vars test to skip itself if run in a group context.
Updating controller group.
2009-10-31 14:55:04 -04:00
mark_story
6b616b7171 Adding skip for validation test, for DNS servers that reply for non-existant domains. 2009-10-31 14:48:37 -04:00
mark_story
76019513e1 Updating lib group to run non-mvc libs.
Removing no_database group.  It was redundant.
2009-10-31 14:33:53 -04:00
mark_story
24a75a27bf Updating Javacsript helper to use a real skipIf 2009-10-31 14:25:52 -04:00
mark_story
0637272bd2 Updating doc block on Controller to include more information about $uses. 2009-10-31 14:25:33 -04:00
mark_story
15a98fac5b Merge branch '1.3-misc' of dev@code.cakephp.org:cakephp into 1.3-misc 2009-10-31 14:17:51 -04:00
mark_story
403bd15cca Removing Validation::file() It was never implemented, and file validation can be a lengthy and complicated process. This is better implemented at the application level. 2009-10-31 14:17:24 -04:00
mark_story
59566d4587 Updating component test case to no fail in group test.
Updating controller group to only run controller classes.
2009-10-31 14:08:56 -04:00
mark_story
a91970b7b2 Fixing security component test failures when run as part of a group. 2009-10-31 13:41:16 -04:00
predominant
4f4274ad24 Merge branch '1.3-misc' of code.cakephp.org:cakephp into 1.3-misc 2009-10-31 18:32:26 +11:00
predominant
bed9b6e58d Extending TextReporter from SimpleTest to provide memory usage and execution time information for text output test results. 2009-10-31 18:30:59 +11:00
mark_story
6726b76077 Refactoring input() to reduce number of method calls.
Applying patch from 'j3ffy' to allow user defined types to override magic select type.
Test case added.
Fixes #5109
2009-10-31 01:45:17 -04:00