data_structures
[ class tree: data_structures ] [ index: data_structures ] [ all elements ]

Class: TreeRoot

Source Location: /data_structures/TreeRoot.class.php

Class Overview




Author(s):

Version:

  • 0.1.11

Copyright:

  • Copyright (C) 2005 Daniel Plücken <daniel@debakel.net>

    This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

    This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Variables

Methods


Child classes:


Class Details

[line 55]


Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  0.1.11
copyright:  

Copyright (C) 2005 Daniel Plücken <daniel@debakel.net>

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

license:  GNU Lesser General Public License


[ Top ]


Class Variables

$children =  null

[line 61]



Tags:

access:  public

Type:   Vector


[ Top ]



Class Methods


constructor TreeRoot [line 67]

TreeRoot TreeRoot( )

Constructor



[ Top ]

method addChild [line 137]

void addChild( &$obj_ref, [integer $pos = ""], TreeNode $obj_ref)

Adds a childnode of type TreeNode to this object.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.0
since:  0.1.0
access:  public


Parameters:

TreeNode   $obj_ref  
integer   $pos  
   &$obj_ref  

[ Top ]

method buildTree [line 85]

void buildTree( array &$array, string $primary_key, string $recursive_key)

Builds a tree from a given two dimensional array.



Tags:

author:  Daniel Plücken <daniel@debakel.net>
version:  1.1
since:  0.1.1
access:  public


Parameters:

array   &$array   A two dimensional array.
string   $primary_key   The keyname whose value represents an id.
string   $recursive_key   The keyname whose value refers to the value of $primary_key

[ Top ]


Documentation generated on Thu, 05 Jun 2008 19:15:32 +0200 by phpDocumentor 1.4.1