PHP 클래스 Jyxo\Svn\Result

Experimental.
저자: Matěj Humpál
상속: implements Countable, implements SeekableIterator
파일 보기 프로젝트 열기: jyxo/php

보호된 프로퍼티들

프로퍼티 타입 설명
$error string Action error.
$items array Action items.
$pointer integer Internal pointer.
$revision integer Action revision.
$status string Action status.
$statusTable array Status table.

공개 메소드들

메소드 설명
__construct ( string $action, string $input, integer $returnCode = 1 ) Constructor.
__get ( string $prop ) : mixed Magic __get method.
count ( ) : integer Returns item count.
current ( ) : mixed Returns an item on the actual pointer position.
key ( ) : null | string Returns the current key value.
next ( ) : boolean Advances internal pointer's position to the next item.
rewind ( ) : Result Moves the internal pointer to the beginning.
seek ( integer $position ) : self Moves the internal pointer to the given position.
valid ( ) : boolean Checks if the internal pointer is within correct boundaries.

보호된 메소드들

메소드 설명
parse ( string $action, string $input ) : array Parses SVN binary output according to the action.
parseCommit ( string $input ) : array Parses commit output and sets revision number.
parseStatus ( string $input ) : array Parses SVN statis.
parseUpdate ( mixed $input ) : array Parses update output.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $action, string $input, integer $returnCode = 1 )
$action string SVN action
$input string Action input
$returnCode integer SVN binary return code

__get() 공개 메소드

Magic __get method.
public __get ( string $prop ) : mixed
$prop string Property name
리턴 mixed

count() 공개 메소드

Returns item count.
public count ( ) : integer
리턴 integer

current() 공개 메소드

Returns an item on the actual pointer position.
public current ( ) : mixed
리턴 mixed

key() 공개 메소드

Returns the current key value.
public key ( ) : null | string
리턴 null | string

next() 공개 메소드

Advances internal pointer's position to the next item.
public next ( ) : boolean
리턴 boolean

parse() 보호된 메소드

Parses SVN binary output according to the action.
protected parse ( string $action, string $input ) : array
$action string SVN action
$input string SVN binary output
리턴 array

parseCommit() 보호된 메소드

Parses commit output and sets revision number.
protected parseCommit ( string $input ) : array
$input string SVN binary output
리턴 array

parseStatus() 보호된 메소드

Parses SVN statis.
protected parseStatus ( string $input ) : array
$input string SVN binary output
리턴 array

parseUpdate() 보호된 메소드

Parses update output.
protected parseUpdate ( mixed $input ) : array
$input mixed SVN binary output
리턴 array

rewind() 공개 메소드

Moves the internal pointer to the beginning.
public rewind ( ) : Result
리턴 Result

seek() 공개 메소드

Moves the internal pointer to the given position.
public seek ( integer $position ) : self
$position integer New pointer position
리턴 self

valid() 공개 메소드

Checks if the internal pointer is within correct boundaries.
public valid ( ) : boolean
리턴 boolean

프로퍼티 상세

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

Action error.
protected string $error
리턴 string

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

Action items.
protected array $items
리턴 array

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

Internal pointer.
protected int $pointer
리턴 integer

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

Action revision.
protected int $revision
리턴 integer

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

Action status.
protected string $status
리턴 string

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

Status table.
protected array $statusTable
리턴 array