Hi Felix,
yeah there is a difference.
This is the method for loading the SimpleItem objects of a specific category into memory. There is only this one method:
To load the items of type "Item" object, there are a lot of various methods. This allows you to manage the available memory more efficiently, e.g. to avoid loading all items of a category into memory at once. This can be very helpful, when creating pagination for a large number of items.
yeah there is a difference.
This is the method for loading the SimpleItem objects of a specific category into memory. There is only this one method:
PHP Code:
$itemMapper->alloc($category->id);
To load the items of type "Item" object, there are a lot of various methods. This allows you to manage the available memory more efficiently, e.g. to avoid loading all items of a category into memory at once. This can be very helpful, when creating pagination for a large number of items.
PHP Code:
$itemMapper->quickInit($category->id[, $fields, $start, $bulk, $pat]);
$itemMapper->limitedInit($category->id, $index, $limit);
$itemMapper->init($category->id);
$itemMapper->initAll(); // To get all Items as an multidimensional array (Note: it can be very memory sensitive)