Changeset 21433 for branches/version-2_12-dev/data/class/SC_Product.php
- Timestamp:
- 2012/02/03 11:07:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/SC_Product.php
r21420 r21433 75 75 $table = <<< __EOS__ 76 76 dtb_products AS alldtl 77 LEFT JOIN dtb_products_class78 ON alldtl.product_id = dtb_products_class.product_id79 LEFT JOIN dtb_product_categories80 ON alldtl.product_id = dtb_product_categories.product_id81 77 __EOS__; 82 78 $objQuery->setGroupBy('alldtl.product_id'); … … 118 114 $table = <<< __EOS__ 119 115 dtb_products AS alldtl 120 LEFT JOIN dtb_products_class 121 ON alldtl.product_id = dtb_products_class.product_id 122 LEFT JOIN dtb_product_categories 123 ON alldtl.product_id = dtb_product_categories.product_id 124 __EOS__; 125 $objQuery->setGroupBy('alldtl.product_id'); 126 $sql_base = $objQuery->getSql('alldtl.product_id',$table); 127 return $objQuery->getOne( "SELECT count(*) FROM ( $sql_base ) as t" , $arrVal); 116 __EOS__; 117 return $objQuery->count($table, '', $arrVal); 128 118 } 129 119
Note: See TracChangeset
for help on using the changeset viewer.
