API documentation :: Docs For Class HTMLArbitConverter
Packages:Classes:
|
PhpDoc::Converter::HTMLArbitConverterClass HTMLArbitConverterHTML output converter. HTML output converter. This Converter takes output from the Parser and converts it to HTML-ready output for use with Smarty. Converter | --HTMLArbitConverterAuthor(s):
Member Variables
Method Summary
MethodsHTMLArbitConverter
HTMLArbitConverter
HTMLArbitConverter(
&$allp
,
&$packp
,
&$classes
,
&$procpages
,
$po
,
$pp
,
$qm
,
$targetDir
,
$templateDir
,
$title
)
Parameters:
convertClass
void
convertClass(
parserClass
&$element
)
Converts class for template output Converts class for template output Parameters:
convertConst
void
convertConst(
parserDefine
&$element
)
Converts class variables for template output Converts class variables for template output Parameters:
convertDefine
void
convertDefine(
parserDefine
&$element
)
Converts defines for template output Converts defines for template output Parameters:
ConvertErrorLog
void
ConvertErrorLog(
)
Create errors. This method takes all parsing errors and warnings and spits them out ordered by file and line number. Create errors.html template file output This method takes all parsing errors and warnings and spits them out ordered by file and line number. convertFunction
void
convertFunction(
parserFunction
&$element
)
Converts function for template output Converts function for template output Parameters:
convertGlobal
void
convertGlobal(
parserGlobal
&$element
)
Converts global variables for template output Converts global variables for template output Parameters:
convertInclude
void
convertInclude(
parserInclude
&$element
)
Converts include elements for template output Converts include elements for template output Parameters:
convertMethod
void
convertMethod(
parserDefine
&$element
)
Converts class methods for template output Converts class methods for template output Parameters:
convertPackagepage
void
convertPackagepage(
parserPackagePage
&$element
)
Converts package page and sets its package as used in $package_pages Converts package page and sets its package as used in $package_pages Parameters:
convertPage
void
convertPage(
parserData
&$element
)
converts procedural pages for template output converts procedural pages for template output Parameters:
ConvertTodoList
void
ConvertTodoList(
)
convertTutorial
void
convertTutorial(
parserTutorial
&$element
)
Parameters:
convertVar
void
convertVar(
parserDefine
&$element
)
Converts class variables for template output Converts class variables for template output Parameters:
Convert_RIC
void
Convert_RIC(
README|INSTALL|CHANGELOG
$name
, string
$contents
)
Convert README/INSTALL/CHANGELOG file contents to output format Convert README/INSTALL/CHANGELOG file contents to output format Parameters:
copyMediaRecursively
void
copyMediaRecursively(
$media
,
$targetdir
, [
$subdir
= ''] )
Parameters:
endClass
void
endClass(
)
Writes out the template file of $class_data and unsets the template to save memory Writes out the template file of $class_data and unsets the template to save memory endPage
void
endPage(
)
Writes out the template file of $page_data and unsets the template to save memory Writes out the template file of $page_data and unsets the template to save memory formatIndex
void
formatIndex(
)
HTMLdefaultConverter uses this function to format template index. 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). 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. formatLeftIndex
void
formatLeftIndex(
)
Generate indexes for li_package. This function generates the li_package. iterating through each of the $page_elements, $class_elements and $function_elements arrays to retrieve the pre-sorted abstractLink descendants needed for index generation. text is done by returnSee(). 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(). 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 formatPkgIndex
void
formatPkgIndex(
)
HTMLdefaultConverter chooses to format both package indexes and the complete index here 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 formatTutorialTOC
string
formatTutorialTOC(
array
$toc
)
Use the template tutorial_toc. Use the template tutorial_toc.tpl to generate a table of contents for HTML Parameters:
generateElementIndex
void
generateElementIndex(
)
Generate alphabetical index of all elements Generate alphabetical index of all elements generateFormattedClassTree
array
generateFormattedClassTree(
parserClass
$class
)
returns an array containing the class inheritance tree from the root object to the class returns an array containing the class inheritance tree from the root object to the class Parameters:
generateFormattedClassTrees
void
generateFormattedClassTrees(
string
$package
)
returns a template-enabled array of class trees returns a template-enabled array of class trees Parameters:
generateFormattedInterfaceTrees
void
generateFormattedInterfaceTrees(
string
$package
)
returns a template-enabled array of interface inheritance trees returns a template-enabled array of interface inheritance trees Parameters:
generatePkgElementIndex
void
generatePkgElementIndex(
string
$package
)
Generate alphabetical index of all elements by package and subpackage Generate alphabetical index of all elements by package and subpackage Parameters:
generatePkgElementIndexes
void
generatePkgElementIndexes(
)
getCData
void
getCData(
$value
)
Parameters:
getClassContents
void
getClassContents(
)
getClassLeft
void
getClassLeft(
)
getClassLink
mixed
getClassLink(
string
$expr
, string
$package
, [string
$file
= false] , [boolean
$text
= false] , [boolean
$with_a
= true] )
Parameters:
getConstLink
mixed
getConstLink(
string
$expr
, string
$class
, string
$package
, [string
$file
= false] , [boolean
$text
= false] , boolean
5
)
Parameters:
getCurrentPageLink
void
getCurrentPageLink(
)
getDefineLink
mixed
getDefineLink(
string
$expr
, string
$package
, [string
$file
= false] , [boolean
$text
= false] , boolean
4
)
Parameters:
getExampleLink
void
getExampleLink(
$path
,
$title
)
Parameters:
getFunctionLink
mixed
getFunctionLink(
string
$expr
, string
$package
, [string
$file
= false] , [boolean
$text
= false] , boolean
4
)
Parameters:
getGlobalLink
mixed
getGlobalLink(
string
$expr
, string
$package
, [string
$file
= false] , [boolean
$text
= false] , boolean
4
)
Parameters:
getId
void
getId(
$element
, [
$fullpath
= true] )
Parameters:
getIndexInformation
array
getIndexInformation(
parserElement
$elt
)
Generate indexing information for given element Generate indexing information for given element Parameters:
getMethodLink
mixed
getMethodLink(
string
$expr
, string
$class
, string
$package
, [string
$file
= false] , [boolean
$text
= false] , boolean
5
)
Parameters:
getPageContents
void
getPageContents(
)
getPageLeft
void
getPageLeft(
)
getPageLink
mixed
getPageLink(
string
$expr
, string
$package
, [string
$path
= false] , [boolean
$text
= false] , boolean
4
)
Parameters:
getPageName
void
getPageName(
&$element
)
Parameters:
getRootTree
string
getRootTree(
array
$tree
, string
$package
, [
$noparent
= false] , [
$root
= '#root'] , boolean
$nounknownparent
)
return formatted class tree for the Class Trees page return formatted class tree for the Class Trees page Parameters:
getSourceAnchor
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 tags. Retrieve a Converter-specific anchor to a segment of a source code file parsed via a tags.filesource.pkg tag. Parameters:
getSourceLink
void
getSourceLink(
$path
)
Parameters:
getTutorialId
void
getTutorialId(
$package
,
$subpackage
,
$tutorial
,
$id
)
Parameters:
getTutorialList
void
getTutorialList(
)
getTutorialTree
void
getTutorialTree(
$tutorial
, [
$k
= false] )
Parameters:
getVarLink
mixed
getVarLink(
string
$expr
, string
$class
, string
$package
, [string
$file
= false] , [boolean
$text
= false] , boolean
5
)
Parameters:
makeLeft
void
makeLeft(
)
Output
void
Output(
)
This function is not used by HTMLdefaultConverter, but is required by Converter This function is not used by HTMLdefaultConverter, but is required by Converter postProcess
void
postProcess(
$text
)
Uses htmlspecialchars() on the input Uses htmlspecialchars() on the input Parameters:
ProgramExample
string
ProgramExample(
string
$example
, [boolean
$tutorial
= false] , [
$inlinesourceparse
= null] , [
$class
= null] , [
$linenum
= null] , [
$filesourcepath
= null] )
Used to convert the <code> tag in a docblock Used to convert the <code> tag in a docblock Parameters:
rcNatCmp
int
rcNatCmp(
mixed
$a
, mixed
$b
)
does a nat case sort on the specified second level value of the array does a nat case sort on the specified second level value of the array Parameters:
rcNatCmp1
int
rcNatCmp1(
mixed
$a
, mixed
$b
)
does a nat case sort on the specified second level value of the array. does a nat case sort on the specified second level value of the array. this one puts constructors first Parameters:
returnLink
string
returnLink(
string
$link
, string
$text
)
Parameters:
returnSee
void
returnSee(
abstractLink
&$element
, [string
$eltext
= false] , [boolean
$with_a
= true] , boolean
3
)
This function takes an abstractLink descendant and returns an html link This function takes an abstractLink descendant and returns an html link Parameters:
setTargetDir
void
setTargetDir(
$dir
)
calls the converter setTargetDir, and then copies any template images and the stylesheet if they haven't been copied calls the converter setTargetDir, and then copies any template images and the stylesheet if they haven't been copied Parameters:
setTemplateDir
void
setTemplateDir(
$dir
)
Parameters:
SmartyInit
void
&SmartyInit(
&$templ
)
Parameters:
sourceLine
string
sourceLine(
integer
$linenumber
, string
$line
, [false|string
$path
= false] )
Return a line of highlighted source code with formatted line number 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 Parameters:
TutorialExample
void
TutorialExample(
string
$example
)
Parameters:
unmangle
void
unmangle(
$sourcecode
)
Parameters:
writeExample
void
writeExample(
$title
,
$path
,
$source
)
Parameters:
writeNewPPage
void
writeNewPPage(
$key
)
Parameters:
writeRIC
void
writeRIC(
)
writeSource
void
writeSource(
$path
,
$value
)
Parameters:
Documentation generated on Mon, 05 Apr 2010 14:01:58 +0200 by phpDocumentor 1.4.3
|