Page MenuHomenazrin ltd
Diviner Tech Docs AphrontSideNavFilterView

final class AphrontSideNavFilterView
Phorge Technical Documentation ()

Provides a navigation sidebar. For example:

$nav = new AphrontSideNavFilterView();
$nav
  ->setBaseURI($some_uri)
  ->addLabel('Cats')
  ->addFilter('meow', 'Meow')
  ->addFilter('purr', 'Purr')
  ->addLabel('Dogs')
  ->addFilter('woof', 'Woof')
  ->addFilter('bark', 'Bark');
$valid_filter = $nav->selectFilter($user_selection, $default = 'meow');

Methods

public function setMenuID($menu_id)

This method is not documented.
Parameters
$menu_id
Return
wild

public function getMenuID()

This method is not documented.
Return
wild

public function __construct()

This method is not documented.
Return
this//Implicit.//

public function addClass($class)

This method is not documented.
Parameters
$class
Return
wild

public function setCrumbs($crumbs)

This method is not documented.
Parameters
PHUICrumbsView$crumbs
Return
wild

public function getCrumbs()

This method is not documented.
Return
wild

public function setIsProfileMenu($is_profile)

This method is not documented.
Parameters
$is_profile
Return
wild

public function getIsProfileMenu()

This method is not documented.
Return
wild

public function getMenuView()

This method is not documented.
Return
wild

public function addMenuItem($item)

This method is not documented.
Parameters
PHUIListItemView$item
Return
wild

public function getMenu()

This method is not documented.
Return
wild

public function addFilter($key, $name, $uri, $icon)

This method is not documented.
Parameters
$key
$name
$uri
$icon
Return
wild

public function addButton($key, $name, $uri)

This method is not documented.
Parameters
$key
$name
$uri
Return
wild

public function newLink($key)

This method is not documented.
Parameters
$key
Return
wild

private function addThing($key, $name, $uri, $type, $icon)

Add a thing in the menu

Parameters
string$keyInternal name
string$nameHuman name
mixed$uriDestination URI. For example as string or as PhutilURI.
string$typeItem type. For example see PHUIListItemView constants.
string$iconIcon name
Return
wild

public function addCustomBlock($block)

This method is not documented.
Parameters
$block
Return
wild

public function addLabel($name)

This method is not documented.
Parameters
$name
Return
wild

public function setBaseURI($uri)

This method is not documented.
Parameters
PhutilURI$uri
Return
wild

public function getBaseURI()

This method is not documented.
Return
wild

public function selectFilter($key, $default)

This method is not documented.
Parameters
$key
$default
Return
wild

public function getSelectedFilter()

This method is not documented.
Return
wild

public function appendFooter($footer)

This method is not documented.
Parameters
$footer
Return
wild

public function getMainID()

This method is not documented.
Return
wild

public function render()

This method is not documented.
Return
wild

private function renderFlexNav()

This method is not documented.
Return
wild