@@ -311,6 +311,9 @@ |
||
| 311 | 311 | } |
| 312 | 312 | |
| 313 | 313 | # 携帯端末かどうかを判定し、ビューをロードするプライベートメソッドです。 |
| 314 | + /** |
|
| 315 | + * @param string $file |
|
| 316 | + */ |
|
| 314 | 317 | private function _load_view($file, $data = '') |
| 315 | 318 | { |
| 316 | 319 | # 携帯端末の場合は、「_mobile」がファイル名に付くビューファイルをロードします。 |
@@ -18,6 +18,9 @@ discard block |
||
| 18 | 18 | return $query->result(); |
| 19 | 19 | } |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $id |
|
| 23 | + */ |
|
| 21 | 24 | public function get_category_name($id) |
| 22 | 25 | { |
| 23 | 26 | $this->db->select('name'); |
@@ -27,6 +30,10 @@ discard block |
||
| 27 | 30 | return $row->name; |
| 28 | 31 | } |
| 29 | 32 | |
| 33 | + /** |
|
| 34 | + * @param string $cat_id |
|
| 35 | + * @param string $offset |
|
| 36 | + */ |
|
| 30 | 37 | public function get_product_list($cat_id, $limit, $offset) |
| 31 | 38 | { |
| 32 | 39 | $this->db->where('category_id', $cat_id); |
@@ -35,6 +42,9 @@ discard block |
||
| 35 | 42 | return $query->result(); |
| 36 | 43 | } |
| 37 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $cat_id |
|
| 47 | + */ |
|
| 38 | 48 | public function get_product_count($cat_id) |
| 39 | 49 | { |
| 40 | 50 | $this->db->where('category_id', $cat_id); |
@@ -49,6 +59,9 @@ discard block |
||
| 49 | 59 | return $query->row(); |
| 50 | 60 | } |
| 51 | 61 | |
| 62 | + /** |
|
| 63 | + * @param integer $id |
|
| 64 | + */ |
|
| 52 | 65 | public function is_available_product_item($id) |
| 53 | 66 | { |
| 54 | 67 | $this->db->where('id', $id); |
@@ -63,6 +76,10 @@ discard block |
||
| 63 | 76 | } |
| 64 | 77 | } |
| 65 | 78 | |
| 79 | + /** |
|
| 80 | + * @param string $q |
|
| 81 | + * @param string $offset |
|
| 82 | + */ |
|
| 66 | 83 | public function get_product_by_search($q, $limit, $offset) |
| 67 | 84 | { |
| 68 | 85 | # 検索キーワードをスペースで分割し、like()メソッドでLIKE句を指定します。 |
@@ -78,6 +95,9 @@ discard block |
||
| 78 | 95 | return $query->result(); |
| 79 | 96 | } |
| 80 | 97 | |
| 98 | + /** |
|
| 99 | + * @param string $q |
|
| 100 | + */ |
|
| 81 | 101 | public function get_count_by_search($q) |
| 82 | 102 | { |
| 83 | 103 | $this->db->select('name'); |