Class CriticalI_Remote_PackageList

Description

Implements interfaces:

  • IteratorAggregate (internal interface)
  • ArrayAccess (internal interface)

CriticalI_Remote_PackageList is the collection of available packages

from one ore more remote repositories. This class behaves like many other objects in the system in that it is a first class object that behaves like an array. Similar to CriticalI_Package_List, Packages are keyed in the list by their name.

Located in /Core/lib/CriticalI/Remote/PackageList.php (line 13)


	
			
Variable Summary
 mixed $packages
 mixed $remotes
Method Summary
 CriticalI_Remote_PackageList __construct (array $remotes)
 void construct_list ()
 ArrayIterator getIterator ()
 boolean offsetExists (string $idx)
 CriticalI_Package offsetGet (string $idx)
 void offsetSet (string $idx, CriticalI_Package $value)
 void offsetUnset (string $idx)
Variables
mixed $packages (line 16)
  • access: protected
mixed $remotes (line 15)
  • access: protected
Methods
Constructor __construct (line 23)

Constructor.

  • access: public
CriticalI_Remote_PackageList __construct (array $remotes)
  • array $remotes: The collection of CriticalI_Remote_Repository objects to source the list from
construct_list (line 33)

Build the list of packages from our remotes

  • access: protected
void construct_list ()
getIterator (line 63)

Return an iterator for the package list

  • access: public
ArrayIterator getIterator ()

Implementation of:
IteratorAggregate::getIterator
offsetExists (line 72)

Tests for existence of an array index

  • access: public
boolean offsetExists (string $idx)
  • string $idx: The index to test

Implementation of:
ArrayAccess::offsetExists
offsetGet (line 81)

Retrieves the package at an array index.

  • access: public
CriticalI_Package offsetGet (string $idx)
  • string $idx: The index to get

Implementation of:
ArrayAccess::offsetGet
offsetSet (line 90)

Sets the value at an array index

  • access: public
void offsetSet (string $idx, CriticalI_Package $value)

Implementation of:
ArrayAccess::offsetSet
offsetUnset (line 98)

Deletes an entry at an array index

  • access: public
void offsetUnset (string $idx)
  • string $idx: The index to unset

Implementation of:
ArrayAccess::offsetUnset

Documentation generated on Wed, 25 Apr 2012 09:46:44 -0700 by phpDocumentor 1.4.3