/** * Gets a hierarchial path to a given tree node * * The result is a sequence of record starting from a root node * E.x. Consider a tree branch: Electronics -> Computers -> Laptops * The path of "Laptops" will be a record set (ARSet) with a following order of records: * 1. Electronics * 2. Computers * * @param bool $includeRootNode * @param bool $loadReferencedRecords * @return array */ public function getPathNodeArray($includeRootNode = false, $loadReferencedRecords = false) { $className = get_class($this); return ActiveTreeNode::getRecordSetArray($className, $this->getPathNodeFilter($includeRootNode), $loadReferencedRecords); }