Copied!
CloneableInstantiable
Methods
public __construct(PHPFUI\InstaDoc\Controller $controller)
public generate(PHPFUI\InstaDoc\PageInterface $page, string $fullClassPath) : PHPFUI\Container
public PHPFUI\InstaDoc\Section::getBreadCrumbs(string $object) : PHPFUI\BreadCrumbs
public PHPFUI\InstaDoc\Section::getClassBase(string $fullClassName) : string
public PHPFUI\InstaDoc\Section::getMenu(string $className, array $allowedMenus) : ?PHPFUI\Menu
 
  • param string[] $allowedMenus
public PHPFUI\InstaDoc\Section\CodeCommon::getMethodParameters(ReflectionFunction|ReflectionMethod $method, array $parameterComments = []) : string
 
  • param array<string,string> $parameterComments comments indexed by parameter name
public PHPFUI\InstaDoc\Section::getNamespaceFromClass(string $class) : string
public PHPFUI\InstaDoc\Section\CodeCommon::getValueString(?mixed $value) : string
Properties
protected PHPFUI\InstaDoc\Controller PHPFUI\InstaDoc\Section::$controller
protected phpDocumentor\Reflection\DocBlockFactory PHPFUI\InstaDoc\Section\CodeCommon::$factory
protected PHPFUI\InstaDoc\MarkDownParser PHPFUI\InstaDoc\Section\CodeCommon::$parsedown
protected PHPFUI\InstaDoc\Section\CodeCommon::$reflection = NULL
 
  • var \ReflectionClass<object> | \ReflectionEnum | \ReflectionFunction
Methods
protected PHPFUI\InstaDoc\Section\CodeCommon::formatAttribute(ReflectionAttribute $attribute) : string
 
  • param \ReflectionAttribute<object> $attribute
protected PHPFUI\InstaDoc\Section\CodeCommon::formatComments(?phpDocumentor\Reflection\DocBlock $docBlock, ReflectionMethod|ReflectionClass|?null $reflection = NULL) : string
 

Format comments without indentation

  • template T of \ReflectionClass
  • param \ReflectionMethod | \ReflectionClass<T> | null $reflection if \ReflectionClass, then grab the comments from the class header
protected getAccess(ReflectionProperty|ReflectionClassConstant $constant) : string
 
  • return string the color coded access level (public, private, protected)
protected PHPFUI\InstaDoc\Section\CodeCommon::getAttributes(?object $reflection) : array
 
  • return array<int,\ReflectionAttribute<object>>
protected PHPFUI\InstaDoc\Section\CodeCommon::getClassName(object|string $class, bool $asLink = true) : string
protected PHPFUI\InstaDoc\Section\CodeCommon::getColor(string $class, string $name) : string
 

Add a color to a thing by class

protected PHPFUI\InstaDoc\Section\CodeCommon::getComments(?phpDocumentor\Reflection\DocBlock $docBlock, ?ReflectionMethod $reflection = NULL) : string
 

Get comments indented

protected getConstant(ReflectionClassConstant $constant, string $name, ?mixed $value) : string
protected getContent(string $accessType) : PHPFUI\Table
protected PHPFUI\InstaDoc\Section\CodeCommon::getDocBlock(object $method) : ?phpDocumentor\Reflection\DocBlock
protected PHPFUI\InstaDoc\Section\CodeCommon::getHtmlClass(string $class) : string
 

Convert php class name to html class name (\ => -)

protected PHPFUI\InstaDoc\Section\CodeCommon::getInheritedDocBlock(array $tags, ReflectionMethod|ReflectionClass|?null $reflection) : array
 
  • param array<int,\phpDocumentor\Reflection\DocBlock\Tag> $tags
  • template T of \ReflectionClass
  • param \ReflectionMethod | \ReflectionClass<T> | null $reflection if \ReflectionClass, then grab the comments from the class header
  • return array<int,\phpDocumentor\Reflection\DocBlock\Tag>
protected PHPFUI\InstaDoc\Section\CodeCommon::getInheritedText(phpDocumentor\Reflection\DocBlock $docBlock, ReflectionMethod|ReflectionClass|?null $reflection = NULL, string $textType = 'getDescription') : string
 
  • template T of \ReflectionClass
  • param \ReflectionMethod | \ReflectionClass<T> | null $reflection if \ReflectionClass, then grab the comments from the class header
protected getMethod(ReflectionMethod $method) : string
protected PHPFUI\InstaDoc\Section\CodeCommon::getMethodParametersBlock(ReflectionFunction|ReflectionMethod $method) : string
protected getName(ReflectionClassConstant|ReflectionMethod|ReflectionProperty $method, string $name, bool $fullyQualify = false) : string
protected getNameScope(ReflectionProperty|ReflectionMethod|ReflectionClassConstant $method, bool $fullyQualify = false) : string
protected PHPFUI\InstaDoc\Section\CodeCommon::getParameterComments(?phpDocumentor\Reflection\DocBlock $docBlock) : array
 
  • return array<string,string>
protected getProperty(ReflectionProperty $property, ReflectionClass $class) : string
protected getRowClasses(ReflectionClassConstant|ReflectionMethod|ReflectionProperty $method) : string
protected objectCompare(object $lhs, object $rhs) : int
protected objectSort(array $objects) : void
 
  • param object[] $objects to sort
protected PHPFUI\InstaDoc\Section\CodeCommon::section(string $name) : string
Properties
private string $class
Methods
private getTraits(ReflectionClass $reflection) : array
 
  • param \ReflectionClass<object> $reflection
  • return array<string,\ReflectionClass<object>> array of traits for the entire inheritance tree, not just the current class
© 2023 Bruce Wells
Search Namespaces \ Classes
Configuration