Exemplo n.º 1
0
 /**
  *
  * 検索結果対象となる商品の数を返す。
  * @param array      $whereAndBind
  * @param Product $objProduct
  */
 public function getLineCount($whereAndBind, Product &$objProduct)
 {
     $where = $whereAndBind['where'];
     $bind = $whereAndBind['bind'];
     // 検索結果対象となる商品の数を取得
     $objQuery = Application::alias('eccube.query');
     $objQuery->setWhere($where);
     $linemax = $objProduct->findProductCount($objQuery, $bind);
     return $linemax;
     // 何件が該当しました。表示用
 }