public function __construct(&$connection, $dsc) { if (is_resource($connection)) { $this->connection = $connection; $this->connected = true; $this->dsc = $dsc; parent::__construct(); return $this; } return false; }