Zend_Db_Table_Abstract::_setupMetadataCache PHP Method

_setupMetadataCache() protected static method

protected static _setupMetadataCache ( mixed $metadataCache ) : Zend_Cache_Core
$metadataCache mixed Either a Cache object, or a string naming a Registry key
return Zend_Cache_Core
    protected static function _setupMetadataCache($metadataCache)
    {
        if ($metadataCache === null) {
            return null;
        }
        if (is_string($metadataCache)) {
            require_once 'Zend/Registry.php';
            $metadataCache = Zend_Registry::get($metadataCache);
        }
        if (!$metadataCache instanceof Zend_Cache_Core) {
            require_once 'Zend/Db/Table/Exception.php';
            throw new Zend_Db_Table_Exception('Argument must be of type Zend_Cache_Core, or a Registry key where a Zend_Cache_Core object is stored');
        }
        return $metadataCache;
    }