コード例 #1
0
 /**
  * Returns the first part of the URL path that is specific to global constants.
  *
  * @param Descriptor\ConstantDescriptor $node
  *
  * @return string
  */
 private function getUrlPathPrefixForGlobalConstants($node)
 {
     return '/namespaces/' . $this->converter->fromNamespace($node->getNamespace());
 }
コード例 #2
0
 /**
  * Generates a URL from the given node or returns false if unable.
  *
  * @param string|Descriptor\FunctionDescriptor $node
  *
  * @return string|false
  */
 public function __invoke($node)
 {
     $converter = new QualifiedNameToUrlConverter();
     return '/namespaces/' . $converter->fromNamespace($node->getNamespace()) . '.html#function_' . $node->getName();
 }
コード例 #3
0
 /**
  * Generates a URL from the given node or returns false if unable.
  *
  * @param string|Descriptor\NamespaceDescriptor $node
  *
  * @return string|false
  */
 public function __invoke($node)
 {
     $converter = new QualifiedNameToUrlConverter();
     return '/namespaces/' . $converter->fromNamespace($node->getFullyQualifiedStructuralElementName()) . '.html';
 }