/** * Gets the array of the local lessons & series. * * @return array */ public function getAllLessons() { $array = []; $array['lessons'] = $this->getLessons(true); $array['series'] = $this->getSeries(true); Downloader::$totalLocalLessons = count($array['lessons']); return $array; }