class PageTypeAccess extends Access (View source)

Properties

$error from  ConcreteObject
protected int $paID from  Access
protected int[] $paIDList from  Access
protected ListItem[]|null $listItems from  Access
Key $pk from  Access
bool|int|string $paIsInUse from  Access

Methods

loadError($error)

No description

isError()

No description

getError()

No description

setPropertiesFromArray($arr)

No description

static 
camelcase($file)

No description

static 
uncamelcase($string)

No description

setListItems(ListItem[] $listItems)

No description

from  Access
setPermissionKey(Key $permissionKey)

No description

from  Access
object
getPermissionObject()

Get the object associated to the permission (for example, a Page instance).

from  Access
object
getPermissionObjectToCheck()

Get the object to be used to check the permission (for example, a Page instance).

from  Access
int
getPermissionAccessID()

No description

from  Access
bool|int|string
isPermissionAccessInUse()

No description

from  Access
int[]
getPermissionAccessIDList()

No description

from  Access
Entity[]
validateAndFilterAccessEntities(Entity[] $accessEntities)

No description

from  Access
bool
validateAccessEntities(Entity[] $accessEntities)

No description

from  Access
bool
validate()

No description

from  Access
static 
createByMerge($permissions)

No description

from  Access
getAccessListItems(int $accessType = PermissionKey::ACCESS_TYPE_INCLUDE, Entity[] $filterEntities = [], bool $checkCache = true)

No description

from  Access
clearWorkflows()

No description

from  Access
attachWorkflow(Workflow $wf)

No description

from  Access
removeWorkflow(Workflow $wf)

No description

from  Access
getWorkflows()

No description

from  Access
duplicate(Access|null|false $newPA = false)

No description

from  Access
markAsInUse()

No description

from  Access
addListItem(Entity $pae, Duration|null|false $durationObject = false, int $accessType = PermissionKey::ACCESS_TYPE_INCLUDE)

No description

from  Access
removeListItem(Entity $pe)

No description

from  Access
save(array $args = [])

No description

from  Access
static Access
create(Key $pk)

No description

from  Access
static Access|null
getByID(int $paID, Key $pk, bool $checkPA = true)

No description

from  Access
deliverAccessListItems(string $q, int $accessType, Entity[] $filterEntities)

No description

from  Access
string
getCacheIdentifier(int $accessType, Entity[] $filterEntities = [])

No description

from  Access
string
buildAssignmentFilterString(int $accessType, Entity[] $filterEntities)

No description

from  Access

Details

loadError($error)

No description

Parameters

$error

isError()

No description

getError()

No description

setPropertiesFromArray($arr)

No description

Parameters

$arr

static camelcase($file)

No description

Parameters

$file

static uncamelcase($string)

No description

Parameters

$string

setListItems(ListItem[] $listItems)

No description

Parameters

ListItem[] $listItems

setPermissionKey(Key $permissionKey)

No description

Parameters

Key $permissionKey

object getPermissionObject()

Get the object associated to the permission (for example, a Page instance).

Return Value

object

object getPermissionObjectToCheck()

Get the object to be used to check the permission (for example, a Page instance).

Return Value

object

int getPermissionAccessID()

No description

Return Value

int

bool|int|string isPermissionAccessInUse()

No description

Return Value

bool|int|string

int[] getPermissionAccessIDList()

No description

Return Value

int[]

Entity[] validateAndFilterAccessEntities(Entity[] $accessEntities)

No description

Parameters

Entity[] $accessEntities

Return Value

Entity[]

bool validateAccessEntities(Entity[] $accessEntities)

No description

Parameters

Entity[] $accessEntities

Return Value

bool

bool validate()

No description

Return Value

bool

static createByMerge($permissions)

No description

Parameters

$permissions

ListItem[] getAccessListItems(int $accessType = PermissionKey::ACCESS_TYPE_INCLUDE, Entity[] $filterEntities = [], bool $checkCache = true)

No description

Parameters

int $accessType
Entity[] $filterEntities
bool $checkCache

Return Value

ListItem[]

clearWorkflows()

No description

attachWorkflow(Workflow $wf)

No description

Parameters

Workflow $wf

removeWorkflow(Workflow $wf)

No description

Parameters

Workflow $wf

Workflow[] getWorkflows()

No description

Return Value

Workflow[]

Access duplicate(Access|null|false $newPA = false)

No description

Parameters

Access|null|false $newPA

Return Value

Access

markAsInUse()

No description

addListItem(Entity $pae, Duration|null|false $durationObject = false, int $accessType = PermissionKey::ACCESS_TYPE_INCLUDE)

No description

Parameters

Entity $pae
Duration|null|false $durationObject
int $accessType

removeListItem(Entity $pe)

No description

Parameters

Entity $pe

save(array $args = [])

No description

Parameters

array $args

static Access create(Key $pk)

No description

Parameters

Key $pk

Return Value

Access

static Access|null getByID(int $paID, Key $pk, bool $checkPA = true)

No description

Parameters

int $paID
Key $pk
bool $checkPA

Return Value

Access|null

protected ListItem[] deliverAccessListItems(string $q, int $accessType, Entity[] $filterEntities)

No description

Parameters

string $q
int $accessType
Entity[] $filterEntities

Return Value

ListItem[]

protected string getCacheIdentifier(int $accessType, Entity[] $filterEntities = [])

No description

Parameters

int $accessType
Entity[] $filterEntities

Return Value

string

protected string buildAssignmentFilterString(int $accessType, Entity[] $filterEntities)

No description

Parameters

int $accessType
Entity[] $filterEntities

Return Value

string