public static function saveOrUpdate($notif) { $nt = null; if (isset($notif['id'])) { $nt = NotifikasiDAO::update($notif); } else { $nt = NotifikasiDAO::save($notif); } return $nt; }