프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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) |
public __construct ( Learner\Repositories\VideoRepositoryInterface $videos, Learner\Repositories\SeriesRepositoryInterface $series ) | ||
$videos | Learner\Repositories\VideoRepositoryInterface | |
$series | Learner\Repositories\SeriesRepositoryInterface |
public index ( ) : Illuminate\Http\JsonResponse | ||
리턴 | Illuminate\Http\JsonResponse |
public store ( ) : Illuminate\Http\JsonResponse | ||
리턴 | Illuminate\Http\JsonResponse |
protected SeriesRepositoryInterface,Learner\Repositories $series | ||
리턴 | Learner\Repositories\SeriesRepositoryInterface |