Example #1
0
 protected function getCategories()
 {
     if ($this->CategoryWithUAM == false) {
         return parent::getCategories();
     }
     $categories = Category::getCategoriesByCurrentUser($this->Name);
     if (count($categories) == 0) {
         throw new Exception('category0');
     }
     return $categories;
 }