public function __construct($template, $template_dir, $connection, $directory) { if ($connection) { $this->da = new DatabaseAbstraction($connection); } if ($directory) { $this->fi = new FolderInformation($directory); } parent::__construct($template, $template_dir); }
public function __construct($template, $template_dir, $connection) { $this->db = \Doctrine\DBAL\DriverManager::getConnection($connection, new \Doctrine\DBAL\Configuration()); $this->curator = new SchemaCurator($this->db->getSchemaManager(), @$connection['prefix']); parent::__construct($template, $template_dir); }
public function __construct($template, $template_dir, $connection) { $this->da = new DatabaseAbstraction($connection); $this->form_data = new FormDataAbstraction($this->da); parent::__construct($template, $template_dir); }