1 | <?php |
||
28 | class Configuration |
||
29 | { |
||
30 | /** |
||
31 | * Array of attributes for this configuration instance. |
||
32 | * |
||
33 | * @var array $attributes |
||
34 | */ |
||
35 | private $attributes = array( |
||
36 | 'designDocuments' => array( |
||
37 | 'doctrine_associations' => array( |
||
38 | 'className' => 'Doctrine\ODM\CouchDB\View\DoctrineAssociations', |
||
39 | 'options' => array(), |
||
40 | ), |
||
41 | 'doctrine_repositories' => array( |
||
42 | 'className' => 'Doctrine\ODM\CouchDB\View\DoctrineRepository', |
||
43 | 'options' => array(), |
||
44 | ), |
||
45 | ), |
||
46 | 'writeDoctrineMetadata' => true, |
||
47 | 'validateDoctrineMetadata' => true, |
||
48 | 'UUIDGenerationBufferSize' => 20, |
||
49 | 'proxyNamespace' => 'MyCouchDBProxyNS', |
||
50 | 'allOrNothingFlush' => true, |
||
51 | 'luceneHandlerName' => false, |
||
52 | 'metadataResolver' => null, |
||
53 | 'autoGenerateProxyClasses' => false, |
||
54 | ); |
||
55 | |||
56 | /** @var ProxyManagerConfiguration|null */ |
||
57 | private $proxyManagerConfiguration; |
||
58 | |||
59 | /** |
||
60 | * Sets the default UUID Generator buffer size |
||
61 | * |
||
62 | * @param integer $UUIDGenerationBufferSize |
||
63 | */ |
||
64 | public function setUUIDGenerationBufferSize($UUIDGenerationBufferSize) |
||
68 | |||
69 | /** |
||
70 | * Gets the default UUID Generator buffer size |
||
71 | * |
||
72 | * @return integer |
||
73 | */ |
||
74 | public function getUUIDGenerationBufferSize() |
||
78 | /** |
||
79 | * Sets if all CouchDB document metadata should be validated on read |
||
80 | * |
||
81 | * @param boolean $validateDoctrineMetadata |
||
82 | */ |
||
83 | public function setValidateDoctrineMetadata($validateDoctrineMetadata) |
||
87 | |||
88 | /** |
||
89 | * Gets if all CouchDB document metadata should be validated on read |
||
90 | * |
||
91 | * @return boolean |
||
92 | */ |
||
93 | public function getValidateDoctrineMetadata() |
||
97 | |||
98 | /** |
||
99 | * Adds a namespace under a certain alias. |
||
100 | * |
||
101 | * @param string $alias |
||
102 | * @param string $namespace |
||
103 | */ |
||
104 | public function addDocumentNamespace($alias, $namespace) |
||
108 | |||
109 | /** |
||
110 | * Resolves a registered namespace alias to the full namespace. |
||
111 | * |
||
112 | * @param string $documentNamespaceAlias |
||
113 | * @return string |
||
114 | * @throws CouchDBException |
||
115 | */ |
||
116 | public function getDocumentNamespace($documentNamespaceAlias) |
||
124 | |||
125 | /** |
||
126 | * Set the document alias map |
||
127 | * |
||
128 | * @param array $documentNamespaces |
||
129 | * @return void |
||
130 | */ |
||
131 | public function setDocumentNamespaces(array $documentNamespaces) |
||
135 | |||
136 | /** |
||
137 | * Sets the cache driver implementation that is used for metadata caching. |
||
138 | * |
||
139 | * @param MappingDriver $driverImpl |
||
140 | * @todo Force parameter to be a Closure to ensure lazy evaluation |
||
141 | * (as soon as a metadata cache is in effect, the driver never needs to initialize). |
||
142 | */ |
||
143 | public function setMetadataDriverImpl(MappingDriver $driverImpl) |
||
147 | |||
148 | /** |
||
149 | * Add a new default annotation driver with a correctly configured annotation reader. |
||
150 | * |
||
151 | * @param array $paths |
||
152 | * @return Mapping\Driver\AnnotationDriver |
||
153 | */ |
||
154 | public function newDefaultAnnotationDriver($paths = array()) |
||
161 | |||
162 | public function setMetadataResolverImpl(MetadataResolver $resolver) |
||
166 | |||
167 | public function getMetadataResolverImpl() |
||
174 | |||
175 | /** |
||
176 | * Gets the cache driver implementation that is used for the mapping metadata. |
||
177 | * |
||
178 | * @return MappingDriver |
||
179 | */ |
||
180 | public function getMetadataDriverImpl() |
||
187 | |||
188 | /** |
||
189 | * Gets the cache driver implementation that is used for metadata caching. |
||
190 | * |
||
191 | * @return \Doctrine\Common\Cache\Cache |
||
192 | */ |
||
193 | public function getMetadataCacheImpl() |
||
198 | |||
199 | /** |
||
200 | * Sets the cache driver implementation that is used for metadata caching. |
||
201 | * |
||
202 | * @param \Doctrine\Common\Cache\Cache $cacheImpl |
||
203 | */ |
||
204 | public function setMetadataCacheImpl(Cache $cacheImpl) |
||
208 | |||
209 | /** |
||
210 | * Sets the directory where Doctrine generates any necessary proxy class files. |
||
211 | * |
||
212 | * @param string $directory |
||
213 | */ |
||
214 | public function setProxyDir($directory) |
||
219 | |||
220 | /** |
||
221 | * Sets the namespace for Doctrine proxy class files. |
||
222 | * |
||
223 | * @param string $namespace |
||
224 | */ |
||
225 | public function setProxyNamespace($namespace) |
||
229 | |||
230 | /** |
||
231 | * Gets the namespace for Doctrine proxy class files. |
||
232 | * |
||
233 | * @return string |
||
234 | */ |
||
235 | public function getProxyNamespace() |
||
239 | |||
240 | public function setAutoGenerateProxyClasses($bool) |
||
244 | |||
245 | public function getAutoGenerateProxyClasses() |
||
249 | |||
250 | /** |
||
251 | * @param string $name |
||
252 | * @param string $className |
||
253 | * @param array $options |
||
254 | */ |
||
255 | public function addDesignDocument($name, $className, $options) |
||
262 | |||
263 | /** |
||
264 | * @return array |
||
265 | */ |
||
266 | public function getDesignDocumentNames() |
||
270 | |||
271 | /** |
||
272 | * @param string $name |
||
273 | * @return array |
||
274 | */ |
||
275 | public function getDesignDocument($name) |
||
282 | |||
283 | /** |
||
284 | * @param bool $allOrNothing |
||
285 | */ |
||
286 | public function setAllOrNothingFlush($allOrNothing) |
||
290 | |||
291 | /** |
||
292 | * @return bool |
||
293 | */ |
||
294 | public function getAllOrNothingFlush() |
||
298 | |||
299 | public function setLuceneHandlerName($handlerName = '_fti') |
||
303 | |||
304 | public function getLuceneHandlerName() |
||
312 | |||
313 | /** |
||
314 | * @return \Doctrine\ODM\CouchDB\Migrations\NullMigration; |
||
|
|||
315 | */ |
||
316 | public function getMigrations() |
||
324 | |||
325 | /** |
||
326 | * @param DocumentMigration $migration |
||
327 | */ |
||
328 | public function setMigrations(DocumentMigration $migration) |
||
332 | |||
333 | public function buildGhostObjectFactory() : LazyLoadingGhostFactory |
||
337 | |||
338 | public function getProxyManagerConfiguration() : ProxyManagerConfiguration |
||
343 | } |
||
344 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.