コード例 #1
0
 public function findThread(Episode $episode)
 {
     $this->login();
     $tvShow = $episode->getTvShow();
     $season = $episode->getSeason();
     /* Thread Caching (nur im ShortCache nicht persistant) */
     $threadKeys = array('threads', $tvShow->getIdentifier(), $season->getNum());
     if (($thread = $this->shortCache->get($threadKeys, FALSE, FALSE)) === FALSE) {
         /* Board Caching ist nicht relevant, da subcentral.php sich schon selbst cached */
         $boardId = $this->sc->findBoard($tvShow);
         $thread = $this->sc->findThread($boardId, $season);
         $this->cacheInfo->set($threadKeys, $thread);
     }
     return $thread;
 }