mark_story
|
7dd1eea285
|
Updating documentation for paginator helper, and component.
|
2010-12-28 22:26:33 -05:00 |
|
mark_story
|
5ce66d3031
|
Changing how PaginatorComponent::paginate()'s $whitelist param works. It now serves as the whitelist for fields ordering can be done on. It previously allowed you to whitelist things you passed into paginate(), which was kind of useless.
Updated tests.
Fixes #430
|
2010-12-26 21:30:43 -05:00 |
|
mark_story
|
f62a067d7c
|
Making it possible for behaviors to define paginate and paginateCount. Updated test to ensure the component calls the correct methods.
Fixes #1373
|
2010-12-26 17:40:34 -05:00 |
|
mark_story
|
ee3017599d
|
Merge branch '2.0' into 2.0-pagination
Conflicts:
cake/libs/controller/components/paginator.php
cake/libs/router.php
|
2010-12-24 14:43:11 -05:00 |
|
mark_story
|
ef77e60cb0
|
Removing @subpackage tags, moving contents of @subpackage into @package.
Removing duplicate cake.cake in @package tags.
Renaming cake.app -> app
|
2010-12-24 14:09:57 -05:00 |
|
mark_story
|
e5588f746c
|
Reversing changes that required a : sigil for named parameters. Also removing ?foo style parameters for querystring args. Having two ways to create querystring args was not sitting well with me.
Tests updated.
|
2010-12-19 23:11:02 -05:00 |
|
mark_story
|
cc2d8e2fec
|
Moving limit from the options to the normal paging params. This fixes a few notice errors.
|
2010-12-19 13:15:04 -05:00 |
|
mark_story
|
8c3ceff50d
|
Making paging.options only contain options that are not in the defaults. This replaces the many diffs that were calculated on each url generation between paging.options and paging.defaults.
|
2010-12-19 12:58:07 -05:00 |
|
mark_story
|
ef84d86cf5
|
Reformatting code, and removing merging of defaults key in the helper. It no longer exists.
|
2010-12-19 12:26:28 -05:00 |
|
mark_story
|
f54479e566
|
Adding some docblock info about pagination.
|
2010-12-19 12:20:12 -05:00 |
|
mark_story
|
e9d3fcf5cf
|
Moving limit checking into a separate method, and adding tests.
Removing $scope from being passed down to the options, it previously only allowed additional conditions to be set.
Updated tests.
|
2010-12-19 11:58:35 -05:00 |
|
mark_story
|
1e741de84b
|
Removing show alias, it was undocumented and untested.
|
2010-12-19 02:14:37 -05:00 |
|
mark_story
|
108a6611a8
|
Moving validation of sorting to a separate method. This makes it easier to test, extends and read.
Tests added.
|
2010-12-19 02:12:39 -05:00 |
|
mark_story
|
7b11eeb6e0
|
Updating tests to not use the deprecated Controller::$passedArgs.
Removing messy and hard to understand defaults + whitelisting from paginate() now that it has a separate method.
|
2010-12-19 01:57:51 -05:00 |
|
mark_story
|
6b3db0a3eb
|
Pulling out parameter merging logic into a method, this allows specific typing of parameter merging (named, querystring, route). Also simplifies whitelisting of request parameters.
Tests added for merging and whitelisting.
|
2010-12-19 01:42:23 -05:00 |
|
mark_story
|
7585b2941e
|
Adding paramType to the test cases.
|
2010-12-19 00:38:20 -05:00 |
|
mark_story
|
54c52d85fb
|
Fixing failing tests in PaginatorComponent.
|
2010-12-18 17:29:47 -05:00 |
|
mark_story
|
6b9d9f4aea
|
Reapplying changes in [33d2f9a6ed ] as they got lost when the paginator component was extracted.
|
2010-12-18 17:17:43 -05:00 |
|
mark_story
|
a6cca7c036
|
Extracting a method from paginator component.
|
2010-12-18 17:09:30 -05:00 |
|
mark_story
|
a054695dca
|
Fixing failing tests.
|
2010-12-15 22:08:24 -05:00 |
|
Jeremy Harris
|
9fa1bec0cb
|
Move Controller::paginate() into PaginatorComponent
|
2010-12-14 18:21:39 -08:00 |
|