Commit graph

157 commits

Author SHA1 Message Date
Mark Story
66a8910810 Fixing cakephp domain name. 2010-01-26 17:15:15 -05:00
Mark Story
527eec1a54 Fixing doc tags to make merge easier. 2010-01-26 16:51:53 -05:00
Joël Perras
15b8a3ec71 Updating copyright date on all files. 2010-01-13 23:47:14 -05:00
real34
bdfb50e6bb Fixed a bug in Set::extract. Wrong key returned when two arrays are at the extraction level.
Signed-off-by: Mark Story <mark@mark-story.com>
2009-12-16 18:33:23 -05:00
mark_story
a96c157d94 Applying optimizations to use of count() from 'jrbasso' 2009-11-21 15:14:21 -05:00
Juan Basso
df9e1e0bd1 Replace function join (alias) by implode.
Signed-off-by: Mark Story <mark@mark-story.com>
2009-11-21 13:43:11 -05:00
mark_story
2d2e692b37 Updating doc blocks to improve API parsing. 2009-10-05 21:27:34 -04:00
mark_story
4f4411126c Fixing empty arrays being dropped with Set::sort(). Fixed #67 2009-09-03 23:09:27 -04:00
mark_story
fb476f17cc Fixing Set::extract run against hasMany records that are the result of a find('first'). Test case added. 2009-09-01 13:18:20 -04:00
mark_story
47d9181313 Adding test case from 'mradosta'.
Fixing issue with non-zero indexed arrays and Set::extract()
Fixes #6
2009-08-21 23:18:27 -04:00
jperras
c30dd48e2a Updating doc block for Set::combine first parameter - may accept an object as first param, in addition to arrays.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8210 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-07-01 22:25:22 +00:00
gwoo
056402efa7 moving checks for Set::extract() so that null will be returned when empty data is passed and classicExtract is expected.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8105 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-15 19:39:35 +00:00
gwoo
198548092b cleaning up some Set::extract, adding tests for empty data and results. Removing some checks from Cache engine.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8097 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-14 19:56:28 +00:00
the_undefined
55e72bb749 Better support for regex matching, fixes #6184
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8086 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-03-10 20:20:32 +00:00
jperras
f20ccc745c Applying patch from 'phally' to update Set::extract to properly tokenize xpath selectors which contain hyphens (-). Fixes #6140
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8059 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-25 16:23:13 +00:00
mark_story
082ef2e4b0 Adding patch from 'mattcurry' Fixes Set::extract and parent selectors that with more than one element in the source array. Fixes #6043
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8055 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-24 03:01:06 +00:00
mark_story
27c321190e Applying patch from 'mcurry' Fixes Set::extract with mixed numeric and stringKeys. Tests added. Fixes #6072
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8038 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-02-17 04:41:30 +00:00
mark_story
628a79aba6 Making direction flag in Set::sort() case insensitive. Test updated. Fixes #5992
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7977 3807eeeb-6ff5-0310-8944-8be069107fe0
2009-01-14 04:06:01 +00:00
gwoo
4dbd8e6791 updating to Set::extract() to fix containable test fails, added set cases to match usage in containable.test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7934 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 21:33:11 +00:00
nate
8eade1adb3 Fixing code formatting to wrap at 100 characters, adding fix for ticket #5596, counterCache now decrements properly when foreign key value changes.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7927 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-12-17 04:13:45 +00:00
gwoo
9d2f59529c fixes #5684, Set::extract() without index 0
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7895 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-11-26 22:33:21 +00:00
AD7six
3f2fa6929b changing tabs for spaces in comment block indentation
Removing address and replacing with cakefoundation url


