bartko-s / stefano-tree Goto Github PK
View Code? Open in Web Editor NEWFramework agnostic Nested Set (MPTT) implementation for PHP
Home Page: https://bartko-s.github.io/stefano-tree
License: BSD 3-Clause "New" or "Revised" License
Framework agnostic Nested Set (MPTT) implementation for PHP
Home Page: https://bartko-s.github.io/stefano-tree
License: BSD 3-Clause "New" or "Revised" License
Is there any way to move a Node up or down by X positions.
Example, changing the order of a set of child nodes you would need to move a single item up or down in a list, this could be move by X up/down within its level, not having to specify target node.
Add Laravel query builder support
Can you add support for Codeigniter
Could you please support Phalcon so we can use models instead of using direct database access ?
Although it says in the README that it doesn't have any dependencies, the way it's today, it needs Doctrine and Zend\Db. It needs to be installed to be able to use the NestedSet
class. I think that class only needs to get an instance of an AdapterInterface
and everything else should be handled outside of this class.
What do you think?
Could you take a look of this:
https://github.com/drinkjava2/Multiple-Columns-Tree
Use 2 extra columns: (sorted) line and depth, will easily do SQL query/delete/insert operations for child/sibling/parent nodes.
I'm trying to upgrade from 2.x to 4.x and I can't find any BC breaks before 3.1 unless I search through all revisions of the update file. Is there a summary I can find somewhere? Right now I fail properly upgrading due to the lack of BC break documentation and what the replacement of those functions should be.
Any guide for using soft delete behavior in data ?
Show all, or show just Undeleted for tree results.
Thanks for awesome and useful project btw ๐
Hi,
I have few questions.
What is a scope?
Is there a way to have many root nodes?
When you move a node, will the "target" be the new parentId?
Thanks!
I've been trying to integrate this library into Joomla components.
My actual struggle is; for an example taking the following code from the documentation:
` try {
$data = array(
// values
// id_column_name => uuid
);
// create root node.
$rootNodeId = $tree->createRootNode($data);
// create root node. Second param "$scope" is required only if scope support is enabled.
$rootNodeId = $tree->createRootNode($data, $scope);
} catch (ValidationException $e) {
$errorMessage = $e->getMessage();
} `
what is going to be the values for this section
$data = array( // values // id_column_name => uuid );
if my database table has these columns
'tableName' => 'vz0q4_users', 'idColumnName' => 'id', 'sequenceName' => 'categories', 'scopeColumnName' => 'scope', 'leftColumnName' => 'lft', 'rightColumnName' => 'rght', 'levelColumnName' => 'level', 'parentIdColumnName' => 'parent_id'
Thank you.
Library supports only auto generated node ID (sequence, auto increment). Add support for user defined id (uuid, ...).
Hi,
Did you already created something to retrieve the complete tree structure back instead of a flat array?
Thanks!
Create Online Demo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.