PHP Class Jyxo\Svn\Result

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

Protected Properties

Property 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.

Public Methods

Method 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.

Protected Methods

Method 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 method

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 method

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

count() public method

Returns item count.
public count ( ) : integer
return integer

current() public method

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

key() public method

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

next() public method

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

parse() protected method

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

parseCommit() protected method

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

parseStatus() protected method

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

parseUpdate() protected method

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

rewind() public method

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

seek() public method

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

valid() public method

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

Property Details

$error protected_oe property

Action error.
protected string $error
return string

$items protected_oe property

Action items.
protected array $items
return array

$pointer protected_oe property

Internal pointer.
protected int $pointer
return integer

$revision protected_oe property

Action revision.
protected int $revision
return integer

$status protected_oe property

Action status.
protected string $status
return string

$statusTable protected_oe property

Status table.
protected array $statusTable
return array