public function __construct(DbAdapter $dbAdapter, $dbAdapterName = 'db') { if ($dbAdapter) { $this->_db = $dbAdapter; } $this->_name = preg_replace('#[^a-z0-9\\_\\-]#si', '', $dbAdapter->getDbName()); $this->setDbAdapterName($dbAdapterName); }