1.8. Zend::registry()
Anterior | Capítulo 1. Zend | Próxima

## 1.8. Zend::registry()

Returns an object in the registry or lists all objects in the registry.

    <?php

    Zend::registry($name=null)

    ?>

If the `$name` argument is `NULL`, an array will be returned where the keys to the array are the names of the objects in the registry and the values are the class names of those objects.

If `$name` is a string, the object handle assigned to that name will be returned. If an object does not exist in the registry with that `$name`, a `Zend_Exception` will be thrown.

To quickly determine if an object is present in the registry, use Zend::isRegistered().

Anterior | Acima | Próxima
1.7. Zend::register() | Principal | 1.9. Zend::initRegistry($registry = 'Zend_Registry')