PathMaker
AbstractYes
Table of Contents
Constants
- AND = '&'
- DEFAULT_ACTION = 'view'
- EDIT_ACTION = 'edit'
- GROUP_CONTEXT = 'group'
- PERSONAL_CONTEXT = 'personal'
- SPACE_CONTEXT = 'space'
- START = '?'
Properties
- $action : string
- $allowedActions : array<string|int, mixed>
- $context : string
- $entityId : int
- $ownerId : int
- $queryParams : string
Methods
- __construct() : mixed
- addQueryParam() : self
- makeEntitiesListPath() : string
- makeEntityPath() : string
- setOwnerId() : static
- setQueryParams() : self
Constants
AND
public
mixed
AND
= '&'
DEFAULT_ACTION
public
mixed
DEFAULT_ACTION
= 'view'
EDIT_ACTION
public
mixed
EDIT_ACTION
= 'edit'
GROUP_CONTEXT
public
mixed
GROUP_CONTEXT
= 'group'
PERSONAL_CONTEXT
public
mixed
PERSONAL_CONTEXT
= 'personal'
SPACE_CONTEXT
public
mixed
SPACE_CONTEXT
= 'space'
START
public
mixed
START
= '?'
Properties
$action
public
string
$action
$allowedActions
public
static array<string|int, mixed>
$allowedActions
= [self::DEFAULT_ACTION, self::EDIT_ACTION]
$context
public
string
$context
$entityId
public
int
$entityId
$ownerId
public
int
$ownerId
$queryParams
public
string
$queryParams
= ''
Methods
__construct()
public
__construct([int $entityId = 0 ][, string $action = self::DEFAULT_ACTION ][, int $ownerId = 0 ][, string $context = self::PERSONAL_CONTEXT ]) : mixed
Parameters
- $entityId : int = 0
- $action : string = self::DEFAULT_ACTION
- $ownerId : int = 0
- $context : string = self::PERSONAL_CONTEXT
addQueryParam()
public
addQueryParam(string $key, string $value) : self
Parameters
- $key : string
- $value : string
Return values
selfmakeEntitiesListPath()
public
abstract makeEntitiesListPath() : string
Return values
stringmakeEntityPath()
public
abstract makeEntityPath() : string
Return values
stringsetOwnerId()
public
setOwnerId(int $ownerId) : static
Parameters
- $ownerId : int
Return values
staticsetQueryParams()
public
setQueryParams(string $queryParams) : self
Parameters
- $queryParams : string