PHP 클래스 Learner\Repositories\Eloquent\VideoRepository

상속: extends AbstractRepository, implements Learner\Repositories\VideoRepositoryInterface
파일 보기 프로젝트 열기: RryLee/learner.video

보호된 프로퍼티들

프로퍼티 타입 설명
$relations array The user relate models.

공개 메소드들

메소드 설명
__construct ( Video $video ) Create a new Video instance.
create ( array $data ) : array Create a video.
delete ( integer $id ) : boolean | null Delete video.
findAll ( ) : array Return id as key and title as value.
findAllPublishedPaginated ( integer $perPage = 50 ) : Illuminate\Contracts\Pagination\LengthAwarePaginator Paniaget the all videos.
getSaveForm ( ) : Learner\Services\Forms\CreateVideoFormService Create video save-form service.
hasChanged ( integer $id, string $resource_type, string $resource_id ) : boolean Check the video resource changed.
update ( integer $id, array $data ) : array Update video.

메소드 상세

__construct() 공개 메소드

Create a new Video instance.
public __construct ( Video $video )
$video Learner\Models\Video

create() 공개 메소드

Create a video.
public create ( array $data ) : array
$data array
리턴 array

delete() 공개 메소드

Delete video.
public delete ( integer $id ) : boolean | null
$id integer
리턴 boolean | null

findAll() 공개 메소드

Return id as key and title as value.
public findAll ( ) : array
리턴 array

findAllPublishedPaginated() 공개 메소드

Paniaget the all videos.
public findAllPublishedPaginated ( integer $perPage = 50 ) : Illuminate\Contracts\Pagination\LengthAwarePaginator
$perPage integer
리턴 Illuminate\Contracts\Pagination\LengthAwarePaginator

getSaveForm() 공개 메소드

Create video save-form service.
public getSaveForm ( ) : Learner\Services\Forms\CreateVideoFormService
리턴 Learner\Services\Forms\CreateVideoFormService

hasChanged() 공개 메소드

Check the video resource changed.
public hasChanged ( integer $id, string $resource_type, string $resource_id ) : boolean
$id integer
$resource_type string
$resource_id string
리턴 boolean

update() 공개 메소드

Update video.
public update ( integer $id, array $data ) : array
$id integer
$data array
리턴 array

프로퍼티 상세

$relations 보호되어 있는 정적으로 프로퍼티

The user relate models.
protected static array $relations
리턴 array