pht('Diviner User Guide'), 'href' => PhabricatorEnv::getDoclink('Diviner User Guide'), ), ); } public function getTitleGlyph() { return "\xE2\x97\x89"; } public function getRoutes() { return array( '/diviner/' => array( '' => 'DivinerMainController', 'query/((?[^/]+)/)?' => 'DivinerAtomListController', 'find/' => 'DivinerFindController', ), '/book/(?P[^/]+)/' => 'DivinerBookController', '/book/(?P[^/]+)/edit/' => 'DivinerBookEditController', '/book/'. '(?P[^/]+)/'. '(?P[^/]+)/'. '(?:(?P[^/]+)/)?'. '(?P[^/]+)/'. '(?:(?P\d+)/)?' => 'DivinerAtomController', ); } public function getApplicationGroup() { return self::GROUP_UTILITIES; } protected function getCustomCapabilities() { return array( DivinerDefaultViewCapability::CAPABILITY => array( 'template' => DivinerBookPHIDType::TYPECONST, ), DivinerDefaultEditCapability::CAPABILITY => array( 'default' => PhabricatorPolicies::POLICY_ADMIN, 'template' => DivinerBookPHIDType::TYPECONST, ), ); } public function getRemarkupRules() { return array( new DivinerSymbolRemarkupRule(), ); } public function getApplicationSearchDocumentTypes() { return array( DivinerAtomPHIDType::TYPECONST, DivinerBookPHIDType::TYPECONST, ); } }