PHP Класс Jyxo\Svn\Result

Experimental.
Автор: Matěj Humpál
Наследование: implements Countable, implements SeekableIterator
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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