TemplatePathMaker
extends PathMaker
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
-
makePathForEntitySelector()
: string
-
setOwnerId()
: static
-
setQueryParams()
: self
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
= '?'
$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
= ''
__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
-
makeEntitiesListPath()
public
makeEntitiesListPath() : string
makeEntityPath()
public
makeEntityPath() : string
makePathForEntitySelector()
public
makePathForEntitySelector() : string
setOwnerId()
public
setOwnerId(int $ownerId) : static
Parameters
-
$ownerId
: int
-
setQueryParams()
public
setQueryParams(string $queryParams) : self
Parameters
-
$queryParams
: string
-