/**
  * action index
  *
  * @return void
  */
 public function indexAction()
 {
     $folders = array();
     $addFolder = array();
     $addFolder['uid'] = 0;
     $addFolder['title'] = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('LLL:EXT:moox_social/Resources/Private/Language/locallang.xlf:overview.folder.listing.default_storage', $this->extensionName);
     $addFolder['countFacebook'] = $this->facebookRepository->findAllByStoragePid(0)->count();
     $addFolder['countTwitter'] = $this->twitterRepository->findAllByStoragePid(0)->count();
     $addFolder['countYoutube'] = $this->youtubeRepository->findAllByStoragePid(0)->count();
     $addFolder['countFlickr'] = $this->flickrRepository->findAllByStoragePid(0)->count();
     $addFolder['countSlideshare'] = $this->slideshareRepository->findAllByStoragePid(0)->count();
     $addFolder['count'] = $addFolder['countFacebook'] + $addFolder['countTwitter'] + $addFolder['countYoutube'] + $addFolder['countFlickr'] + $addFolder['countSlideshare'];
     $folders[] = $addFolder;
     $result = $this->getSocialFolders();
     foreach ($result as $folder) {
         $addFolder = array();
         $addFolder['uid'] = $folder['uid'];
         $addFolder['title'] = $folder['title'];
         $addFolder['countFacebook'] = $this->facebookRepository->findAllByStoragePid($folder['uid'])->count();
         $addFolder['countTwitter'] = $this->twitterRepository->findAllByStoragePid($folder['uid'])->count();
         $addFolder['countYoutube'] = $this->youtubeRepository->findAllByStoragePid($folder['uid'])->count();
         $addFolder['countFlickr'] = $this->flickrRepository->findAllByStoragePid($folder['uid'])->count();
         $addFolder['countSlideshare'] = $this->slideshareRepository->findAllByStoragePid($folder['uid'])->count();
         $addFolder['count'] = $addFolder['countFacebook'] + $addFolder['countTwitter'] + $addFolder['countYoutube'] + $addFolder['countFlickr'] + $addFolder['countSlideshare'];
         $folders[] = $addFolder;
     }
     $this->view->assign('folders', $folders);
 }
 /**
  * action show
  *
  * @param \TYPO3\MooxSocial\Domain\Model\Twitter $twitter
  * @return void
  */
 public function showAction(\TYPO3\MooxSocial\Domain\Model\Twitter $twitter = NULL)
 {
     if (!$twitter && $this->settings['source'] != "api") {
         $twitter = $this->twitterRepository->findRandomOne($this->settings['screen_name']);
         $this->view->assign('israndom', TRUE);
     }
     $this->view->assign('twitter', $twitter);
 }