%PDF-1.4 404 Not Found
Sh3ll



Directory :  /var/www/vhosts/lautnusantara.com/httpdocs/mis/app/Models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Current File : /var/www/vhosts/lautnusantara.com/httpdocs/mis/app/Models/Perusahaan_Model.php
<?php
namespace App\Models;
use CodeIgniter\Model;

class Perusahaan_Model extends Model
{
	
	public function get_data($id = false)
	{ 
		
		$builder = $this->db->table('ssn_perusahaan');
		$builder->select('ssn_perusahaan.*');
		
		if($id!=false)
		{
			$builder->where('ssn_perusahaan.id',$id);
		}
		
		$builder->orderBy('ssn_perusahaan.id', 'DESC');
		
		
		return $builder->get();
	} 
	
	public function save_data($data)
	{
		$query = $this->db->table('ssn_perusahaan')->insert($data);
		return $query;
	}
	
	public function update_data($data,$id)
	{
		$query = $this->db->table('ssn_perusahaan')->update($data, array('id'=> $id));
		return $query;	
	}
	
	public function delete_data($data,$id)
	{
		$query = $this->db->table('ssn_perusahaan')->update($data, array('id'=> $id));
		return $query;	
	}
	
}
?>

WonXd677 Sh3LL