TaskQuery implements TaskQueryInterface
Table of Contents
Interfaces
Methods
- __construct() : mixed
- addGroupBy() : $this
- addSelect() : $this
- addWhere() : self
- andWhere() : $this
- getBehalfUser() : int
- getCountTotal() : int
- getDistinct() : bool
- getGroupBy() : array<string|int, mixed>
- getId() : string
- getLimit() : int
- getOffset() : int
- getOrderBy() : array<string|int, mixed>
- getParam() : mixed|null
- getSelect() : array<string|int, mixed>
- getUserId() : int
- getWhere() : array<string|int, mixed>
- needAccessCheck() : bool
- needMakeAccessFilter() : self
- needSeparated() : bool
- needTitleEscape() : bool
- needUfEscape() : bool
- setBehalfUser() : $this
- setDistinct() : self
- setGroupBy() : $this
- setLimit() : $this
- setOffset() : $this
- setOrder() : $this
- setParam() : $this
- setSelect() : $this
- setWhere() : $this
- skipAccessCheck() : $this
- skipTitleEscape() : $this
- skipUfEscape() : $this
Methods
__construct()
public
__construct([int $userId = 0 ]) : mixed
Parameters
- $userId : int = 0
addGroupBy()
public
addGroupBy(mixed $groupBy) : $this
Parameters
- $groupBy : mixed
Tags
Return values
$thisaddSelect()
public
addSelect(array<string|int, mixed>|string $select) : $this
Parameters
- $select : array<string|int, mixed>|string
Return values
$this —alias => column or column only
addWhere()
public
addWhere(string $key, mixed $value) : self
Parameters
- $key : string
- $value : mixed
Return values
selfandWhere()
public
andWhere(mixed $filter) : $this
Parameters
- $filter : mixed
Return values
$thisgetBehalfUser()
public
getBehalfUser() : int
Return values
intgetCountTotal()
public
getCountTotal() : int
Return values
intgetDistinct()
public
getDistinct() : bool
Return values
boolgetGroupBy()
public
getGroupBy() : array<string|int, mixed>
Return values
array<string|int, mixed>getId()
public
getId() : string
Return values
stringgetLimit()
public
getLimit() : int
Return values
intgetOffset()
public
getOffset() : int
Return values
intgetOrderBy()
public
getOrderBy() : array<string|int, mixed>
Return values
array<string|int, mixed>getParam()
public
getParam(string $key) : mixed|null
Parameters
- $key : string
Return values
mixed|nullgetSelect()
public
getSelect() : array<string|int, mixed>
Return values
array<string|int, mixed>getUserId()
public
getUserId() : int
Return values
intgetWhere()
public
getWhere() : array<string|int, mixed>
Return values
array<string|int, mixed>needAccessCheck()
public
needAccessCheck() : bool
Return values
boolneedMakeAccessFilter()
public
needMakeAccessFilter() : self
Return values
selfneedSeparated()
public
needSeparated() : bool
Return values
boolneedTitleEscape()
public
needTitleEscape() : bool
Return values
boolneedUfEscape()
public
needUfEscape() : bool
Return values
boolsetBehalfUser()
public
setBehalfUser(int $userId) : $this
Parameters
- $userId : int
Return values
$thissetDistinct()
public
setDistinct(bool $distinct) : self
Parameters
- $distinct : bool
Return values
selfsetGroupBy()
public
setGroupBy(mixed $groupBy) : $this
Parameters
- $groupBy : mixed
Tags
Return values
$thissetLimit()
public
setLimit(int $limit) : $this
Parameters
- $limit : int
Return values
$thissetOffset()
public
setOffset(int $offset) : $this
Parameters
- $offset : int
Return values
$thissetOrder()
public
setOrder(string|array<string|int, mixed> $order) : $this
Parameters
- $order : string|array<string|int, mixed>
Return values
$this —Column or list of columns [ column => sort, column ]
setParam()
public
setParam(string $key, mixed $value) : $this
Parameters
- $key : string
- $value : mixed
Return values
$thissetSelect()
public
setSelect([array<string|int, mixed>|string $select = [] ]) : $this
Parameters
- $select : array<string|int, mixed>|string = []
Return values
$thissetWhere()
public
setWhere(mixed $filter) : $this
Parameters
- $filter : mixed
Return values
$thisskipAccessCheck()
public
skipAccessCheck() : $this
Return values
$thisskipTitleEscape()
public
skipTitleEscape() : $this
Return values
$thisskipUfEscape()
public
skipUfEscape() : $this