phpnut
8a2b51c3ec
"Removing all shortcut function usage from the core"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6128 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-08 06:08:03 +00:00
phpnut
d6c918ec95
"Fixes #3689 , Set::__map() array cast corrupt new object"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6123 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-12-06 15:59:54 +00:00
phpnut
ae8ccbd817
"Correcting type for @param $primary"
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6093 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-27 18:04:41 +00:00
gwoo
76d69fb0c7
updating Set::__map() doc comment
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6092 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-27 18:02:09 +00:00
gwoo
86dafa3009
updating Set::map() to return an array of objects if the key is numeric. Changed __identity__ to _name_, updated tests.
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6091 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-27 17:57:59 +00:00
gwoo
ca79acf3fd
change to use $class
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6089 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-27 00:46:24 +00:00
gwoo
21bea5ffb5
updating Set class and added valid test, fixes #3652
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6088 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-27 00:33:10 +00:00
gwoo
01230b92b1
refactoring Set::map() and reverse, all tests passing
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6035 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-20 21:04:58 +00:00
gwoo
dd5854f210
refactoring Set::reverse()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6034 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-20 20:00:54 +00:00
phpnut
b867f832c1
Refactoring return of Set::map(); and Set::reverse();
...
Added new test cases to SetTest.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5979 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-11 23:49:30 +00:00
mariano.iglesias
9b01ce7066
Adding support for Set::countDim() to count dimensions in all branches of an array, not just the first element. Set second parameter of countDim to true to get the real dimension of the array (regardless if the deepest depth is on first element).
...
Adding better documentation and test cases for countDim
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5960 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-11-06 18:54:32 +00:00
mariano.iglesias
896f62544b
Changing @return int to @return integer and @param bool to @param boolean
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5860 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:54:36 +00:00
phpnut
da97a5c871
Correcting @return bool
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5857 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 16:09:35 +00:00
mariano.iglesias
897825d596
Adding documentation to classes belonging to Cake console.
...
Standarizing on datatypes used in phpdocblocs and removing unneeded @return types
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5851 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-10-22 05:52:20 +00:00
nate
02494a0519
Adding fix for Set::extract() when only grabbing numeric keys
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5652 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-09-16 18:22:17 +00:00
nate
ce51d009ac
Adding hasMany optimization fixes for failing model tests
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5587 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-27 03:15:11 +00:00
nate
bd194b51e5
Routing fixes for invalid null value matching and named argument handling (Ticket #3083 , #3085 , #3086 , #3093 ). Thanks biesbjerg for all your help!
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5554 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-20 13:09:11 +00:00
nate
3e7044d4b8
Implementing prefix-based routing, and transitioning configuration away from global constants
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5531 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-16 05:44:06 +00:00
nate
1911b1d7a5
Implementing custom array value formatting in Set::combine() and Model::generateList()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5518 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-13 20:59:49 +00:00
nate
823672217a
Implementing Set::format() to combine extracted array values
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5512 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-08-11 21:32:25 +00:00
phpnut
549d86ac23
Refactoring dispatcher.
...
Added test for changes to Dispatcher.
Updating Model::_ _saveMulti(), moved the insert statement to DboSource::insertMulti() this will allow database that do not support multiple inserts in one statement to save data.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5460 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-25 04:38:28 +00:00
phpnut
1713dcdfb2
Merging changes to Set class into 1.1.x.x
...
Added doc comment for Set::reverse()
merged changes in DboSource and DboPostgres into 1.1.x.x
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5420 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-09 04:47:05 +00:00
phpnut
072ed9581f
Adding fix for failing tests on php 5
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5374 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-02 21:27:20 +00:00
phpnut
3880f9ce13
Refactoring Set::reverse() and Model::set()
...
Set::reverse() will now reverse the object to an array that was created in Set::map();
Added testMapReverse() to Set tests.
Removed code in Model::set() that was no longer needed
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5373 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-02 18:36:49 +00:00
phpnut
382a63651d
Updating Set::reverse()
...
Corrected undefined variable
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5372 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-02 17:13:35 +00:00
mariano.iglesias
cd09a7c7dd
Adding option to group elements in Set::combine and making Model::generateList use Set::combine. Adding tests for Model::generateList and more tests for Set::combine
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5370 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-07-01 03:43:05 +00:00
mariano.iglesias
61df674db5
Adding Set::combine to allow mapping of keys and values of an array using paths
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5369 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-30 22:34:47 +00:00
phpnut
5e2b574e2f
Refactoring Model::set()
...
Added Set::reverse(0 to convert an object to an array
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5368 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-30 06:52:39 +00:00
phpnut
dac1bd0913
Correcting code structure to standards
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5315 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 07:51:52 +00:00
phpnut
23dfd90b29
Correcting code structure to standards
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5313 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-06-20 06:15:35 +00:00
mariano.iglesias
a0ecb53e11
Adding comments to Set
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5200 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-05-26 19:06:14 +00:00
phpnut
698b221943
Adding fix for #2488 fixes Set::extract failed on assoc array if key starts with numeric
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4900 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-29 01:47:26 +00:00
nate
e5b0f2e3fa
Moving Router::__filter() to Set::filter()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4867 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-17 07:00:26 +00:00
phpnut
924a235ec3
Removing comments from Set::merge()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4796 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 21:29:00 +00:00
phpnut
135ebe8994
Merging changes from 1.2.x.x Set class to 1.1.x.x branch
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4792 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 20:09:32 +00:00
nate
ac904cd4d4
Adding new Set::merge() and Set class test case, thanks Felix
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4779 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-05 05:57:52 +00:00
phpnut
dcac88825a
Adding fix for Ticket #2339
...
Adding fix for Ticket #2335
Adding fix for Ticket #2344
Merged changes in dbo from 1.2 to 1.1
Merged changes to session handling in 1.2 to 1.1
Merged changes to Model::_ _saveMulti() in 1.2 to 1.1
Added Set::pushDiff() to append differences in array 2 to array 1
Added SessionComponent::activate() and SessionHelper::activate() to turn sessions usage on if AUTO_SESSION is set to false
Added test for Ticket #2343
Added change to AclNode to use correct table naming
Added garbage clean up to CakeSession::_ _close(); some installs, like Debian, have removed garbage clean
up and use a cron job instead. Currently this change is only supported for database session.
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4752 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-04-04 07:25:48 +00:00
phpnut
dea1dc77fb
Adding fix for Ticket #2130 , Ticket #2168 , Ticket #2178
...
Adding beforeRender() callback for helpers.
Adding fix for Set::diff();
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4575 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-03-04 09:12:09 +00:00
nate
cb511b95ed
Removing eval() calls from Session and replacing with Set methods
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4545 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-20 19:51:58 +00:00
nate
c8da214170
Fixing instance references in Set method calls
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4529 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-17 16:54:36 +00:00
nate
770446905a
Fixing implementation of Set::remove() for instance and static calling
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4523 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-15 20:39:43 +00:00
nate
939d141287
Implementing Set::check() and Set::remove()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4515 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-13 18:20:28 +00:00
nate
71115620bf
Fixing issue with Set::insert(), and changing CakeSession::_ _writeSessionVar() to use Set::insert()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4510 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-12 20:06:39 +00:00
nate
cdb8925912
Implementing Set::insert() for dynamic array writes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4509 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-12 18:31:26 +00:00
nate
3bff0fd2d1
Fixing object support for Set::diff()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4500 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-10 17:21:32 +00:00
nate
4fb52738d3
Adding null value checks to Set::diff()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4499 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-10 17:19:49 +00:00
nate
6331a6d4c4
Moving Object::enum() to Set::enum()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4498 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-10 16:02:45 +00:00
phpnut
115037e815
Adding missing headers
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4490 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-09 18:18:01 +00:00
nate
9468feec18
Adding object support to Set::extract()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4481 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-08 22:14:36 +00:00
phpnut
a8a91e35be
Correcting all headers in the files
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4407 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-02-02 10:39:45 +00:00
nate
06f83ea86d
Moving normalizeList() (basics) to Set::normalize()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4307 3807eeeb-6ff5-0310-8944-8be069107fe0
2007-01-20 20:50:57 +00:00
nate
9ce0247acc
Adding additional Dispatcher fixes for named arguments; fixing parameters passed in Paginator URLs
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4232 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-12-30 06:12:29 +00:00
nate
099144bcbd
Changing Set interface to act like NeatArray, disabling Model::cacheQueries by default, and removing NeatArray usage in Model
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3888 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-21 22:40:30 +00:00
nate
6ba7032e68
Moving strip_plugin() to Router::stripPlugin(), and enabling reverse routes
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3854 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-10 17:08:31 +00:00
nate
13c579292a
Refactoring and moving countdim() to Set::countDim()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3840 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-11-08 03:26:09 +00:00
nate
3a03674c76
Moving DataSource::getFieldValue to Set::extract
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3667 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-14 17:19:03 +00:00
gwoo
94bd840e8a
another fix for Set::extract()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3653 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 20:21:38 +00:00
gwoo
d39b398a20
another fix for Set::extract()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3651 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 20:08:00 +00:00
gwoo
294bf20624
fixing Set::extract()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3645 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 19:00:04 +00:00
gwoo
80481ae318
added extract() to Set, added format() to TimeHelper, fixed bake admin views creation
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3636 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-13 07:41:10 +00:00
nate
7df9917319
De-enforcing key naming conventions when converting Model results to object
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3604 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-10-06 18:39:38 +00:00
nate
ff2870fb41
Adding model name mapping property to mapped objects in Set::map()
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3584 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-09-28 20:26:54 +00:00
nate
89a89427ff
Fixing bug in Set::map for handling empty arrays
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3419 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-22 07:26:58 +00:00
nate
5db9faa1df
Adding Set class to replace NeatArray
...
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3412 3807eeeb-6ff5-0310-8944-8be069107fe0
2006-08-18 09:44:01 +00:00