public function getTreeIds($includeSelf = true, $includeParents = false)
    {
        if ( $includeParents ) {
            return array_merge($this->getParentsId(), $this->getChildrenId($includeSelf));
        } else {
            return $this->getChildrenId($includeSelf);
        }
    }
public function getTreeIds($includeSelf = true, $includeParents = false)
    {
        if ( $includeParents ) {
            return array_merge($this->getParentsId(), $this->getChildrenId($includeSelf));
        } else {
            return $this->getChildrenId($includeSelf);
        }
    }
public function getTreeIds ( $ includeSelf = true , $ includeParents = false ) { if ( $ includeParents ) { return array_merge ( $ this -> getParentsId ( ) , $ this -> getChildrenId ( $ includeSelf ) ) ; } else { return $ this -> getChildrenId ( $ includeSelf ) ; } }
Returns ids of children and subchildren of current model.
@param boolean $includeSelf also returns self id
@param boolean $includeParents also returns parents ids
@return []
Returns ids of children and subchildren of current model .