示例#1
0
 /**
  * Get the product category using slug.
  * @param  String $productCategorySlug - the unique slug of the ProductCategory
  * @return an object of product category
  */
 private function getProductCategoryUsingSlug($productCategorySlug)
 {
     $rowSet = ProductCategory::findFirst(array('conditions' => 'product_category_slug = ?1', 'bind' => array(1 => $productCategorySlug)));
     return $rowSet;
 }