Magento get path id or getpathids function to get parent category untill or upto root category
getPathIds ()
Get array categories ids which are part of category path Result array contain id of current category because it is part of the path
Returns:
array
Definition at line 584 of file Category.php.
00585 {
00586 $ids = $this->getData('path_ids');
00587 if (is_null($ids)) {
00588 $ids = explode('/', $this->getPath());
00589 $this->setData('path_ids', $ids);
00590 }
00591 return $ids;
00592 }
No comments:
Post a Comment