public function getAllChildren($parentID)
    {
        $children = $this->getChildren($parentID);
        foreach ($children as $key => $child){
            $this->categoriesToBeDeleted[$child->categoryID] = $child;
            $this->getAllChildren($child->categoryID);
        }
    }
public function getAllChildren($parentID)
    {
        $children = $this->getChildren($parentID);
        foreach ($children as $key => $child){
            $this->categoriesToBeDeleted[$child->categoryID] = $child;
            $this->getAllChildren($child->categoryID);
        }
    }
public function getAllChildren ( $ parentID ) { $ children = $ this -> getChildren ( $ parentID ) ; foreach ( $ children as $ key => $ child ) { $ this -> categoriesToBeDeleted [ $ child -> categoryID ] = $ child ; $ this -> getAllChildren ( $ child -> categoryID ) ; } }
Get all children tree of a parent.

@param $parentID
Get all children tree of a parent .