Exemplo n.º 1
0
 public function remove()
 {
     if ($this->db->tableExists($this->tableName)) {
         $query = 'DELETE FROM :::table WHERE parent=:parent';
         $bindings = array(':::table' => $this->tableName, ':parent' => $this->parent);
         $this->db->execute($query, $bindings);
         if ($this->getEntireSize() === 0) {
             $this->db->dropTable($this->tableName);
         }
     }
 }
Exemplo n.º 2
0
 public function remove()
 {
     if ($this->db->tableExists($this->table)) {
         $this->db->dropTable($this->table);
     }
 }
Exemplo n.º 3
0
 protected function tearDown()
 {
     if (self::$db->tableExists('mod_mock_testdbstorage')) {
         self::$db->dropTable('mod_mock_testdbstorage');
     }
 }