Class Permission
A permission is a simple string, that can be read with additional data (name + category) from storage.
-
Charcoal\Model\AbstractModel
-
Charcoal\User\Acl\Permission
implements
Charcoal\Object\CategorizableInterface
uses
Charcoal\Object\CategorizableTrait
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
Throws
InvalidArgumentException If the ident is not a string.
|
public
string
|
|
public
Charcoal\User\Acl\Permission
|
#
setName( mixed $name )
Parameters
- $name
- The permission name / label.
Returns
|
public
Charcoal\Translation\TranslationString
|
#
name( )
Returns
Charcoal\Translation\TranslationString
|