Changeset View
Changeset View
Standalone View
Standalone View
src/applications/base/PhabricatorApplication.php
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Lines | /* -( UI Integration )----------------------------------------------------- */ | ||||
*/ | */ | ||||
public function buildMainMenuItems( | public function buildMainMenuItems( | ||||
PhabricatorUser $user, | PhabricatorUser $user, | ||||
PhabricatorController $controller = null) { | PhabricatorController $controller = null) { | ||||
return array(); | return array(); | ||||
} | } | ||||
/** | |||||
* Build extra items for the main menu. Generally, this is used to render | |||||
* static dropdowns. | |||||
* | |||||
* @param PhabricatorUser The viewing user. | |||||
* @param AphrontController The current controller. May be null for special | |||||
* pages like 404, exception handlers, etc. | |||||
* @return view List of menu items. | |||||
* @task ui | |||||
*/ | |||||
public function buildMainMenuExtraNodes( | |||||
PhabricatorUser $viewer, | |||||
PhabricatorController $controller = null) { | |||||
return array(); | |||||
} | |||||
/* -( Application Management )--------------------------------------------- */ | /* -( Application Management )--------------------------------------------- */ | ||||
final public static function getByClass($class_name) { | final public static function getByClass($class_name) { | ||||
$selected = null; | $selected = null; | ||||
$applications = self::getAllApplications(); | $applications = self::getAllApplications(); | ||||
foreach ($applications as $application) { | foreach ($applications as $application) { | ||||
▲ Show 20 Lines • Show All 303 Lines • Show Last 20 Lines |