예제 #1
0
 /**
  * Retrieve categories data objects by their ids. Return only categories that belong to specified store.
  * // LOE: Check Categories, force array output
  * @see Mage_Catalog_Model_Resource_Url::getCategories()
  *
  * @param int|array $categoryIds
  * @param int $storeId
  * @return array
  */
 public function getCategories($categoryIds, $storeId)
 {
     if ($this->_helper()->DoNotUseCategoryPathInProduct($storeId)) {
         return array();
     }
     $parent = parent::getCategories($categoryIds, $storeId);
     if (!$parent) {
         return array();
     }
     return $parent;
 }