PHP 클래스 Solar_Cli_MakeDocs, php-framework-benchmarks

저자: Paul M. Jones ([email protected])
상속: extends Solar_Controller_Command
파일 보기 프로젝트 열기: pmjones/php-framework-benchmarks

공개 프로퍼티들

프로퍼티 타입 설명
$api array The entire API as a data set.
$packages array All package groupings as a data set.

보호된 프로퍼티들

프로퍼티 타입 설명
$_Solar_Cli_MakeDocs array Default configuration values.
$_class_dir string Write class API files to this directory.
$_classes_list array Summary list of all classes.
$_docbook_dir string Write DocBook files to this directory.
$_package_dir string Write package files to this directory.
$_source string The source code directory, typically the 'include' directory.

공개 메소드들

메소드 설명
writeClassConfig ( string $class ) : void Writes the Config file.
writeClassConstants ( string $class ) : void Writes the Constants file.
writeClassIndex ( string $class ) : void Writes the index file for a single class.
writeClassMethod ( string $class, string $name, array $info ) : void Writes an individual method file.
writeClassMethods ( string $class ) : void Writes the Methods file.
writeClassOverview ( string $class ) : void Writes the Overview file.
writeClassProperties ( string $class ) : void Writes the Properties file.
writeClasses ( ) : void Writes the "class" directory.
writeClassesIndex ( ) : void Writes the index file for the list of classes.
writePackageClassList ( string $package ) : void Writes one package description file.
writePackageIndex ( ) : void Writes the package index file.
writePackages ( ) : void Writes the entire "packages" directory.

보호된 메소드들

메소드 설명
_exec ( string $class = null ) : void Main action: parse the classes and write documentation.
_getFile ( string $type, string $file ) : string Builds a target filename path in the 'class' or 'package' directory.
_postConstruct ( ) : void Post-construction tasks to complete object construction.
_title1 ( string $text ) : string Returns level-1 title markup.
_title2 ( string $text ) : string Returns level-2 title markup.
_title3 ( string $text ) : string Returns level-3 title markup.
_touch ( string $type, string $file ) : void Touches a file to create it or update its timestamp.
_write ( string $type, string $file, mixed $text ) : void Writes a file to the target directory.

메소드 상세

_exec() 보호된 메소드

Main action: parse the classes and write documentation.
protected _exec ( string $class = null ) : void
$class string Start parsing with this class and recursively descend.
리턴 void

_getFile() 보호된 메소드

Builds a target filename path in the 'class' or 'package' directory.
protected _getFile ( string $type, string $file ) : string
$type string The type of file to work with: 'class' or 'package'.
$file string A relative file name, e.g. "class/Class_Name/Overview".
리턴 string

_postConstruct() 보호된 메소드

Post-construction tasks to complete object construction.
protected _postConstruct ( ) : void
리턴 void

_title1() 보호된 메소드

Returns level-1 title markup.
protected _title1 ( string $text ) : string
$text string The title text.
리턴 string

_title2() 보호된 메소드

Returns level-2 title markup.
protected _title2 ( string $text ) : string
$text string The title text.
리턴 string

_title3() 보호된 메소드

Returns level-3 title markup.
protected _title3 ( string $text ) : string
$text string The title text.
리턴 string

_touch() 보호된 메소드

Touches a file to create it or update its timestamp.
protected _touch ( string $type, string $file ) : void
$type string The type of file to write: 'class' or 'package'.
$file string A relative file name, e.g. "class/Class_Name/Overview".
리턴 void

_write() 보호된 메소드

Writes a file to the target directory.
protected _write ( string $type, string $file, mixed $text ) : void
$type string The type of file to write: 'class' or 'package'.
$file string A relative file name, e.g. "class/Class_Name/Overview".
$text mixed A text string or array to write to the file; if an array, is imploded with newlines and trimmed before writing.
리턴 void

writeClassConfig() 공개 메소드

Writes the Config file.
public writeClassConfig ( string $class ) : void
$class string The class to write Config items for.
리턴 void

writeClassConstants() 공개 메소드

Writes the Constants file.
public writeClassConstants ( string $class ) : void
$class string The class to write Constants for.
리턴 void

writeClassIndex() 공개 메소드

Writes the index file for a single class.
public writeClassIndex ( string $class ) : void
$class string The class to write index for.
리턴 void

writeClassMethod() 공개 메소드

Writes an individual method file.
public writeClassMethod ( string $class, string $name, array $info ) : void
$class string The class to which the method belongs.
$name string The method name.
$info array Information about the method.
리턴 void

writeClassMethods() 공개 메소드

Writes the Methods file.
public writeClassMethods ( string $class ) : void
$class string The class to write Methods for.
리턴 void

writeClassOverview() 공개 메소드

Writes the Overview file.
public writeClassOverview ( string $class ) : void
$class string The class to write Overview for.
리턴 void

writeClassProperties() 공개 메소드

Writes the Properties file.
public writeClassProperties ( string $class ) : void
$class string The class to write Properties for.
리턴 void

writeClasses() 공개 메소드

Writes the "class" directory.
public writeClasses ( ) : void
리턴 void

writeClassesIndex() 공개 메소드

Writes the index file for the list of classes.
public writeClassesIndex ( ) : void
리턴 void

writePackageClassList() 공개 메소드

Writes one package description file.
public writePackageClassList ( string $package ) : void
$package string The package name.
리턴 void

writePackageIndex() 공개 메소드

Writes the package index file.
public writePackageIndex ( ) : void
리턴 void

writePackages() 공개 메소드

Writes the entire "packages" directory.
public writePackages ( ) : void
리턴 void

프로퍼티 상세

$_Solar_Cli_MakeDocs 보호되어 있는 프로퍼티

Default configuration values.
protected array $_Solar_Cli_MakeDocs
리턴 array

$_class_dir 보호되어 있는 프로퍼티

Write class API files to this directory.
protected string $_class_dir
리턴 string

$_classes_list 보호되어 있는 프로퍼티

Summary list of all classes.
protected array $_classes_list
리턴 array

$_docbook_dir 보호되어 있는 프로퍼티

Write DocBook files to this directory.
protected string $_docbook_dir
리턴 string

$_package_dir 보호되어 있는 프로퍼티

Write package files to this directory.
protected string $_package_dir
리턴 string

$_source 보호되어 있는 프로퍼티

The source code directory, typically the 'include' directory.
protected string $_source
리턴 string

$api 공개적으로 프로퍼티

The entire API as a data set.
public array $api
리턴 array

$packages 공개적으로 프로퍼티

All package groupings as a data set.
public array $packages
리턴 array