[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/policy/capability/ -> PhabricatorPolicyCapability.php (summary)

(no description)

File Size: 90 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 functions

  getCapabilityKey()
  describeCapabilityRejection()
  shouldAllowPublicPolicySetting()
  getCapabilityByKey()
  getCapabilityMap()

Functions
Functions that are not part of a class:

getCapabilityKey()   X-Ref
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.

describeCapabilityRejection()   X-Ref
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

shouldAllowPublicPolicySetting()   X-Ref
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.

getCapabilityByKey($key)   X-Ref
No description

getCapabilityMap()   X-Ref
No description



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1