Class Xyster_Orm_Mapper_Factory

Description

A simple factory for creating mappers

  • copyright: Copyright (c) 2007-2008 Irrational Logic (http://irrationallogic.net)
  • license: New BSD License

Located in /Orm/Mapper/Factory.php (line 28)

Xyster_Orm_Mapper_Factory_Abstract
   |
   --Xyster_Orm_Mapper_Factory
Variable Summary
Zend_Cache_Core $_defaultMetadataCache
Method Summary
Xyster_Orm_Mapper get (string $className)
Zend_Cache_Core getDefaultMetadataCache ()
void setDefaultMetadataCache ([mixed $metadataCache = null])
Zend_Cache_Core _setupMetadataCache (mixed $metadataCache)
Variables
Zend_Cache_Core $_defaultMetadataCache (line 35)

Default cache for meta information provided by the backend

  • access: protected

Inherited Variables

Inherited from Xyster_Orm_Mapper_Factory_Abstract

Xyster_Orm_Mapper_Factory_Abstract::$_manager
Xyster_Orm_Mapper_Factory_Abstract::$_mappers
Methods
get (line 43)

Gets the mapper for a given class

  • return: The mapper object
  • access: public
Xyster_Orm_Mapper get (string $className)
  • string $className: The name of the entity class
getDefaultMetadataCache (line 62)

Gets the default metadata cache for information returned by getFields()

  • access: public
Zend_Cache_Core getDefaultMetadataCache ()
setDefaultMetadataCache (line 75)

Sets the default metadata cache for information returned by getFields()

If $defaultMetadataCache is null, then no metadata cache is used by default.

  • access: public
void setDefaultMetadataCache ([mixed $metadataCache = null])
  • mixed $metadataCache: Either a Cache object, or a string naming a Registry key
_setupMetadataCache (line 85)
  • throws: Xyster_Orm_Mapper_Exception
  • access: protected
Zend_Cache_Core _setupMetadataCache (mixed $metadataCache)
  • mixed $metadataCache: Either a Cache object, or a string naming a Registry key

Inherited Methods

Inherited From Xyster_Orm_Mapper_Factory_Abstract

Xyster_Orm_Mapper_Factory_Abstract::getEntityType()
Xyster_Orm_Mapper_Factory_Abstract::getManager()
Xyster_Orm_Mapper_Factory_Abstract::setManager()

Documentation generated on Mon, 19 May 2008 17:07:16 -0400 by phpDocumentor 1.4.2