You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
644 B
PHP
31 lines
644 B
PHP
<?php
|
|
|
|
class Branch extends CI_Model
|
|
{
|
|
public $brCode;
|
|
public $brDesc;
|
|
public $address;
|
|
public $contactInfo;
|
|
public $editDate;
|
|
public $creationDate;
|
|
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
|
|
$this->load->database();
|
|
}
|
|
|
|
public function getbrCodeAndDesc()
|
|
{
|
|
$this->db->select("brCode, brDesc");
|
|
return $this->db->get("branch");
|
|
}
|
|
|
|
public function getbrCodeAndDescWithBranchExcempt()
|
|
{
|
|
$this->db->select("brCode, brDesc");
|
|
$this->db->where("brCode NOT IN (SELECT brCode FROM branchexemption)");
|
|
return $this->db->get("branch");
|
|
}
|
|
} |