Class: HTMLframesConverter
Source Location: /PhpDocumentor-1.2.0beta2/phpDocumentor/Converters/HTML/frames/HTMLframesConverter.inc
Converter
|
--HTMLframesConverter
HTML output converter.
Author(s):
Version:
- $Id: HTMLframesConverter.inc,v 1.44 2003/01/18 07:25:19 CelloG Exp $
|
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Class Variables
$base_dir =
[line 86]
target directory passed on the command-line. $targetDir is malleable, always adding package/ and package/subpackage/ subdirectories onto it.
$class =
[line 67]
name of current class being converted
$class_data =
[line 98]
template for the class currently being processed
$class_dir =
[line 92]
output directory for the current class being processed
$current =
[line 123]
contains all of the template procedural page element loop data needed for the current template
$currentclass =
[line 129]
contains all of the template class element loop data needed for the current template
$juststarted = false
[line 117]
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 44]
indexes of elements by package that need to be generated
$local = true
[line 49]
whether a @see is going to be in the $base_dir, or in a package/subpackage subdirectory of $base_dir
$name = 'frames'
[line 39]
$outputformat = 'HTML'
[line 37]
$package_pages = array()
[line 105]
array of converted package page names. Used to link to the package page in the left index
$page =
[line 55]
name of current page being converted
$page_data =
[line 73]
template for the procedural page currently being processed
$page_dir =
[line 79]
output directory for the current procedural page being processed
$path =
[line 61]
path of current page being converted
$ric_set = array()
[line 135]
$sort_page_contents_by_type = true
[line 35]
Smarty Converter wants elements sorted by type as well as alphabetically
$wrote = false
[line 134]
sets $base_dir to $targetDir
Method Detail
HTMLframesConverter (Constructor) [line 137]
HTMLframesConverter HTMLframesConverter(
mixed
&$allp, mixed
&$packp, mixed
&$classes, mixed
&$procpages, mixed
$po, mixed
$pp, mixed
$qm, mixed
$targetDir, mixed
$templateDir, mixed
$title)
|
|
checkState [line 2194]
void checkState(
boolean
$state)
|
|
checks $state to see if it is the same as $local
Overrides Converter::checkState() (Compare parserStringWithInlineTags::Convert() cache state to $state)
Parameters:
Convert [line 828]
void Convert(
mixed
&$element)
|
|
Convert abstract $element for template calls helper function based on element type
Overrides Converter::Convert() (Convert all elements to output format)
Parameters:
convertClass [line 1132]
Converts class for template output
Parameters:
convertDefine [line 1279]
Converts defines for template output
Parameters:
ConvertErrorLog [line 873]
Create errors.html template file output This method takes all parsing errors and warnings and spits them out ordered by file and line number. It does not display any phpDocumentor internal errors, that is handled by exceptions, which always terminate execution.
Overrides Converter::ConvertErrorLog() (parent method not documented)
convertFunction [line 1219]
Converts function for template output
Parameters:
convertGlobal [line 1297]
Converts global variables for template output
Parameters:
convertInclude [line 1258]
Converts include elements for template output
Parameters:
convertMethod [line 1181]
Converts method for template output
Parameters:
convertPackagePage [line 1036]
Converts package page and sets its package as used in $package_pages
Parameters:
convertPage [line 1318]
converts procedural pages for template output
Parameters:
convertTutorial [line 1063]
convertVar [line 1107]
Converts class variables for template output.
Parameters:
Convert_RIC [line 810]
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:
copyMediaRecursively [line 1844]
void copyMediaRecursively(
mixed
$media, mixed
$targetdir, [mixed
$subdir = ''])
|
|
endClass [line 273]
Writes out the template file of $class_data and unsets the template to save memory
Overrides Converter::endClass() (Called by walk() while converting, when the last class element has been parsed.)
endPage [line 297]
Writes out the template file of $page_data and unsets the template to save memory
Overrides Converter::endPage() (Called by walk() while converting, when the last procedural page element has been parsed.)
formatIndex [line 543]
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.
Overrides Converter::formatIndex() (Called by walk() while converting.)
formatLeftIndex [line 645]
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
Overrides Converter::formatLeftIndex() (Called by walk() while converting.)
formatPkgIndex [line 512]
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
Overrides Converter::formatPkgIndex() (Called by walk() while converting.)
formatTutorialTOC [line 236]
string formatTutorialTOC(
array
$toc)
|
|
Use the template tutorial_toc.tpl to generate a table of contents for HTML
Overrides Converter::formatTutorialTOC() (Creates a table of contents for a {@toc} inline tag in a tutorial)
Parameters:
generateChildClassList [line 1446]
returns a list of child classes
Parameters:
generateElementIndex [line 1718]
void generateElementIndex(
)
|
|
Generate alphabetical index of all elements
generateFormattedClassTree [line 1470]
returns an array containing the class inheritance tree from the root object to the class
Parameters:
generateFormattedClassTrees [line 1629]
void generateFormattedClassTrees(
string
$package)
|
|
returns a template-enabled array of class trees
Parameters:
generatePkgElementIndex [line 1894]
void generatePkgElementIndex(
string
$package)
|
|
Generate alphabetical index of all elements by package and subpackage
Parameters:
generatePkgElementIndexes [line 2035]
void generatePkgElementIndexes(
)
|
|
getCData [line 1022]
void getCData(
mixed
$value)
|
|
getClassesOnPage [line 1365]
gets a list of all classes declared on a procedural page represented by $element, a parserData class
Parameters:
getClassLink [line 2075]
mixed getClassLink(
string
$expr, string
$package, [string
$file = false], [boolean
$text = false], [boolean
$local = true], [mixed
$with_a = true])
|
|
Overrides Converter::getClassLink() (return false or a classLink to $expr)
Parameters:
getDefineLink [line 2107]
mixed getDefineLink(
string
$expr, string
$package, [string
$file = false], [boolean
$text = false], [boolean
$local = true])
|
|
Overrides Converter::getDefineLink() (return false or a defineLink to $expr)
Parameters:
getExampleLink [line 212]
void getExampleLink(
mixed
$path, mixed
$title)
|
|
getFormattedConflicts [line 1390]
array getFormattedConflicts(
mixed
&$element, string
$type)
|
|
Parameters:
getFormattedDescMethods [line 1410]
Get a list of methods in child classes that override this method
Parameters:
getFormattedInheritedMethods [line 1579]
Return template-enabled list of inherited methods uses parserMethod helper function getInheritedMethods and generates a template-enabled list using getClassLink()
Parameters:
getFormattedInheritedVars [line 1534]
array getFormattedInheritedVars(
parserVar
$child)
|
|
Return template-enabled list of inherited variables uses parserVar helper function getInheritedVars and generates a template-enabled list using getClassLink()
Parameters:
getFormattedOverrides [line 1431]
Get the method this method overrides, if any
Parameters:
getFunctionLink [line 2091]
mixed getFunctionLink(
string
$expr, string
$package, [string
$file = false], [boolean
$text = false], [boolean
$local = true])
|
|
Overrides Converter::getFunctionLink() (return false or a functionLink to $expr)
Parameters:
getGlobalLink [line 2123]
mixed getGlobalLink(
string
$expr, string
$package, [string
$file = false], [boolean
$text = false], [boolean
$local = true])
|
|
Overrides Converter::getGlobalLink() (return false or a globalLink to $expr)
Parameters:
getMethodLink [line 2156]
mixed getMethodLink(
string
$expr, string
$class, string
$package, [string
$file = false], [boolean
$text = false], [boolean
$local = true])
|
|
Overrides Converter::getMethodLink() (return false or a methodLink to $expr in $class)
Parameters:
getPageLink [line 2139]
mixed getPageLink(
string
$expr, string
$package, [string
$path = false], [boolean
$text = false], [boolean
$local = true])
|
|
Overrides Converter::getPageLink() (return false or a pageLink to $expr)
Parameters:
getPageName [line 1354]
void getPageName(
mixed
&$element)
|
|
getPPageId [line 1017]
void getPPageId(
mixed
$package, mixed
$subpackage, mixed
$tutorial, mixed
$id)
|
|
Overrides Converter::getPPageId() (Used by {@id})
getRootTree [line 1650]
string getRootTree(
array
$tree, mixed
$package)
|
|
return formatted class tree for the Class Trees page
Parameters:
getSourceLink [line 217]
getState [line 2184]
getTutorialTree [line 464]
getVarLink [line 2173]
mixed getVarLink(
string
$expr, string
$class, string
$package, [string
$file = false], [boolean
$text = false], [boolean
$local = true])
|
|
Overrides Converter::getVarLink() (return false or a varLink to $expr in $class)
Parameters:
highlightSource [line 162]
makeLeft [line 324]
newSmarty [line 243]
Output [line 2249]
This function is not used by HTMLdefaultConverter, but is required by Converter
Overrides Converter::Output() (do all necessary output)
postProcess [line 226]
prepareDocBlock [line 942]
array prepareDocBlock(
mixed
&$element, [boolean
$nopackage = true])
|
|
convert the element's DocBlock for output This function converts all tags and descriptions for output
Parameters:
ProgramExample [line 1027]
rcNatCmp [line 2206]
int rcNatCmp(
mixed
$a, mixed
$b)
|
|
does a nat case sort on the specified second level value of the array
Parameters:
rcNatCmp1 [line 2222]
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:
returnLink [line 319]
string returnLink(
string
$link, string
$text)
|
|
Overrides Converter::returnLink() (take URL $link and text $text and return a link in the format needed for the Converter)
Parameters:
returnSee [line 699]
void returnSee(
abstractLink
&$element, [string
$eltext = false], [boolean
$local = true], [boolean
$with_a = true])
|
|
This function takes an abstractLink descendant and returns an html link
Overrides Converter::returnSee() (take abstractLink descendant and text $eltext and return a link in the format needed for the Converter)
Parameters:
setTargetDir [line 1874]
void setTargetDir(
mixed
$dir)
|
|
calls the converter setTargetDir, and then copies any template images and the stylesheet if they haven't been copied
Overrides Converter::setTargetDir() (Sets the output directory for generated documentation)
setTemplateDir [line 1838]
unmangle [line 143]
writeExample [line 200]
void writeExample(
mixed
$title, mixed
$path, mixed
$source)
|
|
Overrides Converter::writeExample() (Write out the formatted source code for an example php file)
writeNewPPage [line 614]
void writeNewPPage(
mixed
$key)
|
|
writeSource [line 184]
void writeSource(
mixed
$path, mixed
$value)
|
|
Overrides Converter::writeSource() (Write out the formatted source code for a php file)
Documentation generated on Fri, 30 Apr 2004 22:09:51 +0200 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.
|
|