/** * @param MybbStuff_MyAlerts_Entity_AlertType $alertType * * @return bool Whether the alert type was added successfully. */ public function add(MybbStuff_MyAlerts_Entity_AlertType $alertType) { $success = true; if (!isset($this->alertTypes[$alertType->getCode()])) { $success = (bool) $this->db->insert_query('alert_types', $alertType->toArray()); $this->getAlertTypes(true); } return $success; }
/** * @param MybbStuff_MyAlerts_Entity_AlertType $alertType * * @return bool Whether the alert type was added successfully. */ public function add(MybbStuff_MyAlerts_Entity_AlertType $alertType) { $success = (bool) $this->db->insert_query('alert_types', $alertType->toArray()); $this->getAlertTypes(true); return $success; }