public function update($type, $subtype, $class = '')
{
$id = $this->getId($type, $subtype);
if (!$id) {
return false;
}
$sql = "\n\t\t\tUPDATE {$this->db->prefix}entity_subtypes\n\t\t\tSET type = :type, subtype = :subtype, class = :class\n\t\t\tWHERE id = :id\n\t\t";
$params = [':type' => $type, ':subtype' => $subtype, ':class' => $class, ':id' => $id];
if (!$this->db->updateData($sql, false, $params)) {
return false;
}
$this->invalidateCache();
return true;
}