git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7805 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-30 17:30:26 +00:00
mark_story
1b456f2cf1 Applying patch from 'davidpersson' fixing code spacing. Closes #5643
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7772 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-23 00:10:44 +00:00
renan.saddam
42241b2b27 Removing if block missed from an older refactoring.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7719 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-10-09 17:16:39 +00:00
the_undefined
aab1e506a1 Fixes #5225
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7674 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-28 17:41:23 +00:00
john
6ad3cfa0ef Enhancing Set::map() so that it doesn't override manual setting of _name_. Test case enhanced to make sure it does so.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7669 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 21:11:51 +00:00
gwoo
e6b994bcb1 updating handling of required classes, fixes #5480
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7666 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-26 14:03:16 +00:00
mark_story
62168bfe0f Updating doc blocks to include access and return PHPDOC tags.
Removing use of e() in Debugger.
Fixing code formatting in CookieComponent
Closes #5477

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7662 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-25 16:49:56 +00:00
DarkAngelBGE
5aade5b581 small return home early refactorings for the set class
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7655 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-24 12:08:24 +00:00
DarkAngelBGE
c8ab1ec092 small readability refactorings for Set::filter() and Set::matches()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7647 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-23 11:33:36 +00:00
nate
24b444ca55 Fixing behavior initialization in model construction, adding Set::flatten() utility method for future refactoring, updating Set test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7644 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-22 16:32:41 +00:00
the_undefined
740bd4e769 Partial fix for #5225
Corrected expected behavior for 2nd issue

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7633 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-19 18:08:27 +00:00
the_undefined
3ff9c49f82 Performance improvements by removing array_merge
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7609 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-15 18:05:31 +00:00
the_undefined
0e621885ab Fixed docblock error
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7608 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-15 18:05:26 +00:00
phpnut
5658e26e07 Changing comparison operators to === (identical) which is faster than == (equal)
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7604 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-14 17:17:49 +00:00
phpnut
cb487bd6e6 More optimization refactoring.
Fix cache but causing  object_map to be created and deleted on each request.
Replacing function and method calls with better performing code.

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7596 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-12 05:11:34 +00:00
the_undefined
95947053fe Fixed bug in parent traversal, closes #5225
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7546 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-09-03 15:40:25 +00:00
gwoo
dde620edb4 fixing bug in Set:map() handling of recursive records
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7531 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-28 18:16:40 +00:00
gwoo
921a5770db fix for Set::reverse() with _name_
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7495 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-24 22:08:13 +00:00
gwoo
fb47301258 adding _name_ property to nested Set::map() objects
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7488 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-22 19:17:48 +00:00
the_undefined
8fb9a50d3c Added test for using Set::insert to overwrite keys with empty values and reverted change permitting it
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7415 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-08-01 16:52:34 +00:00
gwoo
b0d2451a97 removing optional instantiation of Set class. Adding toArray() to xml class and calling it from Set::reverse(); updated test cases.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7398 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-31 23:50:32 +00:00
gwoo
e8acb375ec fixes #5179, set::numeric and other fails in set.test
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7397 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-07-31 19:36:28 +00:00
phpnut
022ffa3f4f Adding fixes for pagination on associated models.
Corrected dot notation use in Controller::paginate();

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7286 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-27 06:25:08 +00:00
nate
df75a06756 Fixing coding standards violations in core, and adding misc tests
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7222 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-20 20:17:23 +00:00
phpnut
6807d4c333 Starting initial refactoring of current code base.
Made changes to test suite to allow running test without headers already sent errors.
Moved Component::initialize(), Controller::beforeFilter(); and Component::startup(); from Dipatcher::start() to Controller::constructClasses();
Removed Dispatcher::start();
Fixing model instances not being created
Adding additional test to CookieComponent to increase coverage to 95%
Optimizing Set::diff();
Fixing SessionComponent test and RequestHandlerComponent test
Fixing CakeSession tests, removed deprecated code from CakeSession

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7162 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-06-10 22:38:05 +00:00
nate
42da5aba81 Moving Cake folder to correct location
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7063 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 11:40:08 +00:00
DarkAngelBGE
e6e0d852a2 deleting cake folder from svn
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7061 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-30 10:59:16 +00:00
joelmoss
9b514352dc Set::combine() now returns an empty array if first passed var is empty. Fixes #4709 and #3784
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7002 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-22 08:21:08 +00:00
the_undefined
ab0a607189 Refactored Set::reverse and tweaked the expectation schema for consistency, fixes #4643
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6888 3807eeeb-6ff5-0310-8944-8be069107fe0
2008-05-15 14:48:49 +00:00