PHP 클래스 phpDoctor

파일 보기 프로젝트 열기: peej/phpdoctor 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_constants boolean Parse out global constants.
$_currentFilename str The path and filename of the current file being parsed.
$_defaultPackage str Package to use for elements not in a package.
$_doclet str Specifies the name of the class that starts the doclet used in generating the documentation.
$_docletPath str Specifies the path to the doclet starting class file. If the doclet class is not in a file named <_doclet>/<_doclet>.php then this path should include the filename of the class file also.
$_files str[] Array of files to parse.
$_formatter str Specifies the name of the text formatter class.
$_formatterPath str Specifies the path to the formatters to use.
$_globals boolean Parse out global variables.
$_ignore str[] Array of files not to parse.
$_ignorePackageTags boolean Ignore any package tags in the source code.
$_options str[] Options from config file.
$_overview str Overview file. The "source" file that contains the overview documentation.
$_packageCommentDir str Package comment directory. if set, PHPDoctor will look in this directory for package comment files. Otherwise it looks in a directory named after the package ala Javadoc.
$_path str The path PHPDoctor is running from.
$_pearCompat boolean Whether or not to use PEAR compatibility mode for first sentence tags.
$_private boolean Parse all classes and members.
$_protected boolean Parse protected and public classes and members.
$_public boolean Parse only public classes and members.
$_quiet boolean Turn off all output other than warnings and errors.
$_sourceIndex
$_sourcePath str Directory containing files for parsing.
$_startTime integer The time in microseconds at the start of execution.
$_subdirs boolean Traverse sub-directories
$_tagletPath str Specifies the path to the taglets to use.
$_tree boolean Display class tree.
$_useClassPathAsPackage boolean Use the filesystem path of the class as the package it should be in.
$_verbose boolean Turn on verbose output.
$_version str The version of PHPDoctor.

공개 메소드들

메소드 설명
_buildFileList ( $files, $dir ) Build a complete list of file to parse. Expand out wildcards and traverse directories if asked to.
_getNext ( &$tokens, $key, $whatToGet, $maxDist ) : str Get next token of a certain type from token array
_getPrev ( &$tokens, $key, $whatToGet ) : str Get previous token of a certain type from token array
_getProgramElementName ( &$tokens, $key ) : str Get the next program element name from the token list
_getTime ( ) : integer Get the current time in microseconds.
_hasPrivateName ( $name ) : boolean Does the given element name conform to the format that is used for private elements?
_includeElements ( &$element ) : boolean Is an element private and we are including private elements, or element is protected and we are including protected elements.
_mergeArrays ( $one, $two ) : mixed[] Recursively merge two arrays into a single array. This differs from the PHP function array_merge_recursive as it replaces values with the same index from the first array with items from the second.
_mergeSuperClassData ( &$rootDoc, $parent = NULL )
createTag ( $name, $text, &$data, &$root ) : Tag Create a tag. This method first tries to load a Taglet for the given tag name, upon failing it then tries to load a PHPDoctor specialised tag class (e.g. classes/paramtag.php), if it still has not found a tag class it uses the standard tag class.
defaultPackage ( ) : str Return the default package.
docletPath ( ) : str Return the path PHPDoctor is running from.
error ( $msg ) Write an error message to standard error.
execute ( &$rootDoc ) : boolean Loads and runs the doclet.
fixPath ( $path ) : str Add a trailing slash to a path if it does not have one.
getFormatter ( ) : TextFormatter Creates the formatter and returns it.
getOption ( $option ) : str Get a configuration option.
makeAbsolutePath ( $path, $prefix ) : str Turn path into an absolute path using the given prefix?
message ( $msg ) Write a message to standard output.
options ( ) : str[] Return a reference to the set options.
parse ( ) : RootDoc Parse files into tokens and create rootDoc.
phpDoctor ( $config = 'default.ini' ) Constructor
processDocComment ( $comment, &$root ) : mixed[] Process a doc comment into a doc tag array.
sourcePath ( ) : str Return the source path.
verbose ( $msg ) Write a message to standard output.
version ( ) : str Return the version of PHPDoctor.
warning ( $msg ) Write a warning message to standard error.

