/** * Constructor of TraversalTree. * @param Connection $connection * @param Table $table * @return void */ public function __construct(Connection $connection, Table $table) { parent::__construct($connection, $table); $columns = $this->table->getColumns(); $this->parent = $columns['parent']; $this->left = $columns['left']; $this->right = $columns['right']; }
public function __construct(Connection $connection, Table $table) { parent::__construct($connection, $table); $columns = $this->table->getColumns(); $this->parent = $columns['parent']; $this->order = $columns['order']; $this->depth = $columns['depth']; }
/** * Constructor of LevelTree. * @param Connection $connection * @param Table $table * @return void */ public function __construct(Connection $connection, Table $table) { parent::__construct($connection, $table); $this->isMax = False; }