PHP Class Jyxo\Svn\Result

Experimental.
Author: Matěj Humpál
Inheritance: implements Countable, implements SeekableIterator
Afficher le fichier Open project: jyxo/php

Protected Properties

Свойство Type Description
$error string Action error.
$items array Action items.
$pointer integer Internal pointer.
$revision integer Action revision.
$status string Action status.
$statusTable array Status table.

Méthodes publiques

Méthode Description
__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.

Méthodes protégées

Méthode Description
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.

Method Details

__construct() public méthode

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() public méthode

Magic __get method.
public __get ( string $prop ) : mixed
$prop string Property name
Résultat mixed

count() public méthode

Returns item count.
public count ( ) : integer
Résultat integer

current() public méthode

Returns an item on the actual pointer position.
public current ( ) : mixed
Résultat mixed

key() public méthode

Returns the current key value.
public key ( ) : null | string
Résultat null | string

next() public méthode

Advances internal pointer's position to the next item.
public next ( ) : boolean
Résultat boolean

parse() protected méthode

Parses SVN binary output according to the action.
protected parse ( string $action, string $input ) : array
$action string SVN action
$input string SVN binary output
Résultat array

parseCommit() protected méthode

Parses commit output and sets revision number.
protected parseCommit ( string $input ) : array
$input string SVN binary output
Résultat array

parseStatus() protected méthode

Parses SVN statis.
protected parseStatus ( string $input ) : array
$input string SVN binary output
Résultat array

parseUpdate() protected méthode

Parses update output.
protected parseUpdate ( mixed $input ) : array
$input mixed SVN binary output
Résultat array

rewind() public méthode

Moves the internal pointer to the beginning.
public rewind ( ) : Result
Résultat Result

seek() public méthode

Moves the internal pointer to the given position.
public seek ( integer $position ) : self
$position integer New pointer position
Résultat self

valid() public méthode

Checks if the internal pointer is within correct boundaries.
public valid ( ) : boolean
Résultat boolean

Property Details

$error protected_oe property

Action error.
protected string $error
Résultat string

$items protected_oe property

Action items.
protected array $items
Résultat array

$pointer protected_oe property

Internal pointer.
protected int $pointer
Résultat integer

$revision protected_oe property

Action revision.
protected int $revision
Résultat integer

$status protected_oe property

Action status.
protected string $status
Résultat string

$statusTable protected_oe property

Status table.
protected array $statusTable
Résultat array