Exemple #1
0
 /**
  * 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'];
 }
Exemple #2
0
 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'];
 }
Exemple #3
0
 /**
  * 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;
 }