function lfGetProduct($category_id)
 {
     // FIXME SC_Product クラスを使用した実装
     $objQuery =& SC_Query_Ex::getSingletonInstance();
     $col = "alldtl.product_id, name, main_list_image, product_code_min, product_code_max, status";
     $objProduct = new SC_Product();
     $table = $objProduct->alldtlSQL();
     $table .= " LEFT JOIN dtb_product_categories AS T5 ON T5.product_id = alldtl.product_id";
     $where = "del_flg = 0 AND category_id = ?";
     // 行数の取得
     $linemax = $objQuery->count($table, $where, array($category_id));
     // 該当件数表示用
     $this->tpl_linemax = $linemax;
     $objNavi = new SC_PageNavi_Ex($this->tpl_pageno, $linemax, SEARCH_PMAX, 'fnNaviPage', NAVI_PMAX);
     $startno = $objNavi->start_row;
     $this->tpl_start_row = $objNavi->start_row;
     $this->tpl_strnavi = $objNavi->strnavi;
     // Navi表示文字列
     $this->tpl_pagemax = $objNavi->max_page;
     // ページ最大数(「上へ下へ」表示判定用)
     $this->tpl_disppage = $objNavi->now_page;
     // 表示ページ番号(「上へ下へ」表示判定用)
     // 取得範囲の指定(開始行番号、行数のセット)
     $objQuery->setLimitOffset(SEARCH_PMAX, $startno);
     $objQuery->setOrder("rank DESC, alldtl.product_id DESC");
     $arrRet = $objQuery->select($col, $table, $where, array($category_id));
     return $arrRet;
 }
 /**
  * 商品を検索する.
  *
  * @param string $where 検索条件の WHERE 句
  * @param array $arrValues 検索条件のパラメーター
  * @param integer $limit 表示件数
  * @param integer $offset 開始件数
  * @param string $order 検索結果の並び順
  * @param SC_Product $objProduct SC_Product インスタンス
  * @return array 商品の検索結果
  */
 function findProducts($where, $arrValues, $limit, $offset, $order, &$objProduct)
 {
     $objQuery =& SC_Query_Ex::getSingletonInstance();
     // 読み込む列とテーブルの指定
     $col = 'product_id, name, main_list_image, status, product_code_min, product_code_max, price02_min, price02_max, stock_min, stock_max, stock_unlimited_min, stock_unlimited_max, update_date';
     $from = $objProduct->alldtlSQL();
     $objQuery->setLimitOffset($limit, $offset);
     $objQuery->setOrder($order);
     return $objQuery->select($col, $from, $where, $arrValues);
 }
 /**
  * 商品を検索する.
  *
  * @param  string     $where      検索条件の WHERE 句
  * @param  array      $arrValues  検索条件のパラメーター
  * @param  integer    $limit      表示件数
  * @param  integer    $offset     開始件数
  * @param  string     $order      検索結果の並び順
  * @param  SC_Product $objProduct SC_Product インスタンス
  * @return array      商品の検索結果
  */
 public function findProducts($where, $arrValues, $limit, $offset, $order, &$objProduct)
 {
     $objQuery =& SC_Query_Ex::getSingletonInstance();
     // 読み込む列とテーブルの指定
     $col = '*';
     $from = $objProduct->alldtlSQL();
     $objQuery->setLimitOffset($limit, $offset);
     $objQuery->setOrder($order);
     return $objQuery->select($col, $from, $where, $arrValues);
 }