function fetchItemList($sortBy, $offset, $limit, $status, $isRead, $isActive, $parentGroupID) { $itemParameters = array('offset' => $offset, 'limit' => $limit, 'sort_by' => $sortBy, 'is_read' => $isRead, 'is_active' => $isActive, 'parent_group_id' => $parentGroupID); if ($status !== false) { $itemParameters['status'] = $status; } $children = eZCollaborationItem::fetchList($itemParameters); if ($children === null) { return array('error' => array('error_type' => 'kernel', 'error_code' => eZError::KERNEL_NOT_FOUND)); } return array('result' => $children); }
function itemList($parameters = array()) { return eZCollaborationItem::fetchList(array_merge(array('parent_group_id' => $this->ID), $parameters)); }