예제 #1
0
파일: category.php 프로젝트: dozernz/server
 /**
  * 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;
 }