×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Nilesh Yadav
Added: Jun 24, 2017 8:12 PM
Views: 10
Tags: no tags
  1. public function getDocumentList($condition_params) {
  2.         $return_result = array();
  3.         if (!empty($condition_params)) {
  4.             $this->db->select('media.doc_path,');
  5.             $this->db->from(self::TABLE_NAME);
  6.             $this->db->join('media', 'media.user_doc_id = user_docs.doc_id');
  7.             $result = $this->db->get();
  8.             if ($result && $result->num_rows() > 0) {
  9.                 $return_result = $result->result_array();
  10.             }
  11.         }
  12.         return $return_result;
  13. }