PHP 클래스 Learner\Http\Controllers\Admin\VideoController

상속: extends BaseController
파일 보기 프로젝트 열기: RryLee/learner.video

보호된 프로퍼티들

프로퍼티 타입 설명
$series Learner\Repositories\SeriesRepositoryInterface Series repository.
$videos Learner\Repositories\VideoRepositoryInterface Video repository.

공개 메소드들

메소드 설명
__construct ( Learner\Repositories\VideoRepositoryInterface $videos, Learner\Repositories\SeriesRepositoryInterface $series ) Instance video repository and series repository.
destory ( integer $id ) : Illuminate\Http\JsonResponse Delete a video
index ( ) : Illuminate\Http\JsonResponse Get all videos.
store ( ) : Illuminate\Http\JsonResponse Store a video.
update ( integer $id ) : Illuminate\Http\JsonResponse Update a video.

보호된 메소드들

메소드 설명
getResourceInfo ( string $type, integer $id ) : array Get video information from remote api. (vimeo. youtube. youku)

메소드 상세

__construct() 공개 메소드

Instance video repository and series repository.
public __construct ( Learner\Repositories\VideoRepositoryInterface $videos, Learner\Repositories\SeriesRepositoryInterface $series )
$videos Learner\Repositories\VideoRepositoryInterface
$series Learner\Repositories\SeriesRepositoryInterface

destory() 공개 메소드

admin/videos/{id} delete
public destory ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
리턴 Illuminate\Http\JsonResponse

getResourceInfo() 보호된 메소드

Get video information from remote api. (vimeo. youtube. youku)
protected getResourceInfo ( string $type, integer $id ) : array
$type string
$id integer
리턴 array

index() 공개 메소드

admin/videos get
public index ( ) : Illuminate\Http\JsonResponse
리턴 Illuminate\Http\JsonResponse

store() 공개 메소드

admin/videos post
public store ( ) : Illuminate\Http\JsonResponse
리턴 Illuminate\Http\JsonResponse

update() 공개 메소드

admin/videos/{id} put
public update ( integer $id ) : Illuminate\Http\JsonResponse
$id integer
리턴 Illuminate\Http\JsonResponse

프로퍼티 상세

$series 보호되어 있는 프로퍼티

Series repository.
protected SeriesRepositoryInterface,Learner\Repositories $series
리턴 Learner\Repositories\SeriesRepositoryInterface

$videos 보호되어 있는 프로퍼티

Video repository.
protected VideoRepositoryInterface,Learner\Repositories $videos
리턴 Learner\Repositories\VideoRepositoryInterface