Skip to content
Snippets Groups Projects
Commit 2f03297c authored by Fabien Udriot's avatar Fabien Udriot Committed by Oliver Hader
Browse files

[FEATURE] Add a Category Collection as part of the Category API

Category should make use of the Collection API as a cornerstone for
fetching and storing records related to a category. The Abstract
Collection object implements various PHP Interfaces such as
Iterator, Serializable, Countable , etc... that the Collection
Category will inherit and make the developer happy.

Category Collection enables this code:

$categoryUid = 1;
$tableName = 'tt_content';
$collection = t3lib_category_Collection_CategoryCollection::load(
    $categoryUid, TRUE, $tableName);
echo $collection->count();

Change-Id: Ieac9ee0225595d01e539678284b18ecd35541138
Resolves: #38773
Releases: 6.0
Reviewed-on: http://review.typo3.org/12791
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Fabien Udriot
Tested-by: Fabien Udriot
Reviewed-by: Oliver Hader
Reviewed-by: Christian Kuhn
Tested-by: Oliver Hader
parent 6b395f91
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment