VersionControl_Git
[ class tree: VersionControl_Git ] [ index: VersionControl_Git ] [ all elements ]

Class: VersionControl_Git_Object_Tree

Source Location: /VersionControl_Git-0.4.4/VersionControl/Git/Object/Tree.php

Class Overview

VersionControl_Git_Component
   |
   --VersionControl_Git_Object
      |
      --VersionControl_Git_Object_Tree

The OO interface for tree object


Author(s):

Copyright:

  • 2010 Kousuke Ebihara

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 36]
The OO interface for tree object


[ Top ]


Class Variables

$objects = array()

[line 50]

An array of instances of object
  • Access: protected

Type:   array


[ Top ]

$position =  0

[line 43]

The current position
  • Access: protected

Type:   int


[ Top ]



Method Detail

__construct (Constructor)   [line 58]

VersionControl_Git_Object_Tree __construct( VersionControl_Git $git, string $id)

Constructor
  • Access: public

Overrides VersionControl_Git_Object::__construct() (Constructor)

Parameters:

VersionControl_Git   $git   —  An instance of the VersionControl_Git
string   $id   —  An identifier of this object

[ Top ]

current   [line 120]

VersionControl_Git_Object current( )

Get the current value
  • Access: public

[ Top ]

fetch   [line 70]

VersionControl_Git_Object fetch( )

Fetch the substance of this object
  • Return: The "$this" object for method chain
  • Access: public

Overrides VersionControl_Git_Object::fetch() (Fetch the substance of this object)
[ Top ]

key   [line 130]

int key( )

Get the current key
  • Access: public

[ Top ]

next   [line 140]

null next( )

Move forward to next positon
  • Access: public

[ Top ]

rewind   [line 110]

null rewind( )

Rewind this iterator to the first position
  • Access: public

[ Top ]

seek   [line 96]

null seek( int $position)

Seeks to the specified position
  • Access: public

Parameters:

int   $position   —  The position to seek to

[ Top ]

valid   [line 150]

bool valid( )

Checks if current position is valid
  • Access: public

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:43:04 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.