Category
extends Facade
in package
Class Category
Table of Contents
Properties
- $container : Container
- $instance : mixed
Methods
- __callStatic() : mixed
- canCreate() : bool
- canDelete() : bool
- canUpdate() : bool
- getInstance() : mixed
- get service instance
- hasDescendantCategories() : bool
- setContainer() : void
- getServiceAlias() : string
- getServiceInstance() : mixed
- isCache() : bool
Properties
$container
protected
static Container
$container
$instance
protected
static mixed
$instance
Methods
__callStatic()
public
static __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
Parameters
- $method : string
- $arguments : array<string|int, mixed>
canCreate()
public
static canCreate(int $blogId) : bool
現在ログインしているユーザーがカテゴリーを作成できるか
Parameters
- $blogId : int
Return values
boolcanDelete()
public
static canDelete(int $blogId) : bool
現在ログインしているユーザーがカテゴリーを削除できるか
Parameters
- $blogId : int
Return values
boolcanUpdate()
public
static canUpdate(int $blogId) : bool
現在ログインしているユーザーがカテゴリーを更新できるか
Parameters
- $blogId : int
Return values
boolgetInstance()
get service instance
public
static getInstance() : mixed
hasDescendantCategories()
public
static hasDescendantCategories(int $categoryId) : bool
指定したカテゴリーが子孫カテゴリーを持っているか
Parameters
- $categoryId : int
Return values
boolsetContainer()
public
static setContainer(Container $container) : void
Parameters
- $container : Container
getServiceAlias()
protected
static getServiceAlias() : string
Return values
stringgetServiceInstance()
protected
static getServiceInstance(string $alias) : mixed
Parameters
- $alias : string
isCache()
protected
static isCache() : bool