public function connect() { if (!$this->isConnected()) { $this->resource = $this->createResource(); return true; } return false; }
/** * {@inheritdoc} */ public function connect() { if (parent::connect() && $this->initCommands) { foreach ($this->initCommands as $command) { $this->executeCommand($command); } } }