/** * Return kusers ids that are active members on this category. * * @return array */ public function getMembers() { $categoryIdToGetAllMembers = $this->getId(); $inheritedParentId = $this->getInheritedParentId(); if ($inheritedParentId) { $categoryIdToGetAllMembers = $inheritedParentId; } $members = categoryKuserPeer::retrieveActiveKusersByCategoryId($categoryIdToGetAllMembers); if (!$members) { return array(); } $membersIds = array(); foreach ($members as $member) { $membersIds[] = $member->getKuserId(); } return $membersIds; }