Overview

Namespaces

  • Charcoal
    • Object
    • User
      • Acl

Classes

  • Manager
  • Permission
  • PermissionCategory
  • Role
  • Overview
  • Namespace
  • Class

Class Permission

A permission is a simple string, that can be read with additional data (name + category) from storage.

Charcoal\Model\AbstractModel
Extended by Charcoal\User\Acl\Permission implements Charcoal\Object\CategorizableInterface uses Charcoal\Object\CategorizableTrait
Namespace: Charcoal\User\Acl
Located at Charcoal/User/Acl/Permission.php
Methods summary
public string
# __toString( )

Permission can be used as a string (ident).

Permission can be used as a string (ident).

Returns

string
public Charcoal\User\Acl\Permission
# setIdent( string $ident )

Parameters

$ident
The permission identifier.

Returns

Charcoal\User\Acl\Permission
Chainable

Throws

InvalidArgumentException
If the ident is not a string.
public string
# ident( )

Returns

string
public Charcoal\User\Acl\Permission
# setName( mixed $name )

Parameters

$name
The permission name / label.

Returns

Charcoal\User\Acl\Permission
Chainable
public Charcoal\Translation\TranslationString
# name( )

Returns

Charcoal\Translation\TranslationString
Methods inherited from Charcoal\Object\CategorizableInterface
category(), categoryType(), setCategory(), setCategoryType()
Methods used from Charcoal\Object\CategorizableTrait
category(), categoryType(), setCategory(), setCategoryType()
Properties used from Charcoal\Object\CategorizableTrait
$category
API documentation generated by ApiGen