public function __construct($options = null) { if ($options === null) { $options = Intention::getOption('db'); } $this->connect($options); }