Converter | --CHMdefaultConverter
Located in File: /phpDocumentor/Converters/CHM/default/CHMdefaultConverter.inc
The free MS HTML Help compiler takes the project file (phpdoc.hhp) and reads the table of contents file specified in the project (which is always contents.hhc in phpDocumentor). When the converter reaches stable state, it will also output an index file index.hhk. The free download for MS HTML Help Workshop is available below
$base_dir (line 85)
$targetDir is malleable, always adding package/ and package/subpackage/ subdirectories onto it.
$current (line 116)
$currentclass (line 122)
$juststarted = false (line 110)
Converter prints: "Converting /path/to/file.php... Procedural Page Elements... Classes..." Since CHMdefaultConverter 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
$KLinks = array() (line 129)
$leftindex = array('classes' => true, 'pages' => true, 'functions' => true, 'defines' => false, 'globals' => false) (line 72)
Overrides: Array
$package_pages = array() (line 98)
Used to link to the package page in the left index
$page_dir (line 78)
$sort_page_contents_by_type = true (line 63)
Overrides: Array
Constructor CHMdefaultConverter (line 135)
Method addHHP (line 1701)
Method addKLink (line 1795)
Method addSourceTOC (line 1762)
Method addTOC (line 1773)
Method convertClass (line 828)
Overrides : Converter::convertClass() Default Class Handler
Method convertConst (line 860)
Overrides : Converter::convertConst() Converts class constants for template output.
Method convertDefine (line 909)
Overrides : Converter::convertDefine() Converts defines for template output
Method ConvertErrorLog (line 698)
Overrides : Converter::ConvertErrorLog() Convert the phpDocumentor parsing/conversion error log
This method takes all parsing errors and warnings and spits them out ordered by file and line number.
Method convertFunction (line 884)
Overrides : Converter::convertFunction() Converts function for template output
Method convertGlobal (line 920)
Overrides : Converter::convertGlobal() Converts global variables for template output
Method convertInclude (line 897)
Overrides : Converter::convertInclude() Converts includes for template output
Method convertMethod (line 872)
Overrides : Converter::convertMethod() Converts method for template output
Method convertPackagepage (line 773)
Method convertPage (line 932)
Overrides : Converter::convertPage() Default Page Handler
Method ConvertTodoList (line 644)
Overrides : Converter::ConvertTodoList() Convert the list of all @todo tags
Method convertTutorial (line 794)
Overrides : Converter::convertTutorial() Default Tutorial Handler
Method convertVar (line 848)
Overrides : Converter::convertVar() Converts class variables for template output.
Method Convert_RIC (line 680)
Overrides : Converter::Convert_RIC() Convert README/INSTALL/CHANGELOG file contents to output format
Method copyMediaRecursively (line 1361)
Method endClass (line 340)
Overrides : Converter::endClass() Called by walk() while converting, when the last class element has been parsed.
Method endPage (line 363)
Overrides : Converter::endPage() Called by walk() while converting, when the last procedural page element has been parsed.
Method formatIndex (line 427)
Overrides : Converter::formatIndex() Called by walk() while converting.
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.
Method formatLeftIndex (line 523)
Overrides : Converter::formatLeftIndex() Called by walk() while converting.
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
Method formatPkgIndex (line 395)
Overrides : Converter::formatPkgIndex() Called by walk() while converting.
This function formats output for the elementindex.html and pkgelementindex.html template files. It then writes them to the target directory
Method formatTutorialTOC (line 311)
Overrides : Converter::formatTutorialTOC() Creates a table of contents for a {@toc} inline tag in a tutorial
Method generateElementIndex (line 1322)
Method generateFormattedClassTree (line 959)
Overrides : Converter::generateFormattedClassTree() returns an array containing the class inheritance tree from the root object to the class.
Method generateFormattedClassTrees (line 1023)
Method generateFormattedInterfaceTrees (line 1077)
Method generateKLinks (line 1816)
Method generatePkgElementIndex (line 1426)
Method generateTOC (line 1710)
Method getClassLink (line 1517)
Overrides : Converter::getClassLink() return false or a classLink to $expr
Method getConstLink (line 1632)
Overrides : Converter::getConstLink() return false or a constLink to $expr in $class
Method getCurrentPageLink (line 289)
Overrides : Converter::getCurrentPageLink() parent method not documented
Method getDefineLink (line 1549)
Overrides : Converter::getDefineLink() return false or a defineLink to $expr
Method getFunctionLink (line 1533)
Overrides : Converter::getFunctionLink() return false or a functionLink to $expr
Method getGlobalLink (line 1565)
Overrides : Converter::getGlobalLink() return false or a globalLink to $expr
Method getId (line 591)
Overrides : Converter::getId() take abstractLink descendant and text $eltext and return a
Method getIndexInformation (line 1205)
Method getMethodLink (line 1598)
Overrides : Converter::getMethodLink() return false or a methodLink to $expr in $class
Method getPageLink (line 1581)
Overrides : Converter::getPageLink() return false or a pageLink to $expr
Method getRootTree (line 1134)
Method getSourceAnchor (line 220)
Method getSourceLink (line 204)
Overrides : Converter::getSourceLink() parent method not documented
Method getTutorialId (line 764)
Overrides : Converter::getTutorialId() Return a converter-specific id to distinguish tutorials and their sections
Method getVarLink (line 1615)
Overrides : Converter::getVarLink() return false or a varLink to $expr in $class
Method Output (line 1860)
Overrides : Converter::Output() do all necessary output
The output function generates the table of contents (contents.hhc) and file list (phpdoc.hhp) files used to create a .CHM by the free MS HTML Help compiler. {@, a list of all separate .html files is created in CHM format, and written to phpdoc.hhp. This list was generated by writefile.
Next, a call to the table of contents:
finishes things off}}
Method postProcess (line 297)
Overrides : Converter::postProcess() This version does nothing
Method ProgramExample (line 266)
Overrides : Converter::ProgramExample() Used to convert the <code> tag in a docblock
Method rcNatCmp (line 1646)
Method rcNatCmp1 (line 1662)
this one puts constructors first
Method returnLink (line 383)
Overrides : Converter::returnLink() take URL $link and text $text and return a link in the format needed for the Converter
Method returnSee (line 561)
Overrides : Converter::returnSee() take abstractLink descendant and text $eltext and return a link
Method setTargetDir (line 1406)
Overrides : Converter::setTargetDir() Sets the output directory for generated documentation
Method setTemplateDir (line 1355)
Overrides : Converter::setTemplateDir() sets the template directory based on the $outputformat and $name
Method sourceLine (line 242)
Overrides : Converter::sourceLine() 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
Method TutorialExample (line 275)
Overrides : Converter::TutorialExample() parent method not documented
Method unmangle (line 144)
Overrides : Converter::unmangle() Called by parserSourceInlineTag::stringConvert() to allow converters to format the source code the way they'd like.
Method writeExample (line 179)
Overrides : Converter::writeExample() Write out the formatted source code for an example php file
Method writefile (line 1692)
Method writeSource (line 160)
Overrides : Converter::writeSource() Write out the formatted source code for a php file
Converter::$all_packages - All packages encountered in parsing
Converter::$class - set to a classname if currently parsing a class, false if not
Converter::$classes - All class information, organized by path, and by package
Converter::$class_contents - alphabetical index of all methods and vars in a class by package/subpackage
Converter::$class_data - template for the class currently being processed
Converter::$class_elements - alphabetized index of classes by package
Converter::$curfile - full path of the current file being converted
Converter::$curpage - current procedural page being processed
Converter::$define_elements - alphabetized index of defines by package
Converter::$elements - alphabetical index of all elements
Converter::$function_elements - alphabetized index of functions by package
Converter::$global_elements - alphabetized index of global variables by package
Converter::$highlightingSource - Flag used to help converters determine whether to do special source highlighting
Converter::$package - package name currently being converted
Converter::$packagecategories - Packages associated with categories
Converter::$package_elements - alphabetical index of all elements sorted by package, subpackage, page, and class.
Converter::$package_output - set to value of -po commandline
Converter::$package_parents - Hierarchy of packages
Converter::$page - name of current page being converted
Converter::$page_contents - alphabetical index of all elements on a page by package/subpackage
Converter::$page_data - template for the procedural page currently being processed
Converter::$page_elements - alphabetized index of procedural pages by package
Converter::$parseprivate - controls processing of elements marked private with @access private
Converter::$path - path of current page being converted
Converter::$pkg_elements - alphabetical index of all elements, indexed by package/subpackage
Converter::$processSpecialRoots - This converter knows about the new root tree processing
Converter::$quietmode - controls display of progress information while parsing.
Converter::$smarty_dir - Directory that the smarty templates are in
Converter::$sort_absolutely_everything - This is used if the content must be passed in the order it should be read, i.e. by package, procedural then classes
Converter::$sourcePaths - A list of files that have had source code generated
Converter::$subpackage - subpackage name currently being converted
Converter::$targetDir - directory that output is sent to. -t command-line sets this.
Converter::$templateDir - Directory that the template is in, relative to phpDocumentor root directory
Converter::$templateName - Name of the template, from last part of -o
Converter::$template_options - Options for each template, parsed from the options.ini file in the template base directory
Converter::$title -
Converter::$todoList - List of all @todo tags and a link to the element with the @todo
Converter::Converter() - Initialize Converter data structures
Converter::AttrToString() - Convert the attribute of a Tutorial docbook tag's attribute list
Converter::Bolden() - Used to convert the contents of <b> in a docblock
Converter::Br() - Used to convert <br> in a docblock
Converter::checkState() - Compare parserStringWithInlineTags::Convert() cache state to $state
Converter::cleanup() - Finish up parsing/cleanup directories
Converter::Convert() - Convert all elements to output format
Converter::convertClass() - Default Class Handler
Converter::convertConst() - Converts class constants for template output.
Converter::convertDefine() - Converts defines for template output
Converter::ConvertErrorLog() - Convert the phpDocumentor parsing/conversion error log
Converter::convertFunction() - Converts function for template output
Converter::convertGlobal() - Converts global variables for template output
Converter::convertInclude() - Converts includes for template output
Converter::convertMethod() - Converts method for template output
Converter::convertPage() - Default Page Handler
Converter::ConvertTitle() - Convert the title of a Tutorial docbook tag section
Converter::ConvertTodoList() - Convert the list of all @todo tags
Converter::convertTutorial() - Default Tutorial Handler
Converter::convertVar() - Converts class variables for template output.
Converter::Convert_RIC() - Convert README/INSTALL/CHANGELOG file contents to output format
Converter::copyFile() - Copies a file from the template directory to the target directory
Converter::createParentDir() - Recursively creates all subdirectories that don't exist in the $dir path
Converter::EncloseList() - Used to convert the contents of <ol> or <ul> in a docblock
Converter::EncloseParagraph() - Used to enclose a paragraph in a docblock
Converter::endClass() - Called by walk() while converting, when the last class element has been parsed.
Converter::endPage() - Called by walk() while converting, when the last procedural page element has been parsed.
Converter::exampleProgramExample() - Used to convert the {@example} inline tag in a docblock.
Converter::flushHighlightCache() - Return the close text for the current token
Converter::formatIndex() - Called by walk() while converting.
Converter::formatLeftIndex() - Called by walk() while converting.
Converter::formatPkgIndex() - Called by walk() while converting.
Converter::formatTutorialTOC() - Creates a table of contents for a {@toc} inline tag in a tutorial
Converter::generateChildClassList() - returns a list of child classes
Converter::generateFormattedClassTree() - returns an array containing the class inheritance tree from the root object to the class.
Converter::getClassesOnPage() - gets a list of all classes declared on a procedural page represented by
Converter::getClassLink() - return false or a classLink to $expr
Converter::getConstLink() - return false or a constLink to $expr in $class
Converter::getConverterDir() - Get the absolute path to the converter's base directory
Converter::getCurrentPageLink() -
Converter::getCurrentPageURL() - Return the path to the current
Converter::getDefineLink() - return false or a defineLink to $expr
Converter::getFileSourceName() - Translate the path info into a unique file name for the highlighted source code.
Converter::getFileSourcePath() - Return the fixed path to the source-code file folder.
Converter::getFormattedConflicts() -
Converter::getFormattedDescMethods() - Get a list of methods in child classes that override this method
Converter::getFormattedDescVars() - Get a list of vars in child classes that override this var
Converter::getFormattedImplements() - returns an array containing the class inheritance tree from the root object to the class.
Converter::getFormattedInheritedConsts() - Return template-enabled list of inherited class constants
Converter::getFormattedInheritedMethods() - Return template-enabled list of inherited methods
Converter::getFormattedInheritedVars() - Return template-enabled list of inherited variables
Converter::getFormattedMethodImplements() - Get the method this method(s) implemented from an interface, if any
Converter::getFormattedOverrides() - Get the method this method overrides, if any
Converter::getFunctionLink() - return false or a functionLink to $expr
Converter::getGlobalLink() - return false or a globalLink to $expr
Converter::getGlobalValue() - Parse a global variable's default value for class initialization.
Converter::getHighlightState() -
Converter::getId() - take abstractLink descendant and text $eltext and return a
Converter::getIncludeValue() - Parse an include's file to see if it is a file documented in this project
Converter::getLink() - The meat of the @see tag and inline {@link} tag
Converter::getMethodLink() - return false or a methodLink to $expr in $class
Converter::getPageLink() - return false or a pageLink to $expr
Converter::getSortedClassTreeFromClass() - Return a tree of all classes that extend this class
Converter::getSourceLink() -
Converter::getState() - Return parserStringWithInlineTags::Convert() cache state
Converter::getTutorialId() - Return a converter-specific id to distinguish tutorials and their sections
Converter::getTutorialLink() - The meat of the @tutorial tag and inline {@tutorial} tag
Converter::getTutorialTree() - Get a tree structure representing the hierarchy of tutorials
Converter::getVarLink() - return false or a varLink to $expr in $class
Converter::hasSourceCode() - Determine whether an element's file has generated source code, used for linking to line numbers of source.
Converter::hasTutorial() -
Converter::highlightDocBlockSource() - Used to allow converters to format the source code of DocBlocks the way they'd like.
Converter::highlightSource() - Used to allow converters to format the source code the way they'd like.
Converter::highlightTutorialSource() - Used to allow converters to format the source code of Tutorial XML the way they'd like.
Converter::Italicize() - Used to convert the contents of <i> in a docblock
Converter::Kbdize() - Used to convert the contents of <kbd> in a docblock
Converter::ListItem() - Used to convert the contents of <li> in a docblock
Converter::newSmarty() - Return a Smarty template object to operate with
Converter::Output() - do all necessary output
Converter::postProcess() - This version does nothing
Converter::prepareDocBlock() - convert the element's DocBlock for output
Converter::PreserveWhiteSpace() - Used to convert the contents of <pre> in a docblock
Converter::ProgramExample() - Used to convert the <code> tag in a docblock
Converter::returnLink() - take URL $link and text $text and return a link in the format needed for the Converter
Converter::returnSee() - take abstractLink descendant and text $eltext and return a link
Converter::Sampize() - Used to convert the contents of <samp> in a docblock
Converter::setSourcePaths() - Mark a file as having had source code highlighted
Converter::setTargetDir() - Sets the output directory for generated documentation
Converter::setTemplateBase() - Set the template directory with a different template base directory
Converter::setTemplateDir() - sets the template directory based on the $outputformat and $name
Converter::sortPageContentsByElementType() - sorts $page_contents by element type as well as alphabetically
Converter::sourceLine() - Return a line of highlighted source code with formatted line number
Converter::startHighlight() - Initialize highlight caching
Converter::TranslateEntity() - Used to translate an XML DocBook entity like ” from a tutorial by reading the options.ini file for the template.
Converter::TranslateTag() - Used to translate an XML DocBook tag from a tutorial by reading the options.ini file for the template.
Converter::TutorialExample() -
Converter::type_adjust() - Called by parserReturnTag::Convert() to allow converters to change type names to desired formatting
Converter::unmangle() - Called by parserSourceInlineTag::stringConvert() to allow converters to format the source code the way they'd like.
Converter::vardump_tree() - Debugging function for dumping $tutorial_tree
Converter::Varize() - Used to convert the contents of <var> in a docblock
Converter::walk() - called by phpDocumentor_IntermediateParser::Convert() to traverse the array of pages and their elements, converting them to the output format
Converter::walk_everything() - walk over elements by package rather than page
Converter::writeExample() - Write out the formatted source code for an example php file
Converter::writeFile() - Writes a file to target dir
Converter::writeSource() - Write out the formatted source code for a php file
Converter::_rmdir() - Completely remove a directory and its contents
Converter::_setHighlightCache() -
Converter::_tutorial_path() - Returns the path to this tutorial as a string