public function getRootObjects(IBaseObject $object) { /* @var $object category */ $rootCategory = $object->getRootCategoryFromFullIds($object); if ($rootCategory) { return array($rootCategory); } return array(); }