XMLDocBookpeardoc2ConverterXML DocBook converter.
This Converter takes output from the Parser and converts it to DocBook output for PEAR documentation.
This Converter differs from the parent DocBook Converter in that it does not recognize the possibility of procedural pages or of functions! All functions must be defined as static methods for namespace purposes. In addition, all constants and global variables for a package are grouped together as per peardoc2 requirements. Include statements are not documented. If you want to document a normal project, don't use the peardoc2 converter, use the DocBook converter.
Located in /phpDocumentor/Converters/XML/DocBook/peardoc2/XMLDocBookpeardoc2Converter.inc (line 58)
Converter | --XMLDocBookpeardoc2Converter
XMLDocBookpeardoc2Converter
XMLDocBookpeardoc2Converter
( &$allp, &$packp, &$classes, &$procpages, $po, $pp, $qm, $targetDir, $templateDir, $title)
string
exampleProgramExample
(string $example, [boolean $tutorial = false], [ $inlinesourceparse = null], [ $class = null], [ $linenum = null], [ $filesourcepath = null])
mixed
getClassLink
(string $expr, string $package, [string $file = false], [boolean $text = false], [boolean $local = true], [ $with_a = true])
mixed
getDefineLink
(string $expr, string $package, [string $file = false], [boolean $text = false], [boolean $local = true])
mixed
getFunctionLink
(string $expr, string $package, [string $file = false], [boolean $text = false], [boolean $local = true])
mixed
getGlobalLink
(string $expr, string $package, [string $file = false], [boolean $text = false], [boolean $local = true])
mixed
getMethodLink
(string $expr, string $class, string $package, [string $file = false], [boolean $text = false], [boolean $local = true])
mixed
getPageLink
(string $expr, string $package, [string $path = false], [boolean $text = false], [boolean $local = true])
string
getSourceAnchor
(string $sourcefile, string $anchor, [string $text = ''], [boolean $link = false])
mixed
getVarLink
(string $expr, string $class, string $package, [string $file = false], [boolean $text = false], [boolean $local = true])
void
ProgramExample
( $listing, [ $tutorial = false], [ $inlinesourceparse = null], [ $class = null], [ $linenum = null], [ $filesourcepath = null], [ $origsource = null])
void
returnSee
(abstractLink &$element, [string $eltext = false], [boolean $local = true], [boolean $with_a = true])
string
$base_dir
(line 134)
target directory passed on the command-line.
$targetDir is malleable, always adding package/ and package/subpackage/ subdirectories onto it.
string
$category
(line 207)
peardoc2 Category
string
$class
(line 103)
name of current class being converted
Template
$class_data
(line 146)
template for the class currently being processed
string
$class_dir
(line 140)
output directory for the current class being processed
array
$current
(line 176)
contains all of the template procedural page element loop data needed for the current template
array
$currentclass
(line 182)
contains all of the template class element loop data needed for the current template
mixed
$function_data
= array() (line 198)
boolean
$juststarted
= false (line 170)
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
array
$leftindex
= array('classes' => true, 'pages' => false, 'functions' => false, 'defines' => true, 'globals' => true) (line 80)
indexes of elements by package that need to be generated
boolean
$local
= true (line 85)
whether a @see is going to be in the $base_dir, or in a package/subpackage subdirectory of $base_dir
mixed
$method_data
= array() (line 199)
string
$name
= 'DocBook/peardoc2' (line 75)
string
$outputformat
= 'XML' (line 73)
Smarty
$packagexml
(line 159)
Contents of the packagename.xml file are stored in this template variable
array
$package_pages
= array() (line 153)
array of converted package page names.
Used to link to the package page in the left index
string
$page
(line 91)
name of current page being converted
Template
$page_data
(line 109)
template for the procedural page currently being processed
string
$page_dir
(line 115)
output directory for the current procedural page being processed
string
$path
(line 97)
path of current page being converted
boolean
$processSpecialRoots
= true (line 65)
This converter knows about the new root tree processing
In order to fix PEAR Bug #6389
mixed
$sort_absolutely_everything
= true (line 187)
Pass elements by package, simplifies generation of package.xml/category.xml
boolean
$sort_page_contents_by_type
= true (line 71)
XMLDocBookConverter wants elements sorted by type as well as alphabetically
mixed
$sourceloc
= '' (line 202)
array
$template_options
= array('usepear' => false) (line 196)
template options. Currently only 1 recognized option usepear
usepear tells the getLink() function to return a package link to PEAR and PEAR_ERROR if possible, and to link directly to the fully-delimited link package#class.method or package#file.method in PEAR style, if possible, even if the package is not parsed. This will allow parsing of separate PEAR packages without parsing the entire thing at once!
array
$_peardoc2_constants
= false (line 121)
Constants, used for constants.tpl
array
$_peardoc2_globals
= false (line 127)
Global Variables, used for globals.tpl
mixed
$_write_constants_xml
= array() (line 200)
mixed
$_write_globals_xml
= array() (line 201)
Inherited from Converter
Converter::$all_packages
Converter::$classes
Converter::$class_contents
Converter::$class_elements
Converter::$curfile
Converter::$curpage
Converter::$define_elements
Converter::$elements
Converter::$function_elements
Converter::$global_elements
Converter::$highlightingSource
Converter::$package
Converter::$packagecategories
Converter::$package_elements
Converter::$package_output
Converter::$package_parents
Converter::$page_contents
Converter::$page_elements
Converter::$parseprivate
Converter::$pkg_elements
Converter::$quietmode
Converter::$smarty_dir
Converter::$sourcePaths
Converter::$subpackage
Converter::$targetDir
Converter::$templateDir
Converter::$templateName
Converter::$title
Converter::$todoList
sets $base_dir to $targetDir
Converts class for template output
Converts defines for template output
Create errors.html template file output
This method takes all parsing errors and warnings and spits them out ordered by file and line number.
Converts function for template output - does nothing in peardoc2!
Converts global variables for template output
Converts include elements for template output
Completely ignored by this converter
Converts method for template output
Does nothing - use tutorials for DocBook
converts procedural pages for template output
Convert tutorials for output
Does nothing in this converter
Writes out the template file of $class_data and unsets the template to save memory
Used to convert the {@example} inline tag in a docblock.
By default, this just wraps ProgramExample
Does nothing
Creates package/lang/categoryname/packagename.xml for each package
Does nothing
returns a list of child classes
returns an array containing the class inheritance tree from the root object to the class
returns a template-enabled array of class trees
returns a template-enabled array of interface inheritance trees
Generate alphabetical index of all elements by package and subpackage
Get the id value needed to allow linking
do that stuff in $template_options
return formatted class tree for the Class Trees page
Retrieve a Converter-specific anchor to a segment of a source code file parsed via a @filesource tag.
NOTE: unused
Generate the constants.xml, packagename.xml, and globals.xml files
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
This function takes an abstractLink descendant and returns an html link
Writes a file to target dir, beautify any .xml files first
Does nothing
Inherited From Converter
Converter::Converter()
Converter::AttrToString()
Converter::Bolden()
Converter::Br()
Converter::checkState()
Converter::cleanup()
Converter::Convert()
Converter::convertClass()
Converter::convertConst()
Converter::convertDefine()
Converter::ConvertErrorLog()
Converter::convertFunction()
Converter::convertGlobal()
Converter::convertInclude()
Converter::convertMethod()
Converter::convertPage()
Converter::ConvertTitle()
Converter::ConvertTodoList()
Converter::convertTutorial()
Converter::convertVar()
Converter::Convert_RIC()
Converter::copyFile()
Converter::createParentDir()
Converter::EncloseList()
Converter::EncloseParagraph()
Converter::endClass()
Converter::endPage()
Converter::exampleProgramExample()
Converter::flushHighlightCache()
Converter::formatIndex()
Converter::formatLeftIndex()
Converter::formatPkgIndex()
Converter::formatTutorialTOC()
Converter::generateChildClassList()
Converter::generateFormattedClassTree()
Converter::getClassesOnPage()
Converter::getClassLink()
Converter::getConstLink()
Converter::getConverterDir()
Converter::getCurrentPageLink()
Converter::getCurrentPageURL()
Converter::getDefineLink()
Converter::getFileSourceName()
Converter::getFileSourcePath()
Converter::getFormattedConflicts()
Converter::getFormattedDescMethods()
Converter::getFormattedDescVars()
Converter::getFormattedImplements()
Converter::getFormattedInheritedConsts()
Converter::getFormattedInheritedMethods()
Converter::getFormattedInheritedVars()
Converter::getFormattedMethodImplements()
Converter::getFormattedOverrides()
Converter::getFunctionLink()
Converter::getGlobalLink()
Converter::getGlobalValue()
Converter::getHighlightState()
Converter::getId()
Converter::getIncludeValue()
Converter::getLink()
Converter::getMethodLink()
Converter::getPageLink()
Converter::getSortedClassTreeFromClass()
Converter::getSourceLink()
Converter::getState()
Converter::getTutorialId()
Converter::getTutorialLink()
Converter::getTutorialTree()
Converter::getVarLink()
Converter::hasSourceCode()
Converter::hasTutorial()
Converter::highlightDocBlockSource()
Converter::highlightSource()
Converter::highlightTutorialSource()
Converter::Italicize()
Converter::Kbdize()
Converter::ListItem()
Converter::newSmarty()
Converter::Output()
Converter::postProcess()
Converter::prepareDocBlock()
Converter::PreserveWhiteSpace()
Converter::ProgramExample()
Converter::returnLink()
Converter::returnSee()
Converter::Sampize()
Converter::setSourcePaths()
Converter::setTargetDir()
Converter::setTemplateBase()
Converter::setTemplateDir()
Converter::sortPageContentsByElementType()
Converter::sourceLine()
Converter::startHighlight()
Converter::TranslateEntity()
Converter::TranslateTag()
Converter::TutorialExample()
Converter::type_adjust()
Converter::unmangle()
Converter::vardump_tree()
Converter::Varize()
Converter::walk()
Converter::walk_everything()
Converter::writeExample()
Converter::writeFile()
Converter::writeSource()
Converter::_rmdir()
Converter::_setHighlightCache()
Converter::_tutorial_path()
Documentation generated on Mon, 05 Dec 2011 21:40:48 -0600 by phpDocumentor 1.4.4