PHP 클래스 PHPDaemon\Config\Parser

저자: Vasily Zorin ([email protected])
상속: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
파일 보기 프로젝트 열기: kakserpom/phpdaemon 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$col number Current column number
$data string Contents of config file
$erroneous boolean Erroneous?
$file string Config file path
$length integer File length
$line number Current line number
$p integer Pointer (current offset)
$revision integer Revision
$stack array Parse stack
$state array State stack
$target object Target object
$tokens array Callbacks

공개 메소드들

메소드 설명
getCurrentScope ( ) : object Returns current variable scope
isErroneous ( ) : boolean Erroneous?
parse ( $file, $target, $included = false ) : Parser Parse config file
raiseError ( string $msg, $level = 'emerg', $line = null, $col = null ) : void Raises error message.

보호된 메소드들

메소드 설명
__construct ( $file, $target, $included = false ) : void Constructor
getCurrentChar ( ) : string Current character.
getNextChar ( ) : string Returns next character.
purgeScope ( $scope ) : void Removes old config parts after updating.
rewind ( $n ) : void Rewinds the pointer back.
token ( $token, string $c ) : mixed | void Executes token server.

메소드 상세

__construct() 보호된 메소드

Constructor
protected __construct ( $file, $target, $included = false ) : void
리턴 void

getCurrentChar() 보호된 메소드

Current character.
protected getCurrentChar ( ) : string
리턴 string Character.

getCurrentScope() 공개 메소드

Returns current variable scope
public getCurrentScope ( ) : object
리턴 object Scope.

getNextChar() 보호된 메소드

Returns next character.
protected getNextChar ( ) : string
리턴 string Character.

isErroneous() 공개 메소드

Erroneous?
public isErroneous ( ) : boolean
리턴 boolean

parse() 공개 정적인 메소드

Parse config file
public static parse ( $file, $target, $included = false ) : Parser
리턴 Parser

purgeScope() 보호된 메소드

Removes old config parts after updating.
protected purgeScope ( $scope ) : void
리턴 void

raiseError() 공개 메소드

Raises error message.
public raiseError ( string $msg, $level = 'emerg', $line = null, $col = null ) : void
$msg string
리턴 void

rewind() 보호된 메소드

Rewinds the pointer back.
protected rewind ( $n ) : void
리턴 void

token() 보호된 메소드

Executes token server.
protected token ( $token, string $c ) : mixed | void
$c string
리턴 mixed | void

프로퍼티 상세

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

Current column number
protected number $col
리턴 number

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

Contents of config file
protected string $data
리턴 string

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

Erroneous?
protected bool $erroneous
리턴 boolean

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

Config file path
protected string $file
리턴 string

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

File length
protected int $length
리턴 integer

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

Current line number
protected number $line
리턴 number

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

Pointer (current offset)
protected int $p
리턴 integer

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

Revision
protected int $revision
리턴 integer

$stack 보호되어 있는 정적으로 프로퍼티

Parse stack
protected static array $stack
리턴 array

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

State stack
protected array $state
리턴 array

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

Target object
protected object $target
리턴 object

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

Callbacks
protected array $tokens
리턴 array