메소드 상세

_buildFileList() 공개 메소드

Build a complete list of file to parse. Expand out wildcards and traverse directories if asked to.
public _buildFileList ( $files, $dir )

_getNext() 공개 메소드

Get next token of a certain type from token array
public _getNext ( &$tokens, $key, $whatToGet, $maxDist ) : str
리턴 str Value of found token

_getPrev() 공개 메소드

Get previous token of a certain type from token array
public _getPrev ( &$tokens, $key, $whatToGet ) : str
리턴 str Value of found token

_getProgramElementName() 공개 메소드

Get the next program element name from the token list
public _getProgramElementName ( &$tokens, $key ) : str
리턴 str

_getTime() 공개 메소드

Get the current time in microseconds.
public _getTime ( ) : integer
리턴 integer

_hasPrivateName() 공개 메소드

Does the given element name conform to the format that is used for private elements?
public _hasPrivateName ( $name ) : boolean
리턴 boolean

_includeElements() 공개 메소드

Is an element private and we are including private elements, or element is protected and we are including protected elements.
public _includeElements ( &$element ) : boolean
리턴 boolean

_mergeArrays() 공개 메소드

Recursively merge two arrays into a single array. This differs from the PHP function array_merge_recursive as it replaces values with the same index from the first array with items from the second.
public _mergeArrays ( $one, $two ) : mixed[]
리턴 mixed[] Merged array

_mergeSuperClassData() 공개 메소드

public _mergeSuperClassData ( &$rootDoc, $parent = NULL )

createTag() 공개 메소드

Create a tag. This method first tries to load a Taglet for the given tag name, upon failing it then tries to load a PHPDoctor specialised tag class (e.g. classes/paramtag.php), if it still has not found a tag class it uses the standard tag class.
public createTag ( $name, $text, &$data, &$root ) : Tag
리턴 Tag

defaultPackage() 공개 메소드

Return the default package.
public defaultPackage ( ) : str
리턴 str

docletPath() 공개 메소드

Return the path PHPDoctor is running from.
public docletPath ( ) : str
리턴 str

error() 공개 메소드

Write an error message to standard error.
public error ( $msg )

execute() 공개 메소드

Loads and runs the doclet.
public execute ( &$rootDoc ) : boolean
리턴 boolean

fixPath() 공개 메소드

Add a trailing slash to a path if it does not have one.
public fixPath ( $path ) : str
리턴 str

getFormatter() 공개 메소드

Creates the formatter and returns it.
public getFormatter ( ) : TextFormatter
리턴 TextFormatter

getOption() 공개 메소드

Get a configuration option.
public getOption ( $option ) : str
리턴 str

makeAbsolutePath() 공개 메소드

Turn path into an absolute path using the given prefix?
public makeAbsolutePath ( $path, $prefix ) : str
리턴 str

message() 공개 메소드

Write a message to standard output.
public message ( $msg )

options() 공개 메소드

Return a reference to the set options.
public options ( ) : str[]
리턴 str[] An array of strings.

parse() 공개 메소드

Parse files into tokens and create rootDoc.
public parse ( ) : RootDoc
리턴 RootDoc

phpDoctor() 공개 메소드

Constructor
public phpDoctor ( $config = 'default.ini' )

processDocComment() 공개 메소드

Process a doc comment into a doc tag array.
public processDocComment ( $comment, &$root ) : mixed[]
리턴 mixed[] Array of doc comment data

sourcePath() 공개 메소드

Return the source path.
public sourcePath ( ) : str
리턴 str

verbose() 공개 메소드

Write a message to standard output.
public verbose ( $msg )

version() 공개 메소드

Return the version of PHPDoctor.
public version ( ) : str
리턴 str

