final public function getCapabilityKey()
final public function getCapabilityKey()
Get the unique key identifying this capability. This key must be globally unique. Application capabilities should be namespaced. For example:
application.create
Return
string | Globally unique capability key. |
abstract public function getCapabilityName()
abstract public function getCapabilityName()
Return a human-readable descriptive name for this capability, like "Can View".
Return
string | Human-readable name describing the capability. |
public function describeCapabilityRejection()
public function describeCapabilityRejection()
Return a human-readable string describing what not having this capability prevents the user from doing. For example:
- You do not have permission to edit this object.
- You do not have permission to create new tasks.
Return
string | Human-readable name describing what failing a check for this capability prevents the user from doing. |
public function shouldAllowPublicPolicySetting()
public function shouldAllowPublicPolicySetting()
Can this capability be set to "public"? Broadly, this is only appropriate for view and view-related policies.
Return
bool | True to allow the "public" policy. Returns false by default. |
final public static function getCapabilityByKey($key)
final public static function getCapabilityByKey($key)
Parameters
$key |
Return
wild |
final public static function getCapabilityMap()
final public static function getCapabilityMap()
Return
wild |