Exemple #1
0
 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);
 }
Exemple #2
0
 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);
 }
Exemple #3
0
 public function __construct($template, $template_dir, $connection)
 {
     $this->da = new DatabaseAbstraction($connection);
     $this->form_data = new FormDataAbstraction($this->da);
     parent::__construct($template, $template_dir);
 }