Feature #38773
closed
Added by Fabien Udriot almost 12 years ago.
Updated over 6 years ago.
Description
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.
- Subject changed from Add Collection support for Category to Add Category Collection
Current implementation enables to write:
$collection = t3lib_div::makeInstance(
't3lib_category_Collection_CategoryCollection',
'tt_content'
);
$collection->setIdentifier(4); // would be a category uid = 4
$collection->loadContents(); // would load the items
$collection->getItems(); // would return all tt_content items categorized by category.uid = 4
$collection->rewind(); // would set the cursor at the beginning
$item = $collection->current(); // would return the first item of the collection
- Status changed from New to Under Review
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF