PHP 인터페이스 Fenos\Notifynder\Contracts\CategoryDB

Repository responsible to approach database queries of the categories
파일 보기 프로젝트 열기: fenos/notifynder 0 사용 예제들

공개 메소드들

메소드 설명
add ( array $name, $text ) : static Add a category to the DB.
delete ( $categoryId ) : mixed Delete category by ID.
deleteByName ( $name ) : mixed Delete category by name.
find ( $categoryId ) : mixed Find By Id.
findByName ( $name ) : mixed Find by name.
findByNames ( array $name ) : mixed Find by names returning lists of ids.
update ( array $data, $categoryId ) : mixed Update a category by id.

메소드 상세

add() 공개 메소드

Add a category to the DB.
public add ( array $name, $text ) : static
$name array
$text
리턴 static

delete() 공개 메소드

Delete category by ID.
public delete ( $categoryId ) : mixed
$categoryId
리턴 mixed

deleteByName() 공개 메소드

Delete category by name.
public deleteByName ( $name ) : mixed
$name
리턴 mixed

find() 공개 메소드

Find By Id.
public find ( $categoryId ) : mixed
$categoryId
리턴 mixed

findByName() 공개 메소드

Find by name.
public findByName ( $name ) : mixed
$name
리턴 mixed

findByNames() 공개 메소드

Find by names returning lists of ids.
public findByNames ( array $name ) : mixed
$name array
리턴 mixed

update() 공개 메소드

Update a category by id.
public update ( array $data, $categoryId ) : mixed
$data array
$categoryId
리턴 mixed