Description
Converter
|
--PDFdefaultConverter
Located in File: /phpDocumentor/Converters/PDF/default/PDFdefaultConverter.inc
PDF output converter.
This Converter takes output from the Parser and converts it to PDF-ready output for use with Cezpdf. This is now beta code
- author: - Greg Beaver <[email protected]>
- version: - $Id: PDFdefaultConverter.inc 317560 2011-09-30 22:54:26Z ashnazg $
- todo: - Implement links to conflicts/inheritance
- since: - 1.1
Method Detail
Summary:
PDFdefaultConverter
PDFdefaultConverter
(
&$allp,
&$packp,
&$classes,
&$procpages,
$po,
$pp,
$qm,
$targetDir,
$templateDir,
$title)
void
Convert_RIC
(
README|INSTALL|CHANGELOG $name,
string $contents)
mixed
getClassLink
(
string $expr,
string $package, [
string $file =
false], [
$text =
false])
mixed
getConstLink
(
string $expr,
string $class,
string $package, [
string $file =
false], [
boolean $text =
false],
boolean 5)
mixed
getDefineLink
(
string $expr,
string $package, [
string $file =
false], [
boolean $text =
false])
mixed
getFunctionLink
(
string $expr,
string $package, [
string $file =
false], [
boolean $text =
false])
mixed
getGlobalLink
(
string $expr,
string $package, [
string $file =
false], [
boolean $text =
false])
mixed
getMethodLink
(
string $expr,
string $class,
string $package, [
string $file =
false], [
boolean $text =
false])
mixed
getPageLink
(
string $expr,
string $package, [
string $path =
false], [
boolean $text =
false])
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 5)
void
Output
([
$title =
'Generated Documentation'])
string
TranslateTag
(
string $name,
string $attr,
string $cdata,
string $unconvertedcdata)
Constructor PDFdefaultConverter (line 88)
PDFdefaultConverter PDFdefaultConverter(
&$allp,
&$packp,
&$classes,
&$procpages,
$po,
$pp,
$qm,
$targetDir,
$templateDir,
$title)
Parameters
- &$allp:
- &$packp:
- &$classes:
- &$procpages:
- $po:
- $pp:
- $qm:
- $targetDir:
- $templateDir:
- $title:
Info
Method convertConst (line 439)
void convertConst(
&$element)
Overrides : Converter::convertConst() Converts class constants for template output.
Parameters
Info
Method convertDefine (line 541)
void convertDefine(
&$element)
Overrides : Converter::convertDefine() Converts defines for template output
Parameters
Info
Method convertDocBlock (line 249)
void convertDocBlock(
&$element)
Parameters
Info
Method convertFunction (line 508)
void convertFunction(
&$element)
Overrides : Converter::convertFunction() Converts function for template output
Parameters
Info
Method convertGlobal (line 349)
void convertGlobal(
&$element)
Overrides : Converter::convertGlobal() Converts global variables for template output
Parameters
Info
Method convertInclude (line 494)
void convertInclude(
&$element)
Overrides : Converter::convertInclude() Converts includes for template output
Parameters
Info
Method convertMethod (line 376)
void convertMethod(
&$element)
Overrides : Converter::convertMethod() Converts method for template output
Parameters
Info
Method convertPackagepage (line 638)
void convertPackagepage(
&$element)
Parameters
Info
Method convertParams (line 331)
void convertParams(
&$element)
Parameters
Info
Method convertVar (line 416)
void convertVar(
&$element)
Overrides : Converter::convertVar() Converts class variables for template output.
Parameters
Info
Method Convert_RIC (line 244)
void Convert_RIC(
README|INSTALL|CHANGELOG
$name, string
$contents)
Overrides : Converter::Convert_RIC() Convert README/INSTALL/CHANGELOG file contents to output format
Convert README/INSTALL/CHANGELOG file contents to output format
Parameters
- README|INSTALL|CHANGELOG $name:
- string $contents: contents of the file
Info
Method generateFormattedClassTrees (line 665)
void generateFormattedClassTrees(
string
$package)
returns a template-enabled array of class trees
Parameters
- string $package: package to generate a class tree for
Info
Method getCData (line 630)
void getCData(
$value)
Parameters
Info
Method getClassLink (line 844)
mixed getClassLink(
string
$expr, string
$package, [string
$file = false], [
$text = false])
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)
- $text:
Info
Method getConstLink (line 954)
mixed getConstLink(
string
$expr, string
$class, string
$package, [string
$file = false], [boolean
$text = false], boolean
5)
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
Info
Method getDefineLink (line 874)
mixed getDefineLink(
string
$expr, string
$package, [string
$file = false], [boolean
$text = false])
Overrides : Converter::getDefineLink() return false or a defineLink to $expr
Parameters
- string $expr: name of define
- string $package: package name
- string $file: full path to look in (used in index generation)
- boolean $text: deprecated
Info
Method getExampleLink (line 140)
void getExampleLink(
$path,
$title)
Parameters
Info
Method getFileSourceName (line 152)
void getFileSourceName(
$path, [
$anchor = ''])
Overrides : Converter::getFileSourceName() Translate the path info into a unique file name for the highlighted source code.
Parameters
Info
Method getFunctionLink (line 859)
mixed getFunctionLink(
string
$expr, string
$package, [string
$file = false], [boolean
$text = false])
Overrides : Converter::getFunctionLink() return false or a functionLink to $expr
Parameters
- string $expr: name of function
- string $package: package name
- string $file: full path to look in (used in index generation)
- boolean $text: deprecated
Info
Method getGlobalLink (line 889)
mixed getGlobalLink(
string
$expr, string
$package, [string
$file = false], [boolean
$text = false])
Overrides : Converter::getGlobalLink() return false or a globalLink to $expr
Parameters
- string $expr: name of global variable
- string $package: package name
- string $file: full path to look in (used in index generation)
- boolean $text: deprecated
Info
Method getGlobalValue (line 371)
void getGlobalValue(
$value)
Overrides : Converter::getGlobalValue() Parse a global variable's default value for class initialization.
Parameters
Info
Method getMethodLink (line 920)
mixed getMethodLink(
string
$expr, string
$class, string
$package, [string
$file = false], [boolean
$text = false])
Overrides : Converter::getMethodLink() return false or a methodLink to $expr in $class
Parameters
- 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
Info
Method getPageLink (line 904)
mixed getPageLink(
string
$expr, string
$package, [string
$path = false], [boolean
$text = false])
Overrides : Converter::getPageLink() return false or a pageLink to $expr
Parameters
- string $expr: name of procedural page
- string $package: package name
- string $path: full path to look in (used in index generation)
- boolean $text: deprecated
Info
Method getPageName (line 619)
void getPageName(
&$element)
Parameters
Info
Method getRootTree (line 684)
string getRootTree(
array
$tree,
$package)
return formatted class tree for the Class Trees page
Parameters
Info
Method getSourceAnchor (line 167)
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.
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
Info
- return - link to an anchor, or the anchor
Method getState (line 968)
1 getState(
)
Overrides : Converter::getState() Return parserStringWithInlineTags::Convert() cache state
Info
Method getTutorialId (line 625)
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:
Info
Method getVarLink (line 937)
mixed getVarLink(
string
$expr, string
$class, string
$package, [string
$file = false], [boolean
$text = false], boolean
5)
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
Info
Method mystrnatcasecmp (line 831)
void mystrnatcasecmp(
$a,
$b)
Parameters
Info
Method Output (line 752)
void Output(
[
$title = 'Generated Documentation'])
Overrides : Converter::Output() do all necessary output
calls Cezpdf::ezOutput() and writes documentation.pdf to targetDir
Parameters
Info
Method returnLink (line 234)
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
- string $link:
- string $text:
Info
- return - <c:alink:$link>$text</c:alink>
Method returnSee (line 184)
void returnSee(
abstractLink
&$element, [string
$eltext = false])
Overrides : Converter::returnSee() take abstractLink descendant and text $eltext and return a link
Returns a bookmark using Cezpdf 009
Parameters
- abstractLink &$element: a descendant of abstractlink should be passed, and never text
- string $eltext: text to display in the link
Info
Method setTemplateDir (line 961)
void setTemplateDir(
$dir)
Overrides : Converter::setTemplateDir() sets the template directory based on the $outputformat and $name
Parameters
Info
Method TranslateTag (line 602)
string TranslateTag(
string
$name, string
$attr, string
$cdata, string
$unconvertedcdata)
Overrides : Converter::TranslateTag() Used to translate an XML DocBook tag from a tutorial by reading the options.ini file for the template.
Used to translate an XML DocBook tag from a tutorial by reading the options.ini file for the template.
Parameters
- string $name: tag name
- string $attr: any attributes Format: array(name => value)
- string $cdata: the tag contents, if any
- string $unconvertedcdata: the tag contents, if any, unpost-processed
Info
Method writeExample (line 126)
void writeExample(
$title,
$path,
$source)
Overrides : Converter::writeExample() Write out the formatted source code for an example php file
Parameters
Info
Method writeSource (line 106)
void writeSource(
$path,
$value)
Overrides : Converter::writeSource() Write out the formatted source code for a php file
Parameters
Info