FileKey
class FileKey extends Key (View source)
Constants
ACCESS_TYPE_INCLUDE |
|
ACCESS_TYPE_EXCLUDE |
|
ACCESS_TYPE_ALL |
|
Properties
$error | from ConcreteObject | ||
protected | $permissionObject | from Key |
Methods
Returns the display name for this permission key (localized and escaped accordingly to $format)
Returns the display description for this permission key (localized and escaped accordingly to $format)
Returns a list of all permissions of this category.
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.
Adds an permission key.
No description
A shortcut for grabbing the current assignment and passing into that object.
No description
Details
in ConcreteObject at line 10
loadError($error)
in ConcreteObject at line 15
isError()
in ConcreteObject at line 25
getError()
in ConcreteObject at line 30
setPropertiesFromArray($arr)
in ConcreteObject at line 37
static
camelcase($file)
in ConcreteObject at line 42
static
uncamelcase($string)
canPermissionKeyTriggerWorkflow()
Returns whether a permission key can start a workflow.
permissionKeyHasCustomClass()
Returns whether a permission key has a custom class.
string
getPermissionKeyDisplayName(string $format = 'html')
Returns the display name for this permission key (localized and escaped accordingly to $format)
string
getPermissionKeyDisplayDescription(string $format = 'html')
Returns the display description for this permission key (localized and escaped accordingly to $format)
static
getList($pkCategoryHandle, $filters = array())
Returns a list of all permissions of this category.
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)
static
add($pkCategoryHandle, $pkHandle, $pkName, $pkDescription, $pkCanTriggerWorkflow, $pkHasCustomClass, $pkg = false)
Adds an permission key.
at line 12
validate()
getAccessListItems()
A shortcut for grabbing the current assignment and passing into that object.