/**
  * 
  * @return string
  */
 public function indexAction()
 {
     try {
         $options = $this->widgetConfiguration['options'];
         $apiKey = $this->widgetConfiguration['apiKey'];
         if (!empty($this->widgetConfiguration['templatePathAndName'])) {
             $this->view->setTemplatePathAndFilename(t3lib_div::getFileAbsFileName($this->widgetConfiguration['templatePathAndName']));
         }
         $flickr = new Tx_T3orgFlickrfeed_Utility_Flickr($apiKey);
         if ($this->widgetConfiguration['type'] == 1 || $this->widgetConfiguration['type'] === 'tag') {
             // tagSearch
             $this->view->assign('result', $flickr->tagSearch($this->widgetConfiguration['tags'], $options));
             if (is_array($this->widgetConfiguration['tags']) || $this->widgetConfiguration['tags'] instanceof Traversable) {
                 $tags = $this->widgetConfiguration['tags'];
             } else {
                 $tags = t3lib_div::trimExplode(',', $this->widgetConfiguration['tags'], true);
             }
             $this->view->assign('tags', $tags);
         } elseif ($this->widgetConfiguration['type'] == 2 || $this->widgetConfiguration['type'] === 'user') {
             // people.getPublicPhotos
             $this->view->assign('result', $flickr->userSearch($this->widgetConfiguration['user_id'], $options));
         } else {
             $this->view->assign('result', $flickr->groupPoolGetPhotos($this->widgetConfiguration['group_id'], $options));
         }
     } catch (Exception $e) {
         t3lib_div::sysLog($e->getMessage(), $this->request->getControllerExtensionKey(), LOG_ERR);
         $this->view->assign('error', $e->getMessage());
     }
 }
 /**
  * listAction
  * 
  * @see http://www.flickr.com/services/api/flickr.photos.search.html
  * @see http://www.flickr.com/services/api/flickr.groups.pools.getPhotos.html
  * @see http://www.flickr.com/services/api/flickr.people.getPublicPhotos.html
  * 
  */
 public function listAction()
 {
     try {
         $options = $this->buildOptions();
         $apiKey = $this->settings['apiKey'];
         $flickr = new Tx_T3orgFlickrfeed_Utility_Flickr($apiKey);
         if ($this->settings['type'] == 1) {
             // tagSearch
             $this->view->assign('result', $flickr->tagSearch($this->settings['tags'], $options));
             $tags = t3lib_div::trimExplode(',', $this->settings['tags'], true);
             $this->view->assign('tags', $tags);
         } elseif ($this->settings['type'] == 2) {
             // people.getPublicPhotos
             $this->view->assign('result', $flickr->userSearch($this->settings['user_id'], $options));
         } else {
             $this->view->assign('result', $flickr->groupPoolGetPhotos($this->settings['group_id'], $options));
         }
     } catch (Exception $e) {
         t3lib_div::sysLog($e->getMessage(), $this->request->getControllerExtensionKey(), LOG_ERR);
         $this->view->assign('error', $e->getMessage());
     }
 }