- abstract public function getPanelKey() — Return a unique string used in the URI to identify this panel, like
"example".
- abstract public function getPanelName() — Return a human-readable description of the panel's contents, like
"Example Settings".
- abstract public function getPanelGroup() — Return a human-readable group name for this panel. For instance, if you
had several related panels like "Volume Settings" and
"Microphone Settings", you might put them in a group called "Audio".
- public function isEnabled() — Return false to prevent this panel from being displayed or used. You can
do, e.g., configuration checks here, to determine if the feature your
panel controls is unavailble in this install. By default, all panels are
enabled.
- public function buildPanels() — You can use this callback to generate multiple similar panels which all
share the same implementation. For example, OAuth providers each have a
separate panel, but the implementation for each panel is the same.
- public function isEditableByAdministrators() — Return true if this panel is available to administrators while editing
system agent accounts.
- abstract public function processRequest($request) — Process a user request for this settings panel. Implement this method like
a lightweight controller. If you return an @{class:AphrontResponse}, the
response will be used in whole. If you return anything else, it will be
treated as a view and composed into a normal settings page.
- final public function getPanelURI($path) — Get the URI for this panel.
- final public function getPanelSortKey() — Generates a key to sort the list of panels.
This method is not documented.
This method is not documented.
This method is not documented.
This method is not documented.
This method is not documented.
| string | Unique panel identifier (used in URIs). |
| string | Human-readable panel name. |
| string | Human-readable panel group name. |
| bool | True if the panel should be shown. |
| list<PhabricatorSettingsPanel> | Zero or more panels. |
| bool | True to enable edit by administrators. |
| AphrontRequest | $request | Incoming request. |
| wild | Response to request, either as an @{class:AphrontResponse} or something which can be composed into a @{class:AphrontView}. |
| string? | $path | Optional path to append. |
| string | Relative URI for the panel. |
Copyright © LEAD Solutions B.V.