Panel Configuration
- 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".
- public function getPanelMenuIcon() — Return an icon for the panel in the menu.
- abstract public function getPanelGroupKey() — Return a panel group key constant for this panel.
- 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 unavailable in this install. By default, all panels are enabled.
- public function isUserPanel() — Return true if this panel is available to users while editing their own settings.
- public function isManagementPanel() — Return true if this panel is available to administrators while managing bot and mailing list accounts.
- public function isTemplatePanel() — Return true if this panel is available while editing settings templates.
- public function isMultiFactorEnrollmentPanel() — Return true if this panel should be available when enrolling in MFA on a new account with MFA requiredd.
Panel Implementation
- 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.
Internals
- final public function getPanelOrderVector() — Generates a key to sort the list of panels.
Other Methods
- public function setUser($user)
- public function getUser()
- public function setViewer($viewer)
- public function getViewer()
- public function setOverrideURI($override_uri)
- final public function setController($controller)
- final public function getController()
- final public function setNavigation($navigation)
- final public function getNavigation()
- public function setPreferences($preferences)
- public function getPreferences()
- final public static function getAllPanels()
- final public static function getAllDisplayPanels()
- final public function getPanelGroup()
- protected function newDialog()
- protected function writeSetting($preferences, $key, $value)
- public function newBox($title, $content, $actions)