PHP 클래스 Gregwar\RST\Environment

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

공개 프로퍼티들

프로퍼티 타입 설명
$errorManager Error manager
$letters Letters used as separators for titles and horizontal line
$prettyTableHeader
$prettyTableJoint
$prettyTableLetter
$tableLetter Table letters

보호된 프로퍼티들

프로퍼티 타입 설명
$anonymous Anonymous links stack
$counters
$currentDirectory
$currentFileName Current file name
$currentTitleLevel Title letter for each levels
$dependencies Dependencies of this document
$levels Level counters
$links Links
$metas Metas
$references References that can be resolved
$targetDirectory
$titleLetters
$url
$variables Variables of the document

공개 메소드들

메소드 설명
__construct ( )
absoluteRelativePath ( $url ) Returns an absolute path for a relative given URL
addDependency ( $dependency ) Adds a dependency to the document
canonicalUrl ( $url ) Gets a canonical URL from the given one
createTitle ( $level ) Title level
found ( $section, $data )
getDependencies ( ) Getting all the dependencies for this environment
getDepth ( ) Get the depth of the current file name (the number of parent directories)
getDirName ( ) Returns the directory name
getErrorManager ( )
getLevel ( $letter )
getLink ( $name, $relative = true ) Get a link value
getMetas ( )
getMyToc ( ) Get the docs involving this document
getNumber ( $level ) Get a level number
getParent ( ) Get my parent metas
getTargetDirectory ( )
getTitleLetters ( )
getUrl ( )
getVariable ( $variable, $default = null ) Gets the variable value
pushAnonymous ( $name ) Set the current anonymous links name
registerReference ( Gregwar\RST\Reference $reference ) Registers a new reference
relativeUrl ( $url ) Resolves a relative URL using directories, for instance, if the current directory is "path/to/something", and you want to get the relative URL to "path/to/something/else.html", the result will be else.html. Else, ".
reset ( ) Puts the environment in a clean state for a new parse, like title level order.
resetAnonymousStack ( ) Resets the anonymous stack
resolve ( $section, $data ) Resolves a reference
setCurrentDirectory ( $directory ) Sets the directory of the current parsing
setCurrentFileName ( $filename ) Sets the current file name
setErrorManager ( Gregwar\RST\ErrorManager $errorManager )
setLink ( $name, $url ) Set the link url
setMetas ( $metas )
setTargetDirectory ( $directory )
setUrl ( $url )
setVariable ( $variable, $value ) Sets the giving variable to a value

보호된 메소드들

메소드 설명
canonicalize ( $url ) Canonicalize a path, a/b/c/.
samePrefix ( $url ) Returns true if the given url have the same prefix as the current document

메소드 상세

__construct() 공개 메소드

public __construct ( )

absoluteRelativePath() 공개 메소드

Returns an absolute path for a relative given URL
public absoluteRelativePath ( $url )

addDependency() 공개 메소드

Adds a dependency to the document
public addDependency ( $dependency )

canonicalUrl() 공개 메소드

Gets a canonical URL from the given one
public canonicalUrl ( $url )

canonicalize() 보호된 메소드

./d/e will become a/b/d/e
protected canonicalize ( $url )

createTitle() 공개 메소드

Title level
public createTitle ( $level )

found() 공개 메소드

public found ( $section, $data )

getDependencies() 공개 메소드

Getting all the dependencies for this environment
public getDependencies ( )

getDepth() 공개 메소드

Get the depth of the current file name (the number of parent directories)
public getDepth ( )

getDirName() 공개 메소드

Returns the directory name
public getDirName ( )

getErrorManager() 공개 메소드

public getErrorManager ( )

getLevel() 공개 메소드

public getLevel ( $letter )

getMetas() 공개 메소드

public getMetas ( )

getMyToc() 공개 메소드

Get the docs involving this document
public getMyToc ( )

getNumber() 공개 메소드

Get a level number
public getNumber ( $level )

getParent() 공개 메소드

Get my parent metas
public getParent ( )

getTargetDirectory() 공개 메소드

public getTargetDirectory ( )

getTitleLetters() 공개 메소드

public getTitleLetters ( )

getUrl() 공개 메소드

public getUrl ( )

getVariable() 공개 메소드

Gets the variable value
public getVariable ( $variable, $default = null )

pushAnonymous() 공개 메소드

Set the current anonymous links name
public pushAnonymous ( $name )

registerReference() 공개 메소드

Registers a new reference
public registerReference ( Gregwar\RST\Reference $reference )
$reference Gregwar\RST\Reference

relativeUrl() 공개 메소드

./" will be added to go to the upper directory
public relativeUrl ( $url )

reset() 공개 메소드

Puts the environment in a clean state for a new parse, like title level order.
public reset ( )

resetAnonymousStack() 공개 메소드

Resets the anonymous stack
public resetAnonymousStack ( )

resolve() 공개 메소드

Resolves a reference
public resolve ( $section, $data )

samePrefix() 보호된 메소드

Returns true if the given url have the same prefix as the current document
protected samePrefix ( $url )

setCurrentDirectory() 공개 메소드

Sets the directory of the current parsing
public setCurrentDirectory ( $directory )

setCurrentFileName() 공개 메소드

Sets the current file name
public setCurrentFileName ( $filename )

setErrorManager() 공개 메소드

public setErrorManager ( Gregwar\RST\ErrorManager $errorManager )
$errorManager Gregwar\RST\ErrorManager

setMetas() 공개 메소드

public setMetas ( $metas )

setTargetDirectory() 공개 메소드

public setTargetDirectory ( $directory )

setUrl() 공개 메소드

public setUrl ( $url )

setVariable() 공개 메소드

Sets the giving variable to a value
public setVariable ( $variable, $value )
$variable the variable name
$value the variable value

프로퍼티 상세

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

Anonymous links stack
protected $anonymous

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

protected $counters

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

protected $currentDirectory

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

Current file name
protected $currentFileName

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

Title letter for each levels
protected $currentTitleLevel

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

Dependencies of this document
protected $dependencies

$errorManager 공개적으로 프로퍼티

Error manager
public $errorManager

$letters 공개적으로 정적으로 프로퍼티

Letters used as separators for titles and horizontal line
public static $letters

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

Level counters
protected $levels

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

Metas
protected $metas

$prettyTableHeader 공개적으로 정적으로 프로퍼티

public static $prettyTableHeader

$prettyTableJoint 공개적으로 정적으로 프로퍼티

public static $prettyTableJoint

$prettyTableLetter 공개적으로 정적으로 프로퍼티

public static $prettyTableLetter

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

References that can be resolved
protected $references

$tableLetter 공개적으로 정적으로 프로퍼티

Table letters
public static $tableLetter

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

protected $targetDirectory

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

protected $titleLetters

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

protected $url

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

Variables of the document
protected $variables