| @@ 50-55 (lines=6) @@ | ||
| 47 | $image = $options[5]; |
|
| 48 | ||
| 49 | // creating the ITEM objects that belong to the selected category |
|
| 50 | if ($allcats) { |
|
| 51 | $criteria = null; |
|
| 52 | } else { |
|
| 53 | $criteria = new CriteriaCompo(); |
|
| 54 | $criteria->add(new Criteria('categoryid', '(' . $options[0] . ')', 'IN')); |
|
| 55 | } |
|
| 56 | $itemsObj = $publisher->getHandler('item')->getItems($limit, $start, array(PublisherConstants::PUBLISHER_STATUS_PUBLISHED), -1, $sort, $order, '', true, $criteria, 'none'); |
|
| 57 | ||
| 58 | $totalitems = count($itemsObj); |
|
| @@ 51-56 (lines=6) @@ | ||
| 48 | $start = 0; |
|
| 49 | ||
| 50 | // creating the ITEM objects that belong to the selected category |
|
| 51 | if ($allcats) { |
|
| 52 | $criteria = null; |
|
| 53 | } else { |
|
| 54 | $criteria = new CriteriaCompo(); |
|
| 55 | $criteria->add(new Criteria('categoryid', '(' . $options[0] . ')', 'IN')); |
|
| 56 | } |
|
| 57 | $itemsObj = $publisher->getHandler('item')->getItems($limit, $start, array(PublisherConstants::PUBLISHER_STATUS_PUBLISHED), -1, $sort, $order, '', true, $criteria, 'none'); |
|
| 58 | ||
| 59 | $totalItems = count($itemsObj); |
|
| @@ 61-66 (lines=6) @@ | ||
| 58 | } |
|
| 59 | ||
| 60 | // creating the ITEM objects that belong to the selected category |
|
| 61 | if ($allcats) { |
|
| 62 | $criteria = null; |
|
| 63 | } else { |
|
| 64 | $criteria = new CriteriaCompo(); |
|
| 65 | $criteria->add(new Criteria('categoryid', '(' . $options[29] . ')', 'IN')); |
|
| 66 | } |
|
| 67 | ||
| 68 | // Use specific ITEMS |
|
| 69 | if ($selectedStories != 0) { |
|