public function __get($child) { $obj = parent::__get($child); if (!$this->is_supported($child)) { $this->_adapter = $this->_backup_driver; } return $obj; }
/** * Check for drivers in our subfolder */ public function __get($child) { $driver_file = MERCHANT_DRIVER_PATH . '/merchant_' . strtolower($child) . '.php'; if (file_exists($driver_file)) { include_once $driver_file; } return parent::__get($child); }