public function delete() { $this->initDbIfNeeded(); $table = $this->getTableName(); $sql = "DELETE FROM {$table} WHERE `idsite` = ? and plugin_name = ?"; $bind = array($this->idSite, $this->pluginName); $this->db->query($sql, $bind); }