Class CriticalI_Command_List

Description

Implements interfaces:

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

CriticalI_Command_List is the collection of installed packages. It is a

singleton whose instance can be obtained by calling the static function list(). The actual instance behaves like many other objects in the system in that it is a first class object that behaves like an array. Commands are keyed in the list by their name.

Located in /Core/lib/CriticalI/Command/List.php (line 13)


	
			
Variable Summary
 static mixed $list
 mixed $commands
Method Summary
 CriticalI_Command_List __construct ()
 void add_commands_by_glob (string $base, string $pattern)
 ArrayIterator getIterator ()
 boolean offsetExists (string $idx)
 CriticalI_Command offsetGet (string $idx)
 void offsetSet (string $idx, CriticalI_Command $value)
 void offsetUnset (string $idx)
Variables
static mixed $list = null (line 14)
  • access: protected
mixed $commands (line 16)
  • access: protected
Methods
static get (line 44)

Returns the shared list instance

  • access: public
Constructor __construct (line 23)

Constructor.

This class may not be directly instantiated.

  • access: protected
CriticalI_Command_List __construct ()
add_commands_by_glob (line 100)

Adds command classes given a base directory relative to CRITICALI_ROOT and a file globbing pattern.

  • access: public
void add_commands_by_glob (string $base, string $pattern)
  • string $base: The base directory
  • string $pattern: The globbing pattern
getIterator (line 54)

Return an iterator for the command list

  • access: public
ArrayIterator getIterator ()

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

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 72)

Retrieves the command at an array index.

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

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

Sets the value at an array index

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

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

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:43 -0700 by phpDocumentor 1.4.3