/** * Display a list of extractors * @return void */ static function extractors() { global $app; $app->render('head.tpl', array('class' => 'extractors')); $app->render('header.tpl'); $app->render('logo.tpl'); $app->render('extractors.tpl', array('extractors' => VideoDownload::listExtractors())); $app->render('footer.tpl'); }
/** * Test listExtractors function. * * @return void */ public function testListExtractors() { $extractors = $this->download->listExtractors(); $this->assertContains('youtube', $extractors); }
/** * Display a list of extractors. * * @param Request $request PSR-7 request * @param Response $response PSR-7 response * * @return void */ public function extractors(Request $request, Response $response) { if ($this->container instanceof Container) { $this->container->view->render($response, 'extractors.tpl', ['extractors' => $this->download->listExtractors(), 'class' => 'extractors', 'title' => 'Supported websites', 'description' => 'List of all supported websites from which Alltube Download ' . 'can extract video or audio files']); } }
/** * Test listExtractors funtion * * @return void */ public function testListExtractors() { $extractors = VideoDownload::listExtractors(); $this->assertContains('youtube', $extractors); }