Project

General

Profile

Actions

Feature #38773

closed

Add Category Collection

Added by Fabien Udriot almost 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
Start date:
2012-07-09
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #44961: Categorization in core is not usable in frontendClosed2013-01-30

Actions
Actions #1

Updated by Fabien Udriot almost 12 years ago

  • Subject changed from Add Collection support for Category to Add Category Collection
Actions #2

Updated by Fabien Udriot almost 12 years ago

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
Actions #3

Updated by Gerrit Code Review almost 12 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12791

Actions #4

Updated by Gerrit Code Review almost 12 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12791

Actions #5

Updated by Gerrit Code Review almost 12 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12791

Actions #6

Updated by Gerrit Code Review almost 12 years ago

Patch set 4 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12791

Actions #7

Updated by Gerrit Code Review over 11 years ago

Patch set 5 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/12791

Actions #8

Updated by Fabien Udriot over 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF