Exemple #1
0
 /**
  * @return array
  */
 protected function buildCategoryData()
 {
     $pid = (int) $this->arguments['categoryPid'];
     if (!array_key_exists($pid, self::$categoryDataCache)) {
         self::$categoryDataCache[$pid] = $this->categoryRepository->findByPid($pid);
     }
     return self::$categoryDataCache[$pid];
 }
Exemple #2
0
 /**
  * @return mixed
  */
 protected function getCategoryRecords()
 {
     return $this->categoryRepository->findByPid($this->categoryPid);
 }