Example #1
0
 public function products($withSubs = true)
 {
     $catIds = $withSubs ? array_merge(array($this->id), $this->childIds(true)) : array($this->id);
     return Product::getByCategoryIds($catIds);
 }