/** * Sorts functions by FQN. * * @param \ApiGen\Reflection\ReflectionProperty $one * @param \ApiGen\Reflection\ReflectionProperty $two * @return integer */ private function sortProperties(Reflection\ReflectionProperty $one, Reflection\ReflectionProperty $two) { return strcasecmp($one->getDeclaringClassName() . '::' . $one->getName(), $two->getDeclaringClassName() . '::' . $two->getName()); }
/** * Returns a link to property in class summary file. * * @param \ApiGen\Reflection\ReflectionProperty $property Property reflection * @param \ApiGen\Reflection\ReflectionClass $class Property declaring class * @return string */ public function getPropertyUrl(Reflection\ReflectionProperty $property, Reflection\ReflectionClass $class = null) { $className = null !== $class ? $class->getName() : $property->getDeclaringClassName(); return $this->getClassUrl($className) . '#' . ($property->isMagic() ? 'm' : '') . '$' . $property->getName(); }
/** * @return string */ private function createForProperty(ReflectionProperty $reflectionProperty, array $classes) { $text = $reflectionProperty->getDeclaringClassName() . '::' . Html::el('var')->setText('$' . $reflectionProperty->getName()); return $this->linkBuilder->build($this->elementUrlFactory->createForProperty($reflectionProperty), $text, FALSE, $classes); }
/** * @return string */ public function createForProperty(ReflectionProperty $property, ReflectionClass $class = NULL) { $className = $class !== NULL ? $class->getName() : $property->getDeclaringClassName(); return $this->createForClass($className) . '#' . ($property->isMagic() ? 'm' : '') . '$' . $property->getName(); }