[ Index ]
 

Code source de CakePHP 1.1.13.4450

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/cake/libs/ -> class_registry.php (sommaire)

Class collections. A repository for class objects, each registered with a key.

Copyright: Copyright 2005-2007, Cake Software Foundation, Inc.
License: http://www.opensource.org/licenses/mit-license.php The MIT License
Version: $Revision: 4450 $
Poids: 108 lignes (3 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

ClassRegistry:: (5 méthodes):
  getInstance()
  addObject()
  removeObject()
  isKeySet()
  getObject()


Classe: ClassRegistry  - X-Ref

Class Collections.

A repository for class objects, each registered with a key.
If you try to add an object with the same key twice, nothing will come of it.
If you need a second instance of an object, give it another key.

getInstance()   X-Ref
Return a singleton instance of the ClassRegistry.

return: ClassRegistry instance

addObject($key, &$object)   X-Ref
Add $object to the registry, associating it with the name $key.

param: string $key
param: mixed $object

removeObject($key)   X-Ref
Remove object which corresponds to given key.

param: string $key
return: void

isKeySet($key)   X-Ref
Returns true if given key is present in the ClassRegistry.

param: string $key Key to look for
return: boolean Success

getObject($key)   X-Ref
Return object which corresponds to given key.

param: string $key
return: mixed



Généré le : Sun Feb 25 19:27:47 2007 par Balluche grâce à PHPXref 0.7