Overview

Namespaces

  • Jyxo
    • Beholder
      • TestCase
    • Gettext
      • Parser
    • Input
      • Chain
      • Filter
      • Validator
    • Mail
      • Email
        • Attachment
      • Parser
      • Sender
    • Rpc
      • Json
      • Xml
    • Shell
    • Spl
    • Svn
    • Time
    • Webdav
  • PHP

Classes

  • Client
  • Result

Exceptions

  • Exception
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated

Class Result

Container for parsed SVN binary output.

Experimental.

Jyxo\Svn\Result implements Countable, SeekableIterator
Namespace: Jyxo\Svn
Category: Jyxo
Package: Jyxo\Svn
Copyright: Copyright (c) 2005-2011 Jyxo, s.r.o.
License: https://github.com/jyxo/php/blob/master/license.txt
Author: Matěj Humpál
Located at Svn/Result.php
Methods summary
public
# __construct( string $action, string $input, integer $returnCode = 1 )

Constructor.

Constructor.

Parameters

$action
string
SVN action
$input
string
Action input
$returnCode
integer
SVN binary return code
protected array
# parse( string $action, string $input )

Parses SVN binary output according to the action.

Parses SVN binary output according to the action.

Parameters

$action
string
SVN action
$input
string
SVN binary output

Returns

array
protected array
# parseStatus( string $input )

Parses SVN statis.

Parses SVN statis.

Parameters

$input
string
SVN binary output

Returns

array
protected array
# parseCommit( string $input )

Parses commit output and sets revision number.

Parses commit output and sets revision number.

Parameters

$input
string
SVN binary output

Returns

array
protected array
# parseUpdate( mixed $input )

Parses update output.

Parses update output.

Parameters

$input
mixed
SVN binary output

Returns

array
public mixed
# __get( string $prop )

Magic __get method.

Magic __get method.

Parameters

$prop
string
Property name

Returns

mixed
public Jyxo\Svn\Result
# seek( integer $position )

Moves the internal pointer to the given position.

Moves the internal pointer to the given position.

Parameters

$position
integer
New pointer position

Returns

Jyxo\Svn\Result

Throws

Jyxo\Svn\Exception
On invalid position

Implementation of

SeekableIterator::seek
public mixed
# current( )

Returns an item on the actual pointer position.

Returns an item on the actual pointer position.

Returns

mixed

Implementation of

Iterator::current
public boolean
# next( )

Advances internal pointer's position to the next item.

Advances internal pointer's position to the next item.

Returns

boolean

Implementation of

Iterator::next
public Jyxo\Svn\Result
# rewind( )

Moves the internal pointer to the beginning.

Moves the internal pointer to the beginning.

Returns

Jyxo\Svn\Result

Implementation of

Iterator::rewind
public null|string
# key( )

Returns the current key value.

Returns the current key value.

Returns

null|string

Implementation of

Iterator::key
public boolean
# valid( )

Checks if the internal pointer is within correct boundaries.

Checks if the internal pointer is within correct boundaries.

Returns

boolean

Implementation of

Iterator::valid
public integer
# count( )

Returns item count.

Returns item count.

Returns

integer

Implementation of

Countable::count
Constants summary
string OK 'OK'
#

OK status.

OK status.

string KO 'KO'
#

KO status.

KO status.

string ADD 'A'
#

Added file flag.

Added file flag.

string DELETE 'D'
#

Deleted file flag.

Deleted file flag.

string UPDATE 'U'
#

Updated file flag.

Updated file flag.

string CONFLICT 'C'
#

Conflicted file flag.

Conflicted file flag.

string MODIFIED 'M'
#

Modified file flag.

Modified file flag.

string MERGE 'G'
#

Merged file flag.

Merged file flag.

string EXTERNALS 'X'
#

SVN:externals file flag.

SVN:externals file flag.

string IGNORED 'I'
#

Ignored file flag.

Ignored file flag.

string LOCKED 'L'
#

Locked file flag.

Locked file flag.

string NOT_VERSIONED '?'
#

Non-versioned file flag.

Non-versioned file flag.

string MISSING '!'
#

Missing file flag.

Missing file flag.

string DIR_FILE_SWITCH '~'
#

Flag meaning that the versioned object (file, directory, ...) has been replaced with another kind of object.

Flag meaning that the versioned object (file, directory, ...) has been replaced with another kind of object.

string SCHEDULED '+'
#

History scheduled with commit flag.

History scheduled with commit flag.

string SWITCHED 'S'
#

Switched item flag.

Switched item flag.

string NEW_VERSION_EXISTS '*'
#

Flag meaning that there is a newer version on the server.

Flag meaning that there is a newer version on the server.

Properties summary
protected array $statusTable array( self::ADD => 'A', self::DELETE => 'D', self::UPDATE => 'U', self::CONFLICT => 'C', self::MODIFIED => 'M', self::MERGE => 'G', self::EXTERNALS => 'X', self::IGNORED => 'I', self::LOCKED => 'L', self::NOT_VERSIONED => '?', self::MISSING => '!', self::DIR_FILE_SWITCH => '', self::SCHEDULED => '+', self::SWITCHED => 'S', self::NEW_VERSION_EXISTS => '*', )
#

Status table.

Status table.

protected integer $revision
#

Action revision.

Action revision.

protected string $error ''
#

Action error.

Action error.

protected string $status
#

Action status.

Action status.

protected array $items array()
#

Action items.

Action items.

protected integer $pointer 0
#

Internal pointer.

Internal pointer.

Jyxo PHP Library API documentation generated by ApiGen 2.3.0