warning() 공개 메소드

Write a warning message to standard error.
public warning ( $msg )

프로퍼티 상세

$_constants 공개적으로 프로퍼티

Parse out global constants.
public bool $_constants
리턴 boolean

$_currentFilename 공개적으로 프로퍼티

The path and filename of the current file being parsed.
public str $_currentFilename
리턴 str

$_defaultPackage 공개적으로 프로퍼티

Package to use for elements not in a package.
public str $_defaultPackage
리턴 str

$_doclet 공개적으로 프로퍼티

Specifies the name of the class that starts the doclet used in generating the documentation.
public str $_doclet
리턴 str

$_docletPath 공개적으로 프로퍼티

Specifies the path to the doclet starting class file. If the doclet class is not in a file named <_doclet>/<_doclet>.php then this path should include the filename of the class file also.
public str $_docletPath
리턴 str

$_files 공개적으로 프로퍼티

Array of files to parse.
public str[] $_files
리턴 str[]

$_formatter 공개적으로 프로퍼티

Specifies the name of the text formatter class.
public str $_formatter
리턴 str

$_formatterPath 공개적으로 프로퍼티

Specifies the path to the formatters to use.
public str $_formatterPath
리턴 str

$_globals 공개적으로 프로퍼티

Parse out global variables.
public bool $_globals
리턴 boolean

$_ignore 공개적으로 프로퍼티

Array of files not to parse.
public str[] $_ignore
리턴 str[]

$_ignorePackageTags 공개적으로 프로퍼티

Ignore any package tags in the source code.
public bool $_ignorePackageTags
리턴 boolean

$_options 공개적으로 프로퍼티

Options from config file.
public str[] $_options
리턴 str[]

$_overview 공개적으로 프로퍼티

Overview file. The "source" file that contains the overview documentation.
public str $_overview
리턴 str

$_packageCommentDir 공개적으로 프로퍼티

Package comment directory. if set, PHPDoctor will look in this directory for package comment files. Otherwise it looks in a directory named after the package ala Javadoc.
public str $_packageCommentDir
리턴 str

$_path 공개적으로 프로퍼티

The path PHPDoctor is running from.
public str $_path
리턴 str

$_pearCompat 공개적으로 프로퍼티

Whether or not to use PEAR compatibility mode for first sentence tags.
public bool $_pearCompat
리턴 boolean

$_private 공개적으로 프로퍼티

Parse all classes and members.
public bool $_private
리턴 boolean

$_protected 공개적으로 프로퍼티

Parse protected and public classes and members.
public bool $_protected
리턴 boolean

$_public 공개적으로 프로퍼티

Parse only public classes and members.
public bool $_public
리턴 boolean

$_quiet 공개적으로 프로퍼티

Turn off all output other than warnings and errors.
public bool $_quiet
리턴 boolean

$_sourceIndex 공개적으로 프로퍼티

public $_sourceIndex

$_sourcePath 공개적으로 프로퍼티

Directory containing files for parsing.
public str $_sourcePath
리턴 str

$_startTime 공개적으로 프로퍼티

The time in microseconds at the start of execution.
public int $_startTime
리턴 integer

$_subdirs 공개적으로 프로퍼티

Traverse sub-directories
public bool $_subdirs
리턴 boolean

$_tagletPath 공개적으로 프로퍼티

Specifies the path to the taglets to use.
public str $_tagletPath
리턴 str

$_tree 공개적으로 프로퍼티

Display class tree.
public bool $_tree
리턴 boolean

$_useClassPathAsPackage 공개적으로 프로퍼티

Use the filesystem path of the class as the package it should be in.
public bool $_useClassPathAsPackage
리턴 boolean

$_verbose 공개적으로 프로퍼티

Turn on verbose output.
public bool $_verbose
리턴 boolean

$_version 공개적으로 프로퍼티

The version of PHPDoctor.
public str $_version
리턴 str