• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

PHP get_safe函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中get_safe函数的典型用法代码示例。如果您正苦于以下问题:PHP get_safe函数的具体用法?PHP get_safe怎么用?PHP get_safe使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了get_safe函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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


示例16: pengajuan_cutis_get

 function pengajuan_cutis_get()
 {
     if (!$this->get('page')) {
         $this->response(NULL, 400);
     }
     $start = ($this->get('page') - 1) * $this->limit;
     $search = array('id' => $this->get('id'), 'nip' => get_safe('nip'), 'id_kategori' => get_safe('jenis_pengajuan_cuti'), 'awal' => get_safe('awal'), 'akhir' => get_safe('akhir'), 'status' => get_safe('status_pengajuan'));
     $data = $this->m_transaksi->get_data_pengajuan_cuti($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,代码来源:status.php


示例17: pencairans_get

 function pencairans_get()
 {
     if (!$this->get('page')) {
         $this->response(NULL, 400);
     }
     $start = ($this->get('page') - 1) * $this->limit;
     $search = array('id' => $this->get('id'), 'awal' => date2mysql(get_safe('awal')), 'akhir' => date2mysql(get_safe('akhir')), 'nobukti' => get_safe('nobukti'), 'nokode' => get_safe('nokode'), 'nourut' => get_safe('nourut'), 'uraian' => get_safe('uraian'));
     $data = $this->m_transaksi->get_list_pencairans($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,项目名称:anggaran,代码行数:17,代码来源:transaksi.php


示例18: kemampuans_get

 function kemampuans_get()
 {
     if (!$this->get('page')) {
         $this->response(NULL, 400);
     }
     $search = array('nama' => get_safe('nama'), 'kode' => get_safe('kode'), 'id' => $this->get('id'));
     $start = $this->start($this->get('page'));
     $data = $this->m_masterdata->get_list_kemampuans($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,代码来源:masterdata.php


示例19: header_excel

<?php

header_excel('rekap-hurt.xls');
?>
<table>
    <tr>
        <td colspan="10">REKAP HURT <?php 
echo get_safe('tanggal') === '' ? 'SEMUA TANGGAL' : 'TANGGAL ' . get_safe('tanggal');
?>
</td>
    </tr>
</table>
<table border="1">
    <thead>
        <tr>
            <th width="3%">No.</th>
            <th width="10%" class="left">tanggal</th>
            <th width="20%" class="left">Penerbang</th>
            <th width="10%" class="left">Kualifikasi</th>
            <th width="15%" class="left">Mission/Exc</th>
            <th width="7%" class="left">F/B Seat</th>
            <th width="10%">Terbang Ke</th>
            <th width="10%">Total<br/>Resiko</th>
            <th width="10%" class="left">Kode<br/>Warna</th>
            <th width="10%" class="left">Remark</th>
        </tr>
    </thead>
    <tbody>
        <?php 
foreach ($data as $key => $value) {
    $warna = 'style="background:' . $value->warna . ';"';
开发者ID:arvinnizar,项目名称:flight-recorder,代码行数:31,代码来源:export-hurt.php


示例20: export_pendaftar

 function export_pendaftar()
 {
     $search = array('awal' => date2mysql(get_safe('awal')), 'akhir' => date2mysql(get_safe('akhir')), 'nama' => get_safe('nama'), 'no_daftar' => get_safe('no_daftar'), 'pilihan1' => get_safe('pilihan1'), 'pilihan2' => get_safe('pilihan2'), 'ta' => get_safe('ta'));
     $data = $this->m_masterdata->get_list_pmb(NULL, NULL, $search);
     $this->load->view('restricted/export-pendaftar', $data);
 }
开发者ID:arvinnizar,项目名称:akn,代码行数:6,代码来源:restrictarea.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP get_safe_replace函数代码示例发布时间:2022-05-15
下一篇:
PHP get_rtmedia_user_link函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap