Changeset View
Changeset View
Standalone View
Standalone View
src/applications/base/PhabricatorApplication.php
<?php | <?php | ||||
/** | /** | ||||
* @task info Application Information | * @task info Application Information | ||||
* @task ui UI Integration | * @task ui UI Integration | ||||
* @task uri URI Routing | * @task uri URI Routing | ||||
* @task mail Email integration | * @task mail Email integration | ||||
* @task fact Fact Integration | * @task fact Fact Integration | ||||
* @task meta Application Management | * @task meta Application Management | ||||
*/ | */ | ||||
abstract class PhabricatorApplication | abstract class PhabricatorApplication | ||||
extends Phobject | extends Phobject | ||||
implements PhabricatorPolicyInterface { | implements PhabricatorPolicyInterface { | ||||
const MAX_STATUS_ITEMS = 100; | |||||
const GROUP_CORE = 'core'; | const GROUP_CORE = 'core'; | ||||
const GROUP_UTILITIES = 'util'; | const GROUP_UTILITIES = 'util'; | ||||
const GROUP_ADMIN = 'admin'; | const GROUP_ADMIN = 'admin'; | ||||
const GROUP_DEVELOPER = 'developer'; | const GROUP_DEVELOPER = 'developer'; | ||||
final public static function getApplicationGroups() { | final public static function getApplicationGroups() { | ||||
return array( | return array( | ||||
self::GROUP_CORE => pht('Core Applications'), | self::GROUP_CORE => pht('Core Applications'), | ||||
▲ Show 20 Lines • Show All 243 Lines • ▼ Show 20 Lines | public function getFactObjectsForAnalysis() { | ||||
return array(); | return array(); | ||||
} | } | ||||
/* -( UI Integration )----------------------------------------------------- */ | /* -( UI Integration )----------------------------------------------------- */ | ||||
/** | /** | ||||
* Render status elements (like "3 Waiting Reviews") for application list | |||||
* views. These provide a way to alert users to new or pending action items | |||||
* in applications. | |||||
* | |||||
* @param PhabricatorUser Viewing user. | |||||
* @return list<PhabricatorApplicationStatusView> Application status elements. | |||||
* @task ui | |||||
*/ | |||||
public function loadStatus(PhabricatorUser $user) { | |||||
return array(); | |||||
} | |||||
/** | |||||
* You can provide an optional piece of flavor text for the application. This | * You can provide an optional piece of flavor text for the application. This | ||||
* is currently rendered in application launch views if the application has no | * is currently rendered in application launch views if the application has no | ||||
* status elements. | * status elements. | ||||
* | * | ||||
* @return string|null Flavor text. | * @return string|null Flavor text. | ||||
* @task ui | * @task ui | ||||
*/ | */ | ||||
public function getFlavorText() { | public function getFlavorText() { | ||||
▲ Show 20 Lines • Show All 348 Lines • Show Last 20 Lines |