triggerOptionEvent('namespace_separator', $namespaceSeparator); $this->namespaceSeparator = $namespaceSeparator; return $this; } /** * Get namespace separator * * @return string */ public function getNamespaceSeparator() { return $this->namespaceSeparator; } /** * Set pathname to database file * * @param string $pathname * @return DbaOptions Provides a fluent interface */ public function setPathname($pathname) { $this->pathname = (string) $pathname; $this->triggerOptionEvent('pathname', $pathname); return $this; } /** * Get pathname to database file * * @return string */ public function getPathname() { return $this->pathname; } /** * * * @param string $mode * @return DbaOptions Provides a fluent interface */ public function setMode($mode) { $this->mode = (string) $mode; $this->triggerOptionEvent('mode', $mode); return $this; } public function getMode() { return $this->mode; } /** * * * @param string $handler * @return DbaOptions Provides a fluent interface */ public function setHandler($handler) { $handler = (string) $handler; if (! function_exists('dba_handlers') || ! in_array($handler, dba_handlers())) { throw new Exception\ExtensionNotLoadedException("DBA-Handler '{$handler}' not supported"); } if ($handler === 'inifile') { throw new Exception\ExtensionNotLoadedException( "DBA-Handler 'inifile' does not reliably support write operations" ); } $this->triggerOptionEvent('handler', $handler); $this->handler = $handler; return $this; } public function getHandler() { return $this->handler; } }