/** * Finds list of tagged clips * * @param string $tag * @param int $page * @param int $limit * @return array of VWVR_BOL_Clip */ public function findTaggedClipsList($tag, $page, $limit) { $first = ($page - 1) * $limit; $clipIdList = BOL_TagService::getInstance()->findEntityListByTag('vwvr', $tag, $first, $limit); $clips = $this->clipDao->findByIdList($clipIdList); if (is_array($clips)) { $list = array(); foreach ($clips as $key => $clip) { $clip = (array) $clip; $list[$key] = $clip; $list[$key]['thumb'] = $this->getClipThumbUrl($clip['id']); } } return $list; }