コード例 #1
0
 /**
  * Grabs all lessons & series from the website.
  */
 public function getAllLessons()
 {
     $array = [];
     $html = $this->getAllPage();
     Parser::getAllLessons($html, $array);
     while ($nextPage = Parser::hasNextPage($html)) {
         $html = $this->client->get($nextPage)->getBody()->getContents();
         Parser::getAllLessons($html, $array);
     }
     return $array;
 }
コード例 #2
0
 /**
  * Grabs all lessons & series from the website.
  */
 public function getAllLessons()
 {
     $array = [];
     $html = $this->getAllPage();
     Parser::getAllLessons($html, $array);
     while ($nextPage = Parser::hasNextPage($html)) {
         $html = $this->client->get($nextPage, ['verify' => false])->getBody()->getContents();
         Parser::getAllLessons($html, $array);
     }
     Downloader::$currentLessonNumber = count($array['lessons']);
     return $array;
 }