Class VersionControl_Hg_Registry

Description

Registers objects used in this package.

This pattern avoids mutual references between objects and maintains state.

PHP version 5

Located in /Hg/Registry.php (line 35)


	
			
Method Summary
object get (string $name)
bool has (string $name)
bool set ([string $name = null], mixed $object)
void __clone ()
Methods
static method getInstance (line 66)

Implements the singleton registry pattern

  • access: public
static VersionControl_Hg_Registry getInstance ()
get (line 115)
  • access: public
object get (string $name)
  • string $name
has (line 104)

Checks if the given key is currently stored

  • access: public
bool has (string $name)
  • string $name: is the key in the array referencing an object
set (line 82)

Stores an object identified by the name parameter.

  • access: public
bool set ([string $name = null], mixed $object)
  • string $name: defaults to $object's class name
  • mixed $object
__clone (line 131)

Prevent users to clone the instance

  • access: public
void __clone ()

Documentation generated on Tue, 18 Aug 2009 23:53:19 -0600 by phpDocumentor 1.4.2