[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
Showing
- t3lib/category/Collection/CategoryCollection.php 271 additions, 0 deletionst3lib/category/Collection/CategoryCollection.php
- t3lib/core_autoload.php 1 addition, 0 deletionst3lib/core_autoload.php
- tests/Unit/t3lib/category/Collection/CategoryCollectionTest.php 337 additions, 0 deletions...Unit/t3lib/category/Collection/CategoryCollectionTest.php
Please register or sign in to comment