Ejemplo n.º 1
0
 /**
  * Sorts functions by FQN.
  *
  * @param \ApiGen\ReflectionProperty $one
  * @param \ApiGen\ReflectionProperty $two
  *
  * @return integer
  */
 private function sortProperties(ReflectionProperty $one, ReflectionProperty $two)
 {
     return strcasecmp($one->getDeclaringClassName() . '::' . $one->getName(), $two->getDeclaringClassName() . '::' . $two->getName());
 }
Ejemplo n.º 2
0
 /**
  * Returns a link to property in class summary file.
  *
  * @param \ApiGen\ReflectionProperty $property Property reflection
  * @param \ApiGen\ReflectionClass    $class    Property declaring class
  *
  * @return string
  */
 public function getPropertyUrl(ReflectionProperty $property, ReflectionClass $class = null)
 {
     $className = null !== $class ? $class->getName() : $property->getDeclaringClassName();
     return $this->getClassUrl($className) . '#' . ($property->isMagic() ? 'm' : '') . '$' . $property->getName();
 }