class GroupTreeNodeKey extends TreeNodeKey (View source)

Constants

ACCESS_TYPE_INCLUDE

ACCESS_TYPE_EXCLUDE

ACCESS_TYPE_ALL

Properties

$error from  Object
protected $permissionObject from  Key

Methods

loadError($error)

No description

from  Object
isError()

No description

from  Object
getError()

No description

from  Object
setPropertiesFromArray($arr)

No description

from  Object
static 
camelcase($file)

No description

from  Object
static 
uncamelcase($string)

No description

from  Object
getSupportedAccessTypes()

No description

from  Key
canPermissionKeyTriggerWorkflow()

Returns whether a permission key can start a workflow.

from  Key
permissionKeyHasCustomClass()

Returns whether a permission key has a custom class.

from  Key
getPermissionKeyName()

Returns the name for this permission key.

from  Key
string
getPermissionKeyDisplayName(string $format = 'html')

Returns the display name for this permission key (localized and escaped accordingly to $format)

from  Key
getPermissionKeyHandle()

Returns the handle for this permission key.

from  Key
getPermissionKeyDescription()

Returns the description for this permission key.

from  Key
string
getPermissionKeyDisplayDescription(string $format = 'html')

Returns the display description for this permission key (localized and escaped accordingly to $format)

from  Key
getPermissionKeyID()

Returns the ID for this permission key.

from  Key
getPermissionKeyCategoryID()

No description

from  Key
from  Key
setPermissionObject($object)

No description

from  Key
getPermissionObjectToCheck()

No description

from  Key
getPermissionObject()

No description

from  Key
static 
loadAll()

No description

from  Key
static 
load($key, $loadBy = 'pkID')

No description

from  Key
hasCustomOptionsForm()

No description

from  Key
getPackageID()

No description

from  Key
getPackageHandle()

No description

from  Key
static 
getList($pkCategoryHandle, $filters = array())

Returns a list of all permissions of this category.

from  Key
export($axml)

No description

from  Key
static 
exportList($xml)

No description

from  Key
static 
getListByPackage($pkg)

Note, this queries both the pkgID found on the PermissionKeys table AND any permission keys of a special type installed by that package, and any in categories by that package.

from  Key
static 
import(SimpleXMLElement $pk)

No description

from  Key
static 
getByID($pkID)

No description

from  Key
static 
getByHandle($pkHandle)

No description

from  Key
static 
add($pkCategoryHandle, $pkHandle, $pkName, $pkDescription, $pkCanTriggerWorkflow, $pkHasCustomClass, $pkg = false)

Adds an permission key.

from  Key
setPermissionKeyHasCustomClass($pkHasCustomClass)

No description

from  Key
can()

Legacy support.

from  Key
validate()

No description

from  Key
delete()

No description

from  Key
getAccessListItems()

A shortcut for grabbing the current assignment and passing into that object.

from  Key
getPermissionAccessObject()

No description

from  Key
getPermissionAccessID()

No description

from  Key
exportAccess($pxml)

No description

from  Key
static 
exportTranslations()

No description

from  Key

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

getSupportedAccessTypes()

No description

canPermissionKeyTriggerWorkflow()

Returns whether a permission key can start a workflow.

permissionKeyHasCustomClass()

Returns whether a permission key has a custom class.

getPermissionKeyName()

Returns the name for this permission key.

string getPermissionKeyDisplayName(string $format = 'html')

Returns the display name for this permission key (localized and escaped accordingly to $format)

Parameters

string $format

= 'html' Escape the result in html format (if $format is 'html'). If $format is 'text' or any other value, the display name won't be escaped.

Return Value

string

getPermissionKeyHandle()

Returns the handle for this permission key.

getPermissionKeyDescription()

Returns the description for this permission key.

string getPermissionKeyDisplayDescription(string $format = 'html')

Returns the display description for this permission key (localized and escaped accordingly to $format)

Parameters

string $format

= 'html' Escape the result in html format (if $format is 'html'). If $format is 'text' or any other value, the display description won't be escaped.

Return Value

string

getPermissionKeyID()

Returns the ID for this permission key.

getPermissionKeyCategoryID()

No description

getPermissionKeyCategoryHandle()

No description

setPermissionObject($object)

No description

Parameters

$object

getPermissionObjectToCheck()

No description

getPermissionObject()

No description

static loadAll()

No description

static protected load($key, $loadBy = 'pkID')

No description

Parameters

$key
$loadBy

hasCustomOptionsForm()

No description

getPackageID()

No description

getPackageHandle()

No description

static getList($pkCategoryHandle, $filters = array())

Returns a list of all permissions of this category.

Parameters

$pkCategoryHandle
$filters

export($axml)

No description

Parameters

$axml

static exportList($xml)

No description

Parameters

$xml

static getListByPackage($pkg)

Note, this queries both the pkgID found on the PermissionKeys table AND any permission keys of a special type installed by that package, and any in categories by that package.

Parameters

$pkg

static import(SimpleXMLElement $pk)

No description

Parameters

SimpleXMLElement $pk

static getByID($pkID)

No description

Parameters

$pkID

static getByHandle($pkHandle)

No description

Parameters

$pkHandle

static add($pkCategoryHandle, $pkHandle, $pkName, $pkDescription, $pkCanTriggerWorkflow, $pkHasCustomClass, $pkg = false)

Adds an permission key.

Parameters

$pkCategoryHandle
$pkHandle
$pkName
$pkDescription
$pkCanTriggerWorkflow
$pkHasCustomClass
$pkg

setPermissionKeyHasCustomClass($pkHasCustomClass)

No description

Parameters

$pkHasCustomClass

can()

Legacy support.

validate()

No description

delete()

No description

getAccessListItems()

A shortcut for grabbing the current assignment and passing into that object.

Assignment getPermissionAssignmentObject()

No description

Return Value

Assignment

getPermissionAccessObject()

No description

getPermissionAccessID()

No description

exportAccess($pxml)

No description

Parameters

$pxml

static exportTranslations()

No description

copyFromParentNodeToCurrentNode()

No description