abstract class Key extends Object (View source)

Constants

ACCESS_TYPE_INCLUDE

ACCESS_TYPE_EXCLUDE

ACCESS_TYPE_ALL

Properties

$error from  Object
protected $permissionObject

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

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)

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)

getPermissionKeyID()

Returns the ID for this permission key.

getPermissionKeyCategoryID()

No description

setPermissionObject($object)

No description

getPermissionObjectToCheck()

No description

getPermissionObject()

No description

static 
loadAll()

No description

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

No description

hasCustomOptionsForm()

No description

getPackageID()

No description

getPackageHandle()

No description

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

Returns a list of all permissions of this category.

export($axml)

No description

static 
exportList($xml)

No description

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.

static 
import(SimpleXMLElement $pk)

No description

static 
getByID($pkID)

No description

static 
getByHandle($pkHandle)

No description

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

Adds an permission key.

setPermissionKeyHasCustomClass($pkHasCustomClass)

No description

can()

Legacy support.

validate()

No description

delete()

No description

getAccessListItems()

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

getPermissionAccessObject()

No description

getPermissionAccessID()

No description

exportAccess($pxml)

No description

static 
exportTranslations()

No description

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