1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <?php
-
- namespace Gedmo\Mapping\Driver;
-
- use Gedmo\Mapping\Driver;
-
-
- class Chain implements Driver
- {
-
-
- private $_drivers = array();
-
-
-
- public function addDriver(Driver $nestedDriver, $namespace)
- {
- $this->_drivers[$namespace] = $nestedDriver;
- }
-
-
-
- public function getDrivers()
- {
- return $this->_drivers;
- }
-
-
-
- public function readExtendedMetadata($meta, array &$config)
- {
- foreach ($this->_drivers as $namespace => $driver) {
- if (strpos($meta->name, $namespace) === 0) {
- $driver->readExtendedMetadata($meta, $config);
- return;
- }
- }
-
-
- }
-
-
-
- public function setOriginalDriver($driver)
- {
-
- }
- }
|