PHP_UML
[ class tree: PHP_UML ] [ index: PHP_UML ] [ all elements ]

Class: PHP_UML_Output_HtmlNew_DocElement

Source Location: /PHP_UML-1.6.2/UML/Output/HtmlNew/DocElement.php

Class Overview

PHP_UML_Output_ApiRenderer
   |
   --PHP_UML_Output_HtmlNew_DocElement

General class for an renderer in the HtmlNew implementation


Author(s):

Methods


Child classes:

PHP_UML_Output_HtmlNew_DocMenu
Implementation of the HTML renderer for the treeview menu (on the left panel)
PHP_UML_Output_HtmlNew_DocResources
Rendering of the resources
PHP_UML_Output_HtmlNew_DocClassifier
Implementation of the HTML renderer for a classifier (class, interface, datatype)
PHP_UML_Output_HtmlNew_DocPackage
Implementation of the HTML renderer for a Package

Inherited Variables

Inherited Methods

Class: PHP_UML_Output_ApiRenderer

PHP_UML_Output_ApiRenderer::__construct()
Constructor for an ApiRenderer.
PHP_UML_Output_ApiRenderer::displayUnresolved()
Renders an unresolved type
PHP_UML_Output_ApiRenderer::generateFunctionId()
Returns an ID to identify a function
PHP_UML_Output_ApiRenderer::generatePropertyId()
Returns an ID for a property
PHP_UML_Output_ApiRenderer::getAbsPath()
Returns the path from the top package to a given package
PHP_UML_Output_ApiRenderer::getAllImplemented()
Returns the array containing all the interfaces of a classifier
PHP_UML_Output_ApiRenderer::getAllImplementing()
Returns the array containing all the classes that implement a given interface
PHP_UML_Output_ApiRenderer::getAllInherited()
Returns the array containing all the extended classes of a classifier This array must have been previously set in the Context object
PHP_UML_Output_ApiRenderer::getAllInheriting()
Returns the array containing all the classes that extends a classifier
PHP_UML_Output_ApiRenderer::getContextPackage()
Return the current ApiContextPackage object
PHP_UML_Output_ApiRenderer::getDefaultValue()
Renders a default value
PHP_UML_Output_ApiRenderer::getDescription()
PHP_UML_Output_ApiRenderer::getFileInfo()
Renders the "File" information tag
PHP_UML_Output_ApiRenderer::getFunctionBlock()
Renders the block "Function" of a package or a classifier
PHP_UML_Output_ApiRenderer::getObjPrefix()
PHP_UML_Output_ApiRenderer::getObjStyle()
PHP_UML_Output_ApiRenderer::getParameterList()
Renders the operation's parameters
PHP_UML_Output_ApiRenderer::getPropertyBlock()
Renders the block "Properties" of a package or a class
PHP_UML_Output_ApiRenderer::getQualifiedName()
Returns the complete namespace for an element
PHP_UML_Output_ApiRenderer::getReturnParam()
Returns the return parameter of a function
PHP_UML_Output_ApiRenderer::getTagsAsList()
Renders the properties of a given stereotype
PHP_UML_Output_ApiRenderer::getTemplate()
Returns the content of a template file
PHP_UML_Output_ApiRenderer::render()
Render globally a package
PHP_UML_Output_ApiRenderer::replaceInTpl()
Replace the template's placeholders with their value
PHP_UML_Output_ApiRenderer::save()
Saves a string in a file (in the folder referenced in the context object)

Class Details

[line 26]
General class for an renderer in the HtmlNew implementation


[ Top ]


Method Detail

displayUnresolved   [line 128]

string displayUnresolved( string $type)

Renders an unresolved type as an HTML span
  • Access: protected

Overrides PHP_UML_Output_ApiRenderer::displayUnresolved() (Renders an unresolved type)

Parameters:

string   $type   —  Type, provided as a string

[ Top ]

__construct (Constructor)   [line 43]

PHP_UML_Output_HtmlNew_DocElement __construct( PHP_UML_Output_ExporterAPI $exporter)

Constructor
  • Access: public

Overrides PHP_UML_Output_ApiRenderer::__construct() (Constructor for an ApiRenderer.)

Parameters:

PHP_UML_Output_ExporterAPI   $exporter   —  Reference to an exporter

[ Top ]

getCommonLinks   [line 290]

string getCommonLinks( )

Returns the HTML code for the common items of the navigation bar
  • Access: protected

[ Top ]

getDefaultValue   [line 91]

void getDefaultValue( PHP_UML_Metamodel_TypedElement $obj)

  • Access: protected

Overrides PHP_UML_Output_ApiRenderer::getDefaultValue() (Renders a default value)

Parameters:

