Exemple #1
0
 public function getProductsFileUri($products_id, $purpose)
 {
     $where = array('product_id' => $products_id, 'purpose' => $purpose);
     $column = array('product_id', 'filename');
     $result = $this->product_file_db->selectRows($where, $column);
     $static_server_uri = ConfigParser::get('system', 'static_server_uri');
     foreach ($result as $row) {
         $data[$row['product_id']] = $static_server_uri . $row['filename'];
     }
     return $data;
 }