$base_dir =
[line 88]
target directory passed on the command-line.
$targetDir is malleable, always adding package/ and package/subpackage/ subdirectories onto it.
$class_dir =
[line 94]
output directory for the current class being processed
$current =
[line 119]
contains all of the template procedural page element loop data needed for the current template
$currentclass =
[line 125]
contains all of the template class element loop data needed for the current template
$juststarted = false
[line 113]
controls formatting of parser informative output
Converter prints: "Converting /path/to/file.php... Procedural Page Elements... Classes..." Since HTMLdefaultConverter outputs files while converting, it needs to send a \n to start a new line. However, if there is more than one class, output is messy, with multiple \n's just between class file output. This variable prevents that and is purely cosmetic
$leftindex = array('classes' => true, 'pages' => true, 'functions' => true, 'defines' => false, 'globals' => false)
[line 75]
indexes of elements by package that need to be generated
Type:
array
Overrides:
Array
$name = 'frames'
[line 70]
$outputformat = 'HTML'
[line 68]
Type:
string
Overrides:
Array
$package_pages = array()
[line 101]
array of converted package page names.
Used to link to the package page in the left index
Tags:
var: Format: array(package => 1)
$page_dir =
[line 81]
output directory for the current procedural page being processed
$processSpecialRoots = true
[line 60]
This converter knows about the new root tree processing
In order to fix PEAR Bug #6389
Type:
boolean
Overrides:
Array
$ric_set = array()
[line 127]
$sort_page_contents_by_type = true
[line 66]
Smarty Converter wants elements sorted by type as well as alphabetically
Tags:
Type:
boolean
Overrides:
Array
$wrote = false
[line 126]
constructor HTMLframesConverter [line 133]
HTMLframesConverter HTMLframesConverter(
&$allp,
&$packp,
&$classes,
&$procpages,
$po,
$pp,
$qm,
$targetDir,
$templateDir,
$title)
sets $base_dir to $targetDir
Tags:
Parameters:
&$allp
&$packp
&$classes
&$procpages
$po
$pp
$qm
$targetDir
$templateDir
$title
method convertClass [line 1030]
method convertConst [line 1058]
Converts class variables for template output
Tags:
Overrides
Converter::convertConst() (Converts class constants for template output.)
Parameters:
method convertDefine [line 1099]
Converts defines for template output
Tags:
Overrides
Converter::convertDefine() (Converts defines for template output)
Parameters:
method ConvertErrorLog [line 914]
Create errors.html template file output
This method takes all parsing errors and warnings and spits them out ordered by file and line number.
Tags:
global: ErrorTracker $phpDocumentor_errors: We'll be using it's output facility
Overrides
Converter::ConvertErrorLog() (Convert the phpDocumentor parsing/conversion error log)
method convertFunction [line 1078]
method convertGlobal [line 1108]
Converts global variables for template output
Overrides
Converter::convertGlobal() (Converts global variables for template output)
Parameters:
method convertInclude [line 1089]
Converts include elements for template output
Tags:
Overrides
Converter::convertInclude() (Converts includes for template output)
Parameters:
method convertMethod [line 1068]
Converts class methods for template output
Tags:
Overrides
Converter::convertMethod() (Converts method for template output)
Parameters:
method convertPackagepage [line 989]
Converts package page and sets its package as used in $package_pages
Parameters:
method convertPage [line 1118]
converts procedural pages for template output
Tags:
Overrides
Converter::convertPage() (Default Page Handler)
Parameters:
method ConvertTodoList [line 879]
method convertTutorial [line 1006]
method convertVar [line 1048]
Converts class variables for template output
Tags:
Overrides
Converter::convertVar() (Converts class variables for template output.)
Parameters:
method Convert_RIC [line 869]
void Convert_RIC(
README|INSTALL|CHANGELOG
$name, string
$contents)
Convert README/INSTALL/CHANGELOG file contents to output format
Overrides
Converter::Convert_RIC() (Convert README/INSTALL/CHANGELOG file contents to output format)
Parameters:
README|INSTALL|CHANGELOG
$name
string
$contents
contents of the file
method copyMediaRecursively [line 1550]
void copyMediaRecursively(
$media,
$targetdir, [
$subdir = ''])
Parameters:
$media
$targetdir
$subdir
method endClass [line 334]
Writes out the template file of $class_data and unsets the template to save memory
Tags:
see: registerCurrentClass()
Overrides
Converter::endClass() (Called by walk() while converting, when the last class element has been parsed.)
method endPage [line 356]
Writes out the template file of $page_data and unsets the template to save memory
Tags:
Overrides
Converter::endPage() (Called by walk() while converting, when the last procedural page element has been parsed.)
method formatIndex [line 626]
HTMLdefaultConverter uses this function to format template index.html and packages.html
This function generates the package list from $all_packages, eliminating any packages that don't have any entries in their package index (no files at all, due to @ignore or other factors). Then it uses the default package name as the first package index to display. It sets the right pane to be either a blank file with instructions on making package-level docs, or the package-level docs for the default package.
Tags:
global: string $phpDocumentor_DefaultPackageName: Used to set the starting package to display
Overrides
Converter::formatIndex() (Called by walk() while converting.)
method formatLeftIndex [line 726]
Generate indexes for li_package.html and classtree output files
This function generates the li_package.html files from the template file left.html. It does this by iterating through each of the $page_elements, $class_elements and $function_elements arrays to retrieve the pre-sorted abstractLink descendants needed for index generation. Conversion of these links to text is done by returnSee(). The $local parameter is set to false to ensure that paths are correct.
Then it uses generateFormattedClassTrees() to create class trees from the template file classtrees.html. Output filename is classtrees_packagename.html. This function also unsets $elements and $pkg_elements to free up the considerable memory these two class vars use
Tags:
Overrides
Converter::formatLeftIndex() (Called by walk() while converting.)
method formatPkgIndex [line 597]
HTMLdefaultConverter chooses to format both package indexes and the complete index here
This function formats output for the elementindex.html and pkgelementindex.html template files. It then writes them to the target directory
Tags:
Overrides
Converter::formatPkgIndex() (Called by walk() while converting.)
method formatTutorialTOC [line 306]
string formatTutorialTOC(
array
$toc)
Use the template tutorial_toc.tpl to generate a table of contents for HTML
Tags:
return: table of contents formatted for use in the current output format
Overrides
Converter::formatTutorialTOC() (Creates a table of contents for a {@toc} inline tag in a tutorial)
Parameters:
array
$toc
format: array(array('tagname' => section, 'link' => returnsee link, 'id' => anchor name, 'title' => from title tag),...)
method generateElementIndex [line 1517]
void generateElementIndex(
)
Generate alphabetical index of all elements
Tags:
method generateFormattedClassTree [line 1143]
returns an array containing the class inheritance tree from the root object to the class
Tags:
return: Format: array(root,child,child,child,...,$class)
Overrides
Converter::generateFormattedClassTree() (returns an array containing the class inheritance tree from the root object to the class.)
Parameters:
method generateFormattedClassTrees [line 1207]
void generateFormattedClassTrees(
string
$package)
returns a template-enabled array of class trees
Tags:
see: $roots, HTMLConverter::getRootTree()
Parameters:
string
$package
package to generate a class tree for
method generateFormattedInterfaceTrees [line 1261]
void generateFormattedInterfaceTrees(
string
$package)
returns a template-enabled array of interface inheritance trees
Tags:
see: $roots, HTMLConverter::getRootTree()
Parameters:
string
$package
package to generate a class tree for
method generatePkgElementIndex [line 1615]
void generatePkgElementIndex(
string
$package)
Generate alphabetical index of all elements by package and subpackage
Tags:
Parameters:
string
$package
name of a package
method generatePkgElementIndexes [line 1666]
void generatePkgElementIndexes(
)
Tags:
method getCData [line 980]
method getClassLink [line 1706]
mixed getClassLink(
string
$expr, string
$package, [string
$file = false], [boolean
$text = false], [boolean
$with_a = true])
Tags:
return: false if not found, or an html a link to the class's documentation
Overrides
Converter::getClassLink() (return false or a
classLink to $expr)
Parameters:
string
$expr
name of class
string
$package
package name
string
$file
full path to look in (used in index generation)
boolean
$text
deprecated
boolean
$with_a
return just the URL, or enclose it in an html a tag
method getConstLink [line 1821]
mixed getConstLink(
string
$expr, string
$class, string
$package, [string
$file = false], [boolean
$text = false], boolean
5)
Tags:
return: false if not found, or an html a link to the var's documentation
Overrides
Converter::getConstLink() (return false or a
constLink to $expr in $class)
Parameters:
boolean
5
return just the URL, or enclose it in an html a tag
string
$expr
name of class constant
string
$class
class containing class constant
string
$package
package name
string
$file
full path to look in (used in index generation)
boolean
$text
deprecated
method getCurrentPageLink [line 284]
method getDefineLink [line 1738]
mixed getDefineLink(
string
$expr, string
$package, [string
$file = false], [boolean
$text = false], boolean
4)
Tags:
return: false if not found, or an html a link to the define's documentation
Overrides
Converter::getDefineLink() (return false or a
defineLink to $expr)
Parameters:
boolean
4
return just the URL, or enclose it in an html a tag
string
$expr
name of define
string
$package
package name
string
$file
full path to look in (used in index generation)
boolean
$text
deprecated
method getExampleLink [line 194]
void getExampleLink(
$path,
$title)
Parameters:
method getFunctionLink [line 1722]
mixed getFunctionLink(
string
$expr, string
$package, [string
$file = false], [boolean
$text = false], boolean
4)
Tags:
return: false if not found, or an html a link to the function's documentation
Overrides
Converter::getFunctionLink() (return false or a
functionLink to $expr)
Parameters:
boolean
4
return just the URL, or enclose it in an html a tag
string
$expr
name of function
string
$package
package name
string
$file
full path to look in (used in index generation)
boolean
$text
deprecated
method getGlobalLink [line 1754]
mixed getGlobalLink(
string
$expr, string
$package, [string
$file = false], [boolean
$text = false], boolean
4)
Tags:
return: false if not found, or an html a link to the global variable's documentation
Overrides
Converter::getGlobalLink() (return false or a
globalLink to $expr)
Parameters:
boolean
4
return just the URL, or enclose it in an html a tag
string
$expr
name of global variable
string
$package
package name
string
$file
full path to look in (used in index generation)
boolean
$text
deprecated
method getId [line 811]
method getIndexInformation [line 1400]
Generate indexing information for given element
Tags:
Parameters:
method getMethodLink [line 1787]
mixed getMethodLink(
string
$expr, string
$class, string
$package, [string
$file = false], [boolean
$text = false], boolean
5)
Tags:
return: false if not found, or an html a link to the method's documentation
Overrides
Converter::getMethodLink() (return false or a
methodLink to $expr in $class)
Parameters:
boolean
5
return just the URL, or enclose it in an html a tag
string
$expr
name of method
string
$class
class containing method
string
$package
package name
string
$file
full path to look in (used in index generation)
boolean
$text
deprecated
method getPageLink [line 1770]
mixed getPageLink(
string
$expr, string
$package, [string
$path = false], [boolean
$text = false], boolean
4)
Tags:
return: false if not found, or an html a link to the procedural page's documentation
Overrides
Converter::getPageLink() (return false or a
pageLink to $expr)
Parameters:
boolean
4
return just the URL, or enclose it in an html a tag
string
$expr
name of procedural page
string
$package
package name
string
$path
full path to look in (used in index generation)
boolean
$text
deprecated
method getPageName [line 1129]
void getPageName(
&$element)
Parameters:
method getRootTree [line 1318]
string getRootTree(
array
$tree, string
$package, [
$noparent = false], boolean
$nounknownparent)
return formatted class tree for the Class Trees page
Tags:
Parameters:
string
$package
package
boolean
$nounknownparent
if true, an object's parent will not be checked
$noparent
method getSourceAnchor [line 215]
string getSourceAnchor(
string
$sourcefile, string
$anchor, [string
$text = ''], [boolean
$link = false])
Retrieve a Converter-specific anchor to a segment of a source code file parsed via a
@filesource tag.
Tags:
return: link to an anchor, or the anchor
Parameters:
string
$sourcefile
full path to source file
string
$anchor
name of anchor
string
$text
link text, if this is a link
boolean
$link
returns either a link or a destination based on this parameter
method getSourceLink [line 199]
method getTutorialId [line 975]
void getTutorialId(
$package,
$subpackage,
$tutorial,
$id)
Overrides
Converter::getTutorialId() (Return a converter-specific id to distinguish tutorials and their sections)
Parameters:
$package
$subpackage
$tutorial
$id
method getTutorialTree [line 548]
void getTutorialTree(
$tutorial, [
$k = false])
Overrides
Converter::getTutorialTree() (Get a tree structure representing the hierarchy of tutorials)
Parameters:
method getVarLink [line 1804]
mixed getVarLink(
string
$expr, string
$class, string
$package, [string
$file = false], [boolean
$text = false], boolean
5)
Tags:
return: false if not found, or an html a link to the var's documentation
Overrides
Converter::getVarLink() (return false or a
varLink to $expr in $class)
Parameters:
boolean
5
return just the URL, or enclose it in an html a tag
string
$expr
name of var
string
$class
class containing var
string
$package
package name
string
$file
full path to look in (used in index generation)
boolean
$text
deprecated
method makeLeft [line 380]
method Output [line 1878]
This function is not used by HTMLdefaultConverter, but is required by Converter
Overrides
Converter::Output() (do all necessary output)
method postProcess [line 292]
method ProgramExample [line 260]
string ProgramExample(
string
$example, [boolean
$tutorial = false], [
$inlinesourceparse = null], [
$class = null], [
$linenum = null], [
$filesourcepath = null])
Used to convert the <code> tag in a docblock
Overrides
Converter::ProgramExample() (Used to convert the <code> tag in a docblock)
Parameters:
string
$example
boolean
$tutorial
$inlinesourceparse
$class
$linenum
$filesourcepath
method rcNatCmp [line 1835]
int rcNatCmp(
mixed
$a, mixed
$b)
does a nat case sort on the specified second level value of the array
Parameters:
method rcNatCmp1 [line 1851]
int rcNatCmp1(
mixed
$a, mixed
$b)
does a nat case sort on the specified second level value of the array.
this one puts constructors first
Parameters:
method returnLink [line 375]
string returnLink(
string
$link, string
$text)
Tags:
return: <a href="'.$link.'">'.$text.'</a>
Overrides
Converter::returnLink() (take URL $link and text $text and return a link in the format needed for the Converter)
Parameters:
string
$link
string
$text
method returnSee [line 781]
void returnSee(
abstractLink
&$element, [string
$eltext = false], [boolean
$with_a = true], boolean
3)
This function takes an
abstractLink descendant and returns an html link
Overrides
Converter::returnSee() (take
abstractLink descendant and text $eltext and return a link)
Parameters:
boolean
3
determines whether the returned text is enclosed in an <a> tag
abstractLink
&$element
a descendant of abstractlink should be passed, and never text
string
$eltext
text to display in the link
boolean
$with_a
this parameter is not used, and is deprecated
method setTargetDir [line 1595]
calls the converter setTargetDir, and then copies any template images and the stylesheet if they haven't been copied
Tags:
Overrides
Converter::setTargetDir() (Sets the output directory for generated documentation)
Parameters:
method SmartyInit [line 313]
void &SmartyInit(
&$templ)
Parameters:
method sourceLine [line 236]
string sourceLine(
integer
$linenumber, string
$line, [false|string
$path = false])
Return a line of highlighted source code with formatted line number
If the $path is a full path, then an anchor to the line number will be added as well
Tags:
return: formatted source code line with line number
Overrides
Converter::sourceLine() (Return a line of highlighted source code with formatted line number)
Parameters:
integer
$linenumber
line number
string
$line
highlighted source code line
false|string
$path
full path to @filesource file this line is a part of, if this is a single line from a complete file.
method TutorialExample [line 270]
method unmangle [line 142]
method writeExample [line 176]
void writeExample(
$title,
$path,
$source)
Overrides
Converter::writeExample() (Write out the formatted source code for an example php file)
Parameters:
method writeNewPPage [line 695]
void writeNewPPage(
$key)
Parameters:
method writeSource [line 158]
void writeSource(
string
$path, string
$value)
Overrides
Converter::writeSource() (Write out the formatted source code for a php file)
Parameters:
string
$path
full path to the source file
string
$value
fully highlighted source code