本文整理汇总了PHP中Tracking::add_tracking方法的典型用法代码示例。如果您正苦于以下问题:PHP Tracking::add_tracking方法的具体用法?PHP Tracking::add_tracking怎么用?PHP Tracking::add_tracking使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tracking
的用法示例。
在下文中一共展示了Tracking::add_tracking方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: export_kimia
public function export_kimia($id_analisis)
{
$this->load->model(['type_pemohon_m', 'lokasi_m', 'conto_m']);
$analisis = $this->analisis_m->find($id_analisis);
$conto = $this->conto_m->by_analisis($analisis->id);
$analisis_parameter = $this->analisis_m->parameter($id_analisis);
$pemohon = $this->pemohon_m->find($analisis->id_pemohon);
$type_pemohon = $this->type_pemohon_m->find($pemohon->id_type_pemohon);
$analisis->nama_lokasi = $this->lokasi_m->detail_by_kabupaten($analisis->lokasi, TRUE);
if (!$this->_is_pihak_luar($pemohon->id_type_pemohon)) {
$pemohon->nama_sertifikat = 'Kp. ' . $type_pemohon->nama;
$pemohon->alamat = 'PSDG';
}
foreach ($conto as $key => $row_conto) {
$conto[$key]->detail_parameter = $this->conto_m->parameter($row_conto->id);
}
foreach ($analisis_parameter as $key => $row_parameter) {
$parameter = $this->parameter_m->find_type_analisis_parameter($row_parameter->id_type_analisis_parameter);
$metoda = $this->metoda_m->find($row_parameter->id_metoda);
$analisis_parameter[$key]->nama_parameter = $parameter->nama_parameter;
$analisis_parameter[$key]->metoda = !$metoda ? '' : $metoda->nama;
}
// Memasukkan data hasil analisis ke lembar hasil analisis
$tracking = new Tracking();
if (!$tracking->isset_tracking($analisis->id, 9)) {
$tracking->add_tracking($analisis->id, 9);
}
$data = ['analisis' => $analisis, 'conto' => $conto, 'parameter' => $analisis_parameter, 'pemohon' => $pemohon];
$this->load->view('sertifikat/excel_kimia', $data);
}
示例2: update_to_proses
/**
* Id tracking 2 preparasi conto
*/
public function update_to_proses()
{
$input = $this->input->post();
$this->preparasi_m->update_to_proses($input['id']);
$tracking = new Tracking();
$tracking->add_tracking($input['id_analisis'], 3);
redirect('preparasi/detail/' . $input['id']);
}
示例3: _add_tracking
private function _add_tracking($id_analisis, $id_kegiatan)
{
$tracking = new Tracking();
$tracking->add_tracking($id_analisis, $id_kegiatan);
}
示例4: selesai_analisis
public function selesai_analisis()
{
$id_analisis = $this->input->post('id');
$tracking = new Tracking();
$tracking->add_tracking($id_analisis, 13);
$input = ['id' => $id_analisis, 'is_selesai' => 1];
$this->analisis_m->set_selesai($input);
redirect('permohonan/detail/' . $id_analisis);
}