Review main Merged

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

Fabien Udriot CR +2 V +2 Hard +609 −0 updated 06/03/13, 20:49

Commit message

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();

Review

  • Code review CR +2

    Imported before Forger kept the single votes, the next import adds them.

  • Verified V +2

    Imported before Forger kept the single votes, the next import adds them.

Issues 1

Files 3