本文整理汇总了PHP中get_safe函数的典型用法代码示例。如果您正苦于以下问题:PHP get_safe函数的具体用法?PHP get_safe怎么用?PHP get_safe使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_safe函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: signup
function signup()
{
$data['keyword'] = get_safe('q');
$data['title'] = 'Daftar taudimana';
$data['month'] = array('Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Agu', 'Sep', 'Okt', 'Nov', 'Des');
$this->load->view('public/signup', $data);
}
示例2: index
function index()
{
$data = $this->m_home->load_data_kategori();
$data['title'] = $this->title;
$data['area'] = $this->m_home->load_data_area();
$this->session->set_userdata(array('current_url' => $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']));
$data['login_url'] = $this->facebook->getLoginUrl(array('redirect_uri' => base_url('api/signin/logmein_facebook'), 'scope' => array("email")));
$data['session'] = !empty($this->id_user) ? TRUE : FALSE;
$this->session->set_userdata(array('current_url' => substr($_SERVER['REQUEST_URI'], 1)));
if (!empty($this->id_user)) {
$data['profile'] = $this->m_config->get_profile_member($this->id_user);
}
$data['latitude'] = get_safe('lat');
$data['longitude'] = get_safe('lon');
$data['city'] = get_safe('alamat');
$kategori = array();
$array_kategori = $this->m_home->load_data_kategori();
foreach ($array_kategori['data'] as $value) {
$kategori[] = $value->nama;
}
$data['total_data'] = $this->db->query("select count(*) as total from tb_lokasi")->row()->total;
$data['url'] = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$data['image'] = "https://" . $_SERVER['HTTP_HOST'] . "/assets/images/taudimana-618263917176-8Ayhysd716288.jpg";
$data['kategori'] = implode(', ', $kategori);
$this->load->view('public/check-status', $data);
}
示例3: setting
function setting()
{
$data['title'] = 'Profilku';
$data['profile'] = $this->m_config->get_profile_member($this->session->userdata('id_user'));
$data['latitude'] = get_safe('lat');
$data['longitude'] = get_safe('lon');
$this->load->view('config/setting-profile', $data);
}
示例4: print_pajak
function print_pajak()
{
$search = array('id' => get_safe('id'), 'tanggal' => '', 'kode' => '', 'nobukti' => '', 'keterangan' => '', 'jenis_pajak' => '', 'jenis' => '');
$data = $this->m_transaksi->get_list_penerimaan_pajaks(NULL, NULL, $search);
$data['thn_agg'] = $this->m_laporan->data_tahun_anggaran_aktif();
$data['attr'] = $this->m_laporan->data_header();
$this->load->view('transaksi/print-pajak', $data);
}
示例5: load_data_area_get
function load_data_area_get()
{
$q = get_safe('q');
//$start = $this->start(get_safe('page'));
$data = $this->m_home->load_data_kabupaten($q);
//$url = "https://api.foursquare.com/v2/geo/geocode?locale=id&explicit-lang=true&v=20160816&query=".$q."&autocomplete=true&allowCountry=false&ll=-6.1933765%2C106.8219137&maxInterpretations=3&wsid=BY4PHR2HQ4C5MZOOFICE3TAXXWSIRG&oauth_token=QEJ4AQPTMMNB413HGNZ5YDMJSHTOHZHMLZCAQCCLXIX41OMP";
//$response = @file_get_contents($url);
//$data = json_decode($response);
$this->response($data, 200);
}
示例6: kategori_get
function kategori_get()
{
$param['search'] = get_safe('search');
$start = $this->start(get_safe('page'));
$data = $this->m_masterdata->get_auto_kategori($param, $start, $this->limit);
if (get_safe('page') == 1 & get_safe('q') == '') {
$pilih[] = array('id' => '', 'nama' => 'Pilih ...', 'kategori' => '');
$data['data'] = array_merge($pilih, $data['data']);
$data['total'] += 1;
}
$this->response($data, 200);
}
示例7: penerimaan_auto_get
function penerimaan_auto_get()
{
$param['search'] = get_safe('q');
$start = $this->start(get_safe('page'));
$data = $this->m_masterdata->get_auto_penerimaan($param, $start, $this->limit);
if (get_safe('page') == 1 & get_safe('q') == '') {
$pilih[] = array('id' => '', 'kode' => '', 'nama_program' => '');
$data['data'] = array_merge($pilih, $data['data']);
$data['total'] += 1;
}
$this->response($data, 200);
}
示例8: search_get
function search_get()
{
$param['id'] = get_safe('q');
$start = $this->start(get_safe('page'));
$data = $this->m_transaksi->search($param, $start, $this->limit);
if (get_safe('page') == 1 & get_safe('q') == '') {
$pilih[] = array('id' => '', 'kd_customer' => '', 'nama' => '--------');
$data['data'] = array_merge($pilih, $data['data']);
$data['total'] += 1;
}
$this->response($data, 200);
}
示例9: pasang
function pasang()
{
$data['title'] = 'Daftar Tempat';
$data['keyword'] = '';
$data['session'] = !empty($this->id_user) ? TRUE : FALSE;
$this->session->set_userdata(array('current_url' => substr($_SERVER['REQUEST_URI'], 1)));
$data['latitude'] = get_safe('lat');
$data['longitude'] = get_safe('lon');
if (!empty($this->id_user)) {
$data['profile'] = $this->m_config->get_profile_member($this->id_user);
}
$this->load->view('public/pasang-iklan', $data);
}
示例10: get_data_mahasiswa
function get_data_mahasiswa()
{
$q['src'] = get_safe('q');
$start = $this->start(get_safe('page'));
$q['jurusan'] = get_safe('jurusan');
$data = $this->m_autocomplete->get_auto_data_mahasiswa($q, $start, $this->limit);
if (get_safe('page') == 1 & $q == '') {
$pilih[] = array('id' => '', 'list' => '-');
$data['data'] = array_merge($pilih, $data['data']);
$data['total'] += 1;
}
die(json_encode($data));
}
示例11: __construct
public function __construct(View $view)
{
// csv download check
if (is_action('export_csv') && get_safe('object_id') == $view->identifier) {
// send the download file and halt script
$this->generateCsv($view);
}
// add "Export CSV" button on navbar
$args = url_args();
$args['action'] = 'export_csv';
$args['object_id'] = $view->identifier;
$url = url(current_path(), $args);
$view->nav->addItem(new Item(array('label' => t('Export CSV'), 'icon' => 'glyphicon-download-alt', 'url' => $url)));
}
示例12: pio_list_get
function pio_list_get()
{
if (!$this->get('page')) {
$this->response(NULL, 400);
}
$search = array('id' => $this->get('id'), 'awal' => date2mysql(get_safe('awal')), 'akhir' => date2mysql(get_safe('akhir')), 'kegunaan' => get_safe('kegunaan'), 'klasifikasi' => get_safe('klasifikasi'), 'penanya' => get_safe('penanya'), 'respon' => get_safe('respon'), 'unit' => get_safe('unit'));
$start = ($this->get('page') - 1) * $this->limit;
$data = $this->m_farklin->get_list_pio($this->limit, $start, $search);
$data['page'] = (int) $this->get('page');
$data['limit'] = $this->limit;
if ($data) {
$this->response($data, 200);
// 200 being the HTTP response code
} else {
$this->response(array('error' => 'Data tidak ditemukan'), 404);
}
}
示例13: result_get
function result_get()
{
if (!$this->get('page')) {
$this->response(NULL, 400);
}
$start = ($this->get('page') - 1) * $this->limit;
$search = array('id' => $this->get('id'), 'id_alamat' => urldecode($this->get('alamat')), 'search' => urldecode(get_safe('q')), 'id_member' => '', 'latitude' => get_safe('lat'), 'longitude' => get_safe('lon'));
$data = $this->m_home->get_list_result($this->limit, $start, $search);
$data['page'] = (int) $this->get('page');
$data['limit'] = $this->limit;
if ($data) {
$this->response($data, 200);
// 200 being the HTTP response code
} else {
$this->response(array('error' => 'Data tidak ditemukan'), 404);
}
}
示例14: accounts_get
function accounts_get()
{
if (!$this->get('page')) {
$this->response(NULL, 400);
}
$search = array('id' => $this->get('id'), 'nama' => get_safe('nama'), 'username' => get_safe('username'));
$start = $this->start($this->get('page'));
$data = $this->m_configuration->get_list_account($this->limit, $start, $search);
$data['page'] = (int) $this->get('page');
$data['limit'] = $this->limit;
if ($data) {
$this->response($data, 200);
// 200 being the HTTP response code
} else {
$this->response(array('error' => 'Data tidak ditemukan'), 404);
}
}
示例15: tunggakans_get
function tunggakans_get()
{
if (!$this->get('page')) {
$this->response(NULL, 400);
}
$start = ($this->get('page') - 1) * $this->limit;
$search = array('angkatan' => get_safe('angkatan'), 'jalur' => get_safe('jalur'), 'nim' => get_safe('nim'), 'prodi' => get_safe('prodi'), 'status_mhs' => get_safe('status_mhs'));
$data = $this->m_laporan->get_list_tunggakan($this->limit, $start, $search);
$data['page'] = (int) $this->get('page');
$data['limit'] = $this->limit;
if ($data) {
$this->response($data, 200);
// 200 being the HTTP response code
} else {
$this->response(array('error' => 'Data tidak ditemukan'), 404);
}
}