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

Class: SimpleGallery_Registry

Source Location: /Registry.php

Class Overview


Simple Gallery registry


Variables

Methods



Class Details

[line 22]
Simple Gallery registry



[ Top ]


Class Variables

static $_registry =  null

[line 29]

Registry object provides storage for shared objects.



Tags:

access:  protected



[ Top ]

$_values = array()

[line 36]

Registry values



Tags:

access:  protected

Type:   array


[ Top ]



Class Methods


static method get [line 83]

static mixed get( string $index)

Getter method



Tags:

throws:  Exception
access:  public


Parameters:

string   $index   The index to get

[ Top ]

static method getInstance [line 51]

static SimpleGallery_Registry getInstance( )

Retrieves the default registry instance.



Tags:

access:  public


[ Top ]

static method isRegistered [line 114]

static boolean isRegistered( string $index)

Returns TRUE if the $index is a named value in the registry, or FALSE if $index was not found in the registry.



Tags:

access:  public


Parameters:

string   $index   The index to check

[ Top ]

static method set [line 101]

static void set( string $index, mixed $value)

Setter method



Tags:

access:  public


Parameters:

string   $index   The index to set
mixed   $value   The object to store

[ Top ]

static method setInstance [line 67]

static void setInstance( SimpleGallery_Registry $registry)

Set the default registry instance to a specified instance.



Tags:

throws:  SimpleGallery_Exception if registry is already initialized.
access:  public


Parameters:

SimpleGallery_Registry   $registry   An object instance of type SimpleGallery_Registry

[ Top ]

static method _init [line 161]

static void _init( )

Initialize the default registry instance.



Tags:

access:  protected


[ Top ]

method offsetExists [line 128]

boolean offsetExists( string $index)

Check if an offset exists



Tags:

access:  public


Parameters:

string   $index   The index to check

[ Top ]

method offsetGet [line 151]

mixed offsetGet( string $index)

Get offset value



Tags:

access:  public


Parameters:

string   $index   The index to get

[ Top ]

method offsetSet [line 140]

void offsetSet( string $index, mixed $value)

Set offset value



Tags:

access:  public


Parameters:

string   $index   The index to set
mixed   $value   The value to store

[ Top ]


Documentation generated on Fri, 18 Feb 2011 19:38:53 +0200 by phpDocumentor 1.4.3