当前位置: 首页>>代码示例>>PHP>>正文


PHP get_safe函数代码示例

本文整理汇总了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);
 }
开发者ID:arvinnizar,项目名称:taudimana,代码行数:7,代码来源:user.php

示例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);
 }
开发者ID:arvinnizar,项目名称:taudimana,代码行数:26,代码来源:status.php

示例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);
 }
开发者ID:arvinnizar,项目名称:taudimana,代码行数:8,代码来源:config.php

示例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);
 }
开发者ID:arvinnizar,项目名称:anggaran,代码行数:8,代码来源:transaksi.php

示例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);
 }
开发者ID:arvinnizar,项目名称:taudimana,代码行数:10,代码来源:autocomplete.php

示例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);
 }
开发者ID:arvinnizar,项目名称:taudimana,代码行数:12,代码来源:masterdata_auto.php

示例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);
 }
开发者ID:arvinnizar,项目名称:anggaran,代码行数:12,代码来源:masterdata_auto.php

示例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);
 }
开发者ID:arvinnizar,项目名称:elibrary,代码行数:12,代码来源:transaksi_auto.php

示例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);
 }
开发者ID:arvinnizar,项目名称:taudimana,代码行数:13,代码来源:result.php

示例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));
 }
开发者ID:arvinnizar,项目名称:akn,代码行数:13,代码来源:autocomplete.php

示例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)));
 }
开发者ID:moiseh,项目名称:codegen,代码行数:14,代码来源:CsvExporter.php

示例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);
     }
 }
开发者ID:arvinnizar,项目名称:taudimana,代码行数:17,代码来源:farklin.php

示例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);
     }
 }
开发者ID:arvinnizar,项目名称:taudimana,代码行数:17,代码来源:main.php

示例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);
     }
 }
开发者ID:arvinnizar,项目名称:flight-recorder,代码行数:17,代码来源:configuration.php

示例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);
     }
 }
开发者ID:arvinnizar,项目名称:taudimana,代码行数:17,代码来源:laporan.php


注:本文中的get_safe函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。