PHP_UML_Metamodel_TypedElement   $obj   — 

[ Top ]

getDescription   [line 49]

void getDescription( PHP_UML_Metamodel_Stereotype $s, [ $annotatedElement = ''])

  • Access: protected

Overrides PHP_UML_Output_ApiRenderer::getDescription() (parent method not documented)

Parameters:

PHP_UML_Metamodel_Stereotype   $s   — 
   $annotatedElement   — 

[ Top ]

getFileInfo   [line 304]

string getFileInfo( PHP_UML_Metamodel_NamedElement $p)

Returns the HTML code for the "File" information tag
  • Access: protected

Overrides PHP_UML_Output_ApiRenderer::getFileInfo() (Renders the "File" information tag)

Parameters:

PHP_UML_Metamodel_NamedElement   $p   —  An element

[ Top ]

getFunctionBlock   [line 212]

string getFunctionBlock( PHP_UML_Metamodel_NamedElement $p)

Renders the block "Function" of a package or a classifier as HTML
  • Access: protected

Overrides PHP_UML_Output_ApiRenderer::getFunctionBlock() (Renders the block "Function" of a package or a classifier)

Parameters:

PHP_UML_Metamodel_NamedElement   $p   —  A classifier or a package

[ Top ]

getFunctionStyle   [line 317]

void getFunctionStyle( $visibility)

  • Access: protected

Overridden in child classes as:

PHP_UML_Output_HtmlNew_DocPackage::getFunctionStyle()

Parameters:

   $visibility   — 

[ Top ]

getLinkTo   [line 109]

string getLinkTo( PHP_UML_Metamodel_Classifier $t, [string $cssStyle = 'link'])

Renders a HTML hyperlink towards a given element (since datatypes don't own to a "package", we suppose they are located in the top package)
  • Access: protected

Parameters:

PHP_UML_Metamodel_Classifier   $t   —  The element
string   $cssStyle   —  CSS style to use

[ Top ]

getNavigParentPackage   [line 280]

string getNavigParentPackage( [string $rel = ''])

Returns the HTML for the link "Package" in the navigation bar
  • Access: protected

Parameters:

string   $rel   —  A prefix to add to the hyperlink (eg: ../)

[ Top ]

getParameterList   [line 66]

string getParameterList( PHP_UML_Metamodel_Operation $operation, [bool $withType = false])

Renders the operation's parameters, as a comma-sep list, between brackets
  • Access: protected

Overrides PHP_UML_Output_ApiRenderer::getParameterList() (Renders the operation's parameters)

Parameters:

PHP_UML_Metamodel_Operation   $operation   —  The operation
bool   $withType   —  If true, adds an hyperlink

[ Top ]

getPropertyBlock   [line 169]

string getPropertyBlock( PHP_UML_Metamodel_NamedElement $p)

Renders the block "Properties" of a package or a class as HTML
  • Access: protected

Overrides PHP_UML_Output_ApiRenderer::getPropertyBlock() (Renders the block "Properties" of a package or a class)

Parameters:

PHP_UML_Metamodel_NamedElement   $p   —  A classifier/a package

[ Top ]

getPropertyStyle   [line 312]

void getPropertyStyle( $visibility)

  • Access: protected

Overridden in child classes as:

PHP_UML_Output_HtmlNew_DocPackage::getPropertyStyle()

Parameters:

   $visibility   — 

[ Top ]

getTagsAsList   [line 142]

string getTagsAsList( PHP_UML_Metamodel_Stereotype $s)

Renders the properties of a given stereotype as an HTML list (LI tags).

Docblocks in $ignoredTag are not shown, as well as "return" tag with only a type

  • Access: protected

Overrides PHP_UML_Output_ApiRenderer::getTagsAsList() (Renders the properties of a given stereotype)

Parameters:

PHP_UML_Metamodel_Stereotype   $s   —  A stereotype

[ Top ]

getTemplateDirectory   [line 343]

void getTemplateDirectory( )

  • Access: protected

[ Top ]

replaceInTpl   [line 332]

string replaceInTpl( string $main, string $nav, string $tit, string $name)

Replace the template's placeholders with their value
  • Access: protected

Overrides PHP_UML_Output_ApiRenderer::replaceInTpl() (Replace the template's placeholders with their value)

Parameters:

string   $main   —  Main HTML content (generated by PHP_UML)
string   $nav   —  Navigation HTML content (navig bar)
string   $tit   —  Title content
string   $name   —  Element name

[ Top ]

save   [line 348]

void save( $elementName, $str)

  • Access: protected

Overrides PHP_UML_Output_ApiRenderer::save() (Saves a string in a file (in the folder referenced in the context object))

Parameters:

   $elementName   — 
   $str   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 16:01:22 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.