? $allowed[$col] : 'A.tglPendaftaran'; } /* * ============================================================ * HELPER: ORDER DIRECTION * ============================================================ */ private function getOrderType($type) { return strtoupper($type) === 'ASC' ? 'ASC' : 'DESC'; } /* * ============================================================ * HELPER: PAGINATION * ============================================================ */ private function getOffset($begin) { $begin = $this->validInt($begin); if ($begin === FALSE || $begin < 0) { return 0; } return (int) $begin; } /* * ============================================================ * HELPER: FILTER KLASIFIKASI * ============================================================ */ private function applyKlasifikasiFilter($idalurperkara, $alias = '') { if (is_array($idalurperkara)) { $ids = array(); foreach ($idalurperkara as $id) { $id = $this->validInt($id); if ($id !== FALSE && $id > 0) { $ids[] = (int) $id; } } $ids = array_unique($ids); if (!empty($ids)) { $field = ($alias != '') ? $alias . '.klasifikasiPerkara' : 'klasifikasiPerkara'; $this->db->where_in($field, $ids); } return; } if ($idalurperkara === '' || $idalurperkara === NULL) { return; } $id = $this->validInt($idalurperkara); if ($id !== FALSE && $id > 0) { $field = ($alias != '') ? $alias . '.klasifikasiPerkara' : 'klasifikasiPerkara'; $this->db->where($field, (int) $id); } } /* * ============================================================ * HELPER: FILTER KEYWORD PERKARA * ============================================================ */ private function applyKeywordFilter($key, $alias = '') { if (!is_string($key) && !is_numeric($key)) { return; } $key = trim((string) $key); if ($key === '') { return; } $prefix = ($alias != '') ? $alias . '.' : ''; // Nomor perkara exact if ($this->isNomorPerkara($key)) { $this->db->where($prefix . 'noPerkara', $key); return; } // Keyword angka: pencarian awalan nomor perkara if (is_numeric($key)) { $this->db->like($prefix . 'noPerkara', $key, 'after'); return; } // Kompatibel dengan CodeIgniter lama yang belum mendukung group_start(). $like = $this->db->escape('%' . $key . '%'); $this->db->where( '(' . $prefix . 'noPerkara LIKE ' . $like . ' OR ' . $prefix . 'tglPendaftaran LIKE ' . $like . ' OR ' . $prefix . 'jenisPerkara LIKE ' . $like . ' OR ' . $prefix . 'pihakPertama LIKE ' . $like . ' OR ' . $prefix . 'pihakKedua LIKE ' . $like . ' OR ' . $prefix . 'statusAkhir LIKE ' . $like . ')', NULL, FALSE ); } /* * ============================================================ * HELPER: FILTER KEYWORD PERKARA LALU LINTAS * ============================================================ */ private function applyKeywordLLFilter($key) { if (!is_string($key) && !is_numeric($key)) { return; } $key = trim((string) $key); if ($key === '') { return; } if ($this->isNomorPerkara($key)) { $this->db->where('A.noPerkara', $key); return; } if (is_numeric($key)) { $this->db->like('A.noPerkara', $key, 'after'); return; } // Kompatibel dengan CodeIgniter lama yang belum mendukung group_start(). $like = $this->db->escape('%' . $key . '%'); $this->db->where( '(' . 'A.noPerkara LIKE ' . $like . ' OR A.tglPendaftaran LIKE ' . $like . ' OR A.jenisPerkara LIKE ' . $like . ' OR A.pihakKedua LIKE ' . $like .
Fatal error: Class 'Perkara_m' not found in /var/www/html/system/core/Loader.php on line 145