[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/ -> Registry.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 209 lines (6 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Registry:: (10 methods):
  getInstance()
  setInstance()
  init()
  setClassName()
  _unsetInstance()
  get()
  set()
  isRegistered()
  __construct()
  offsetExists()


Class: Zend_Registry  - X-Ref

Generic storage class helps to manage global data.

getInstance()   X-Ref
Retrieves the default registry instance.

return: Zend_Registry

setInstance(Zend_Registry $registry)   X-Ref
Set the default registry instance to a specified instance.

param: Zend_Registry $registry An object instance of type Zend_Registry,
return: void

init()   X-Ref
Initialize the default registry instance.

return: void

setClassName($registryClassName = 'Zend_Registry')   X-Ref
Set the class name to use for the default registry instance.
Does not affect the currently initialized instance, it only applies
for the next time you instantiate.

param: string $registryClassName
return: void

_unsetInstance()   X-Ref
Unset the default registry instance.
Primarily used in tearDown() in unit tests.

returns: void

get($index)   X-Ref
getter method, basically same as offsetGet().

This method can be called from an object of type Zend_Registry, or it
can be called statically.  In the latter case, it uses the default
static instance stored in the class.

param: string $index - get the value associated with $index
return: mixed

set($index, $value)   X-Ref
setter method, basically same as offsetSet().

This method can be called from an object of type Zend_Registry, or it
can be called statically.  In the latter case, it uses the default
static instance stored in the class.

param: string $index The location in the ArrayObject in which to store
param: mixed $value The object to store in the ArrayObject.
return: void

isRegistered($index)   X-Ref
Returns TRUE if the $index is a named value in the registry,
or FALSE if $index was not found in the registry.

param: string $index
return: boolean

__construct($array = array()   X-Ref
Constructs a parent ArrayObject with default
ARRAY_AS_PROPS to allow acces as an object

param: array $array data array
param: integer $flags ArrayObject flags

offsetExists($index)   X-Ref

returns: mixed
param: string $index



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1