Свойство | Type | Description | |
---|---|---|---|
$categoryModel | | Builder |
Méthode | Description | |
---|---|---|
__construct ( |
||
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. |
public __construct ( |
||
$categoryModel |
public deleteByName ( $name ) : mixed | ||
$name | ||
Résultat | mixed |
public findByNames ( array $name ) : mixed | ||
$name | array | |
Résultat | mixed |