Пример #1
0
 public function photoFinds(OW_Event $event)
 {
     $params = $event->getParams();
     if (empty($params['idList'])) {
         return false;
     }
     $photos = $this->photoService->findPhotoListByIdList($params['idList'], 1, count($params['idList']));
     if (!$photos) {
         return false;
     }
     $list = $this->preparePhotos($photos);
     $event->setData(array('photos' => $list));
     return $event->getData();
 }