本文整理汇总了PHP中grocery_CRUD::unset_save方法的典型用法代码示例。如果您正苦于以下问题:PHP grocery_CRUD::unset_save方法的具体用法?PHP grocery_CRUD::unset_save怎么用?PHP grocery_CRUD::unset_save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类grocery_CRUD
的用法示例。
在下文中一共展示了grocery_CRUD::unset_save方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: persutujuan_daftar_kegiatan_berkas
public function persutujuan_daftar_kegiatan_berkas()
{
try {
$crud = new grocery_CRUD();
$state = $crud->getState();
$id_kegiatan_transaksi = $this->uri->segment(3);
$crud->where('id_kegiatan_transaksi', $id_kegiatan_transaksi);
$crud->set_table('tbl_kegiatan_transaksi_berkas');
$crud->set_subject('Daftar Berkas Pegawai');
$crud->set_field_upload('berkas', 'assets/uploads/berkas');
$crud->fields('no', 'judul', 'berkas', 'keterangan');
$crud->columns('no', 'judul', 'berkas', 'keterangan');
$crud->order_by('id_kegiatan_transaksi_berkas', 'desc');
//$crud->change_field_type('nama_depan', 'readonly');
$crud->unset_save();
$crud->unset_add();
$crud->unset_edit();
$crud->unset_read();
$crud->unset_delete();
$sitemap = $this->get_sitemap();
$output = $crud->render($sitemap);
$this->load->view('theme/theme_pegawai', $output);
} catch (Exception $e) {
show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
}
}
示例2: konten_statis
public function konten_statis()
{
try {
$crud = new grocery_CRUD();
$crud->set_table('tbl_konten_statis');
$crud->set_subject('Konten Statis');
$crud->set_field_upload('gambar', 'assets/uploads/gambar');
$crud->required_fields('judul', 'deskripsi');
$crud->fields('nama', 'judul', 'deskripsi', 'gambar');
$crud->columns('nama', 'judul', 'deskripsi');
$crud->order_by('id_konten_statis', 'desc');
$crud->unset_save();
$crud->unset_read();
$sitemap = $this->get_sitemap();
$output = $crud->render($sitemap);
$this->load->view('theme/theme_default', $output);
} catch (Exception $e) {
show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
}
}
示例3: pesan
public function pesan()
{
try {
$status = $this->input->get("status");
$crud = new grocery_CRUD();
if (isset($status) and !empty($status)) {
$crud->where('tbl_pertanyaan_user.status', $status);
}
$crud->set_table('tbl_pertanyaan_user');
$crud->set_subject('Pesan');
$crud->set_relation('change_by', 'tbl_user', 'email');
$crud->set_relation('id_user', 'tbl_user', '{nama_depan} {nama_belakang}');
$crud->required_fields('jawaban');
$crud->fields('id_user', 'judul', 'pertanyaan', 'jawaban', 'status', 'change_by', 'change_date');
$crud->columns('id_user', 'judul', 'pertanyaan', 'status');
$crud->display_as("id_user", "Penanya");
$crud->callback_before_update(array($this, 'get_change_by_callback'));
$crud->callback_before_insert(array($this, 'get_change_by_callback'));
$crud->callback_field('change_date', array($this, 'format_date_callback'));
$crud->change_field_type('id_user', 'readonly');
$crud->change_field_type('judul', 'readonly');
$crud->change_field_type('pertanyaan', 'readonly');
$crud->change_field_type('change_by', 'readonly');
$crud->change_field_type('change_date', 'readonly');
$crud->unset_export();
$crud->unset_print();
$crud->unset_save();
$crud->unset_add();
$crud->unset_edit();
$crud->unset_delete();
$crud->order_by('id_pertanyaan_user', 'desc');
$sitemap = $this->get_sitemap();
$output = $crud->render($sitemap);
$this->load->view('theme/theme_pegawai', $output);
} catch (Exception $e) {
show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
}
}
示例4: kenaikan_pangkat_daftar
public function kenaikan_pangkat_daftar($id_user = NULL)
{
try {
$crud = new grocery_CRUD();
$crud->where('id_user', $id_user);
$crud->set_table('tbl_user_pangkat');
$crud->set_subject('History kenaikan Pangkat');
$crud->unset_save();
//$crud->unset_edit();
//$crud->unset_delete();
$crud->unset_read();
//$crud->unset_add();
$crud->order_by('change_date', 'desc');
$sitemap = $this->get_sitemap();
$output = $crud->render($sitemap);
$this->load->view('theme/theme_default', $output);
} catch (Exception $e) {
show_error($e->getMessage() . ' --- ' . $e->getTraceAsString());
}
}