Changeset View
Changeset View
Standalone View
Standalone View
src/applications/search/menuitem/PhabricatorProfileMenuItem.php
<?php | <?php | ||||
abstract class PhabricatorProfileMenuItem extends Phobject { | abstract class PhabricatorProfileMenuItem extends Phobject { | ||||
private $viewer; | private $viewer; | ||||
private $engine; | private $engine; | ||||
public function getMenuItemTypeIcon() { | public function getMenuItemTypeIcon() { | ||||
return null; | return null; | ||||
} | } | ||||
abstract public function getMenuItemTypeName(); | abstract public function getMenuItemTypeName(); | ||||
abstract public function getDisplayName( | abstract public function getDisplayName( | ||||
PhabricatorProfileMenuItemConfiguration $config); | PhabricatorProfileMenuItemConfiguration $config); | ||||
▲ Show 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | if (!is_array($list)) { | ||||
'but it returned something else ("%s").', | 'but it returned something else ("%s").', | ||||
get_class($this), | get_class($this), | ||||
phutil_describe_type($list))); | phutil_describe_type($list))); | ||||
} | } | ||||
assert_instances_of($list, 'PhabricatorProfileMenuItemView'); | assert_instances_of($list, 'PhabricatorProfileMenuItemView'); | ||||
foreach ($list as $view) { | foreach ($list as $view) { | ||||
$view->setMenuItemConfiguration($config); | $view->setMenuItemConfiguration($config); | ||||
} | } | ||||
amckinley: Debugging code. | |||||
return $list; | return $list; | ||||
} | } | ||||
abstract protected function newMenuItemViewList( | abstract protected function newMenuItemViewList( | ||||
PhabricatorProfileMenuItemConfiguration $config); | PhabricatorProfileMenuItemConfiguration $config); | ||||
▲ Show 20 Lines • Show All 62 Lines • Show Last 20 Lines |
Debugging code.