PHP Interface Fenos\Notifynder\Contracts\CategoryDB

Repository responsible to approach database queries of the categories
Afficher le fichier Open project: fenos/notifynder Interface Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

add() public méthode

Add a category to the DB.
public add ( array $name, $text ) : static
$name array
$text
Résultat static

delete() public méthode

Delete category by ID.
public delete ( $categoryId ) : mixed
$categoryId
Résultat mixed

deleteByName() public méthode

Delete category by name.
public deleteByName ( $name ) : mixed
$name
Résultat mixed

find() public méthode

Find By Id.
public find ( $categoryId ) : mixed
$categoryId
Résultat mixed

findByName() public méthode

Find by name.
public findByName ( $name ) : mixed
$name
Résultat mixed

findByNames() public méthode

Find by names returning lists of ids.
public findByNames ( array $name ) : mixed
$name array
Résultat mixed

update() public méthode

Update a category by id.
public update ( array $data, $categoryId ) : mixed
$data array
$categoryId
Résultat mixed