Ejemplo n.º 1
0
 public function findGroupList($listType, $first = null, $count = null)
 {
     switch ($listType) {
         case self::LIST_MOST_POPULAR:
             return $this->groupDao->findMostPupularList($first, $count);
         case self::LIST_LATEST:
             return $this->groupDao->findOrderedList($first, $count);
         case self::LIST_ALL:
             return $this->groupDao->findAllLimited($first, $count);
     }
     throw new InvalidArgumentException('Undefined list type');
 }