File tree 27 files changed +132
-252
lines changed
27 files changed +132
-252
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ private function getDefaultName() {
13
13
return pht ('More Applications ' );
14
14
}
15
15
16
+ public function getDisplayName (
17
+ PhabricatorProfileMenuItemConfiguration $ config ) {
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
20
+ }
21
+
16
22
public function getMenuItemTypeIcon () {
17
23
return 'fa-ellipsis-h ' ;
18
24
}
@@ -27,17 +33,6 @@ public function canMakeDefault(
27
33
return false ;
28
34
}
29
35
30
- public function getDisplayName (
31
- PhabricatorProfileMenuItemConfiguration $ config ) {
32
- $ name = $ config ->getMenuItemProperty ('name ' );
33
-
34
- if (strlen ($ name )) {
35
- return $ name ;
36
- }
37
-
38
- return $ this ->getDefaultName ();
39
- }
40
-
41
36
public function buildEditEngineFields (
42
37
PhabricatorProfileMenuItemConfiguration $ config ) {
43
38
return array (
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ private function getDefaultName() {
13
13
return pht ('Home ' );
14
14
}
15
15
16
+ public function getDisplayName (
17
+ PhabricatorProfileMenuItemConfiguration $ config ) {
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
20
+ }
21
+
16
22
public function getMenuItemTypeIcon () {
17
23
return 'fa-home ' ;
18
24
}
@@ -22,17 +28,6 @@ public function canMakeDefault(
22
28
return true ;
23
29
}
24
30
25
- public function getDisplayName (
26
- PhabricatorProfileMenuItemConfiguration $ config ) {
27
- $ name = $ config ->getMenuItemProperty ('name ' );
28
-
29
- if (strlen ($ name )) {
30
- return $ name ;
31
- }
32
-
33
- return $ this ->getDefaultName ();
34
- }
35
-
36
31
public function newPageContent (
37
32
PhabricatorProfileMenuItemConfiguration $ config ) {
38
33
$ viewer = $ this ->getViewer ();
Original file line number Diff line number Diff line change @@ -13,20 +13,15 @@ private function getDefaultName() {
13
13
return pht ('Badges ' );
14
14
}
15
15
16
- public function canHideMenuItem (
16
+ public function getDisplayName (
17
17
PhabricatorProfileMenuItemConfiguration $ config ) {
18
- return true ;
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
19
20
}
20
21
21
- public function getDisplayName (
22
+ public function canHideMenuItem (
22
23
PhabricatorProfileMenuItemConfiguration $ config ) {
23
- $ name = $ config ->getMenuItemProperty ('name ' );
24
-
25
- if (strlen ($ name )) {
26
- return $ name ;
27
- }
28
-
29
- return $ this ->getDefaultName ();
24
+ return true ;
30
25
}
31
26
32
27
public function buildEditEngineFields (
Original file line number Diff line number Diff line change @@ -13,20 +13,15 @@ private function getDefaultName() {
13
13
return pht ('Commits ' );
14
14
}
15
15
16
- public function canHideMenuItem (
16
+ public function getDisplayName (
17
17
PhabricatorProfileMenuItemConfiguration $ config ) {
18
- return true ;
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
19
20
}
20
21
21
- public function getDisplayName (
22
+ public function canHideMenuItem (
22
23
PhabricatorProfileMenuItemConfiguration $ config ) {
23
- $ name = $ config ->getMenuItemProperty ('name ' );
24
-
25
- if (strlen ($ name )) {
26
- return $ name ;
27
- }
28
-
29
- return $ this ->getDefaultName ();
24
+ return true ;
30
25
}
31
26
32
27
public function buildEditEngineFields (
Original file line number Diff line number Diff line change @@ -15,13 +15,8 @@ private function getDefaultName() {
15
15
16
16
public function getDisplayName (
17
17
PhabricatorProfileMenuItemConfiguration $ config ) {
18
- $ name = $ config ->getMenuItemProperty ('name ' );
19
-
20
- if (strlen ($ name )) {
21
- return $ name ;
22
- }
23
-
24
- return $ this ->getDefaultName ();
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
25
20
}
26
21
27
22
public function buildEditEngineFields (
Original file line number Diff line number Diff line change @@ -13,20 +13,15 @@ private function getDefaultName() {
13
13
return pht ('Manage ' );
14
14
}
15
15
16
- public function canHideMenuItem (
16
+ public function getDisplayName (
17
17
PhabricatorProfileMenuItemConfiguration $ config ) {
18
- return false ;
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
19
20
}
20
21
21
- public function getDisplayName (
22
+ public function canHideMenuItem (
22
23
PhabricatorProfileMenuItemConfiguration $ config ) {
23
- $ name = $ config ->getMenuItemProperty ('name ' );
24
-
25
- if (strlen ($ name )) {
26
- return $ name ;
27
- }
28
-
29
- return $ this ->getDefaultName ();
24
+ return false ;
30
25
}
31
26
32
27
public function buildEditEngineFields (
Original file line number Diff line number Diff line change @@ -13,14 +13,14 @@ private function getDefaultName() {
13
13
return pht ('User Picture ' );
14
14
}
15
15
16
- public function canHideMenuItem (
16
+ public function getDisplayName (
17
17
PhabricatorProfileMenuItemConfiguration $ config ) {
18
- return false ;
18
+ return $ this -> getDefaultName () ;
19
19
}
20
20
21
- public function getDisplayName (
21
+ public function canHideMenuItem (
22
22
PhabricatorProfileMenuItemConfiguration $ config ) {
23
- return $ this -> getDefaultName () ;
23
+ return false ;
24
24
}
25
25
26
26
public function buildEditEngineFields (
Original file line number Diff line number Diff line change @@ -13,20 +13,15 @@ private function getDefaultName() {
13
13
return pht ('Revisions ' );
14
14
}
15
15
16
- public function canHideMenuItem (
16
+ public function getDisplayName (
17
17
PhabricatorProfileMenuItemConfiguration $ config ) {
18
- return true ;
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
19
20
}
20
21
21
- public function getDisplayName (
22
+ public function canHideMenuItem (
22
23
PhabricatorProfileMenuItemConfiguration $ config ) {
23
- $ name = $ config ->getMenuItemProperty ('name ' );
24
-
25
- if (strlen ($ name )) {
26
- return $ name ;
27
- }
28
-
29
- return $ this ->getDefaultName ();
24
+ return true ;
30
25
}
31
26
32
27
public function buildEditEngineFields (
Original file line number Diff line number Diff line change @@ -13,20 +13,15 @@ private function getDefaultName() {
13
13
return pht ('Tasks ' );
14
14
}
15
15
16
- public function canHideMenuItem (
16
+ public function getDisplayName (
17
17
PhabricatorProfileMenuItemConfiguration $ config ) {
18
- return true ;
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
19
20
}
20
21
21
- public function getDisplayName (
22
+ public function canHideMenuItem (
22
23
PhabricatorProfileMenuItemConfiguration $ config ) {
23
- $ name = $ config ->getMenuItemProperty ('name ' );
24
-
25
- if (strlen ($ name )) {
26
- return $ name ;
27
- }
28
-
29
- return $ this ->getDefaultName ();
24
+ return true ;
30
25
}
31
26
32
27
public function buildEditEngineFields (
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ private function getDefaultName() {
13
13
return pht ('Project Details ' );
14
14
}
15
15
16
+ public function getDisplayName (
17
+ PhabricatorProfileMenuItemConfiguration $ config ) {
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
20
+ }
21
+
16
22
public function getMenuItemTypeIcon () {
17
23
return 'fa-file-text-o ' ;
18
24
}
@@ -27,17 +33,6 @@ public function canMakeDefault(
27
33
return true ;
28
34
}
29
35
30
- public function getDisplayName (
31
- PhabricatorProfileMenuItemConfiguration $ config ) {
32
- $ name = $ config ->getMenuItemProperty ('name ' );
33
-
34
- if (strlen ($ name )) {
35
- return $ name ;
36
- }
37
-
38
- return $ this ->getDefaultName ();
39
- }
40
-
41
36
public function buildEditEngineFields (
42
37
PhabricatorProfileMenuItemConfiguration $ config ) {
43
38
return array (
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ private function getDefaultName() {
13
13
return pht ('Manage ' );
14
14
}
15
15
16
+ public function getDisplayName (
17
+ PhabricatorProfileMenuItemConfiguration $ config ) {
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
20
+ }
21
+
16
22
public function getMenuItemTypeIcon () {
17
23
return 'fa-cog ' ;
18
24
}
@@ -27,17 +33,6 @@ public function canMakeDefault(
27
33
return true ;
28
34
}
29
35
30
- public function getDisplayName (
31
- PhabricatorProfileMenuItemConfiguration $ config ) {
32
- $ name = $ config ->getMenuItemProperty ('name ' );
33
-
34
- if (strlen ($ name )) {
35
- return $ name ;
36
- }
37
-
38
- return $ this ->getDefaultName ();
39
- }
40
-
41
36
public function buildEditEngineFields (
42
37
PhabricatorProfileMenuItemConfiguration $ config ) {
43
38
return array (
Original file line number Diff line number Diff line change @@ -13,19 +13,14 @@ private function getDefaultName() {
13
13
return pht ('Members ' );
14
14
}
15
15
16
- public function getMenuItemTypeIcon () {
17
- return 'fa-users ' ;
18
- }
19
-
20
16
public function getDisplayName (
21
17
PhabricatorProfileMenuItemConfiguration $ config ) {
22
- $ name = $ config ->getMenuItemProperty ('name ' );
23
-
24
- if (strlen ($ name )) {
25
- return $ name ;
26
- }
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
20
+ }
27
21
28
- return $ this ->getDefaultName ();
22
+ public function getMenuItemTypeIcon () {
23
+ return 'fa-users ' ;
29
24
}
30
25
31
26
public function buildEditEngineFields (
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ private function getDefaultName() {
13
13
return pht ('Project Picture ' );
14
14
}
15
15
16
+ public function getDisplayName (
17
+ PhabricatorProfileMenuItemConfiguration $ config ) {
18
+ return $ this ->getDefaultName ();
19
+ }
20
+
16
21
public function getMenuItemTypeIcon () {
17
22
return 'fa-image ' ;
18
23
}
@@ -22,11 +27,6 @@ public function canHideMenuItem(
22
27
return false ;
23
28
}
24
29
25
- public function getDisplayName (
26
- PhabricatorProfileMenuItemConfiguration $ config ) {
27
- return $ this ->getDefaultName ();
28
- }
29
-
30
30
public function buildEditEngineFields (
31
31
PhabricatorProfileMenuItemConfiguration $ config ) {
32
32
return array ();
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ private function getDefaultName() {
13
13
return pht ('Points Bar ' );
14
14
}
15
15
16
+ public function getDisplayName (
17
+ PhabricatorProfileMenuItemConfiguration $ config ) {
18
+ return $ this ->getDefaultName ();
19
+ }
20
+
16
21
public function shouldEnableForObject ($ object ) {
17
22
$ viewer = $ this ->getViewer ();
18
23
@@ -35,11 +40,6 @@ public function shouldEnableForObject($object) {
35
40
return true ;
36
41
}
37
42
38
- public function getDisplayName (
39
- PhabricatorProfileMenuItemConfiguration $ config ) {
40
- return $ this ->getDefaultName ();
41
- }
42
-
43
43
public function buildEditEngineFields (
44
44
PhabricatorProfileMenuItemConfiguration $ config ) {
45
45
return array (
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ private function getDefaultName() {
13
13
return pht ('Reports (Prototype) ' );
14
14
}
15
15
16
+ public function getDisplayName (
17
+ PhabricatorProfileMenuItemConfiguration $ config ) {
18
+ $ default = $ this ->getDefaultName ();
19
+ return $ this ->getNameFromConfig ($ config , $ default );
20
+ }
21
+
16
22
public function getMenuItemTypeIcon () {
17
23
return 'fa-area-chart ' ;
18
24
}
@@ -42,17 +48,6 @@ public function shouldEnableForObject($object) {
42
48
return true ;
43
49
}
44
50
45
- public function getDisplayName (
46
- PhabricatorProfileMenuItemConfiguration $ config ) {
47
- $ name = $ config ->getMenuItemProperty ('name ' );
48
-
49
- if (strlen ($ name )) {
50
- return $ name ;
51
- }
52
-
53
- return $ this ->getDefaultName ();
54
- }
55
-
56
51
public function buildEditEngineFields (
57
52
PhabricatorProfileMenuItemConfiguration $ config ) {
58
53
return array (
You can’t perform that action at this time.
0 commit comments