public function getDocTemplateList($_data) { $branch_no = (int) $_data['branch_no']; $where = array('tpl_doc_no <> 0', "branch_no ={$branch_no}"); $db = new TplDocumentTable(); return $db->getPairs(null, null, 0, $where); }