PHP Class Alltube\Controller\FrontController

ファイルを表示 Open project: rudloff/alltube

Public Methods

Method Description
__construct ( Interop\Container\ContainerInterface $container ) FrontController constructor.
error ( Slim\Http\Request $request, Slim\Http\Response $response, Exception $exception ) : Slim\Http\Response Display an error page.
extractors ( Slim\Http\Request $request, Slim\Http\Response $response ) : void Display a list of extractors.
index ( Slim\Http\Request $request, Slim\Http\Response $response ) : void Display index page.
json ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response Output JSON info about the video.
redirect ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response Redirect to video file.
video ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response Dislay information about the video.

Method Details

__construct() public method

FrontController constructor.
public __construct ( Interop\Container\ContainerInterface $container )
$container Interop\Container\ContainerInterface Slim dependency container

error() public method

Display an error page.
public error ( Slim\Http\Request $request, Slim\Http\Response $response, Exception $exception ) : Slim\Http\Response
$request Slim\Http\Request PSR-7 request
$response Slim\Http\Response PSR-7 response
$exception Exception Error to display
return Slim\Http\Response HTTP response

extractors() public method

Display a list of extractors.
public extractors ( Slim\Http\Request $request, Slim\Http\Response $response ) : void
$request Slim\Http\Request PSR-7 request
$response Slim\Http\Response PSR-7 response
return void

index() public method

Display index page.
public index ( Slim\Http\Request $request, Slim\Http\Response $response ) : void
$request Slim\Http\Request PSR-7 request
$response Slim\Http\Response PSR-7 response
return void

json() public method

Output JSON info about the video.
public json ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response
$request Slim\Http\Request PSR-7 request
$response Slim\Http\Response PSR-7 response
return Slim\Http\Response HTTP response

redirect() public method

Redirect to video file.
public redirect ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response
$request Slim\Http\Request PSR-7 request
$response Slim\Http\Response PSR-7 response
return Slim\Http\Response HTTP response

video() public method

Dislay information about the video.
public video ( Slim\Http\Request $request, Slim\Http\Response $response ) : Slim\Http\Response
$request Slim\Http\Request PSR-7 request
$response Slim\Http\Response PSR-7 response
return Slim\Http\Response HTTP response