PHP uygulanan bir kendi Ağacı nesne var. Bizim gibi bir ağaç var ki:
Root |_ Folder 1 |_ Folder 2 |_ Subfolder 1
I Subfolder 1 bu gibi erişebilirsiniz:
$sf1 = $Tree->NavigateTo("Folder 2/Subfolder 1")
Ve $sf1 Subfolder 1 düğüm yapacak. Ben bir GetParentNode() yöntemi uygulamak istiyorum, böylece
$parent = $sf1->GetParentNode()  // Equivalent to Folder 2
Bu Ağacı tanımı:
class JaxpTree
{
    /**
     * @var     JaxpTree|JaxpTreeNode    Array of Tree nodes.
     * @access  public
     */
    public $Nodes;
    /**
     * @var     JaxpList    Array of Tree items.
     * @access  public
     */
    public $ItemList;
}
Bu Ağaç nesneleri iç içe çalışır, bu yüzden Subfolder 1 ulaşılabilir ayrıca beğendim:
$Tree->Nodes["Folder 2"]->Nodes["Subfolder 1"]
hangi TreeNode bir nesne olacaktır:
/**
 * Represents a Tree node.
 *
 * @package     Jaxp.Trees
 * @subpackage  TreeNode
 * @since       1.0
 */
class JaxpTreeNode
{
    /**
     * @var     int Node id.
     * @access  public
     */
    public $Id;
    /**
     * @var     JaxpTreeNodeAttributes  Contains the node's attributes.
     * @access  public
     */
    public $Attributes;
}
Buradan nasıl erişen ana düğüm uygulayabilirsiniz?
Solved
Solution is to add a Parent property which contains a reference to the parent node. Thanks!