├── .gitignore ├── .scrutinizer.yml ├── .travis.yml ├── LICENSE ├── MaterializedPathBehavior.php ├── MaterializedPathQueryTrait.php ├── README.md ├── composer.json ├── composer.lock ├── phpunit.xml.dist └── tests ├── .gitignore ├── ArrayDataSet.php ├── BaseTestCase.php ├── MaterializedPathBehaviorTestCase.php ├── MaterializedPathQueryTraitTestCase.php ├── README.md ├── bootstrap.php ├── data ├── config.php ├── data.php ├── empty.php ├── test-append-to-insert-in-empty.php ├── test-append-to-insert-in-no-empty.php ├── test-append-to-update-another-tree.php ├── test-append-to-update-deep.php ├── test-append-to-update-out.php ├── test-append-to-update-same-node.php ├── test-delete-with-children-root.php ├── test-delete-with-children.php ├── test-delete.php ├── test-insert-after-insert-end.php ├── test-insert-after-insert-gap.php ├── test-insert-after-insert-no-gap.php ├── test-insert-after-update-another-tree.php ├── test-insert-after-update-same-node.php ├── test-insert-before-insert-begin.php ├── test-insert-before-insert-gap.php ├── test-insert-before-insert-no-gap.php ├── test-insert-before-update-another-tree.php ├── test-insert-before-update-same-node.php ├── test-make-root-insert.php ├── test-make-root-update.php ├── test-prepend-to-insert-in-empty.php ├── test-prepend-to-insert-in-no-empty.php ├── test-prepend-to-update-another-tree.php ├── test-prepend-to-update-deep.php ├── test-prepend-to-update-out.php ├── test-prepend-to-update-same-node.php └── test-reorder-children.php ├── migrations └── TestMigration.php ├── models ├── AttributeModeNode.php ├── MultipleTreeNode.php ├── Node.php └── NodeQuery.php ├── mysql ├── MaterializedPathBehaviorTest.php └── MaterializedPathQueryTraitTest.php ├── pgsql ├── MaterializedPathBehaviorTest.php └── MaterializedPathQueryTraitTest.php └── sqlite ├── MaterializedPathBehaviorTest.php └── MaterializedPathQueryTraitTest.php /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/.gitignore -------------------------------------------------------------------------------- /.scrutinizer.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/.scrutinizer.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/LICENSE -------------------------------------------------------------------------------- /MaterializedPathBehavior.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/MaterializedPathBehavior.php -------------------------------------------------------------------------------- /MaterializedPathQueryTrait.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/MaterializedPathQueryTrait.php -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/README.md -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/composer.json -------------------------------------------------------------------------------- /composer.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/composer.lock -------------------------------------------------------------------------------- /phpunit.xml.dist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/phpunit.xml.dist -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- 1 | /data/config.local.php -------------------------------------------------------------------------------- /tests/ArrayDataSet.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/ArrayDataSet.php -------------------------------------------------------------------------------- /tests/BaseTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/BaseTestCase.php -------------------------------------------------------------------------------- /tests/MaterializedPathBehaviorTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/MaterializedPathBehaviorTestCase.php -------------------------------------------------------------------------------- /tests/MaterializedPathQueryTraitTestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/MaterializedPathQueryTraitTestCase.php -------------------------------------------------------------------------------- /tests/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/README.md -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/bootstrap.php -------------------------------------------------------------------------------- /tests/data/config.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/config.php -------------------------------------------------------------------------------- /tests/data/data.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/data.php -------------------------------------------------------------------------------- /tests/data/empty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/empty.php -------------------------------------------------------------------------------- /tests/data/test-append-to-insert-in-empty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-append-to-insert-in-empty.php -------------------------------------------------------------------------------- /tests/data/test-append-to-insert-in-no-empty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-append-to-insert-in-no-empty.php -------------------------------------------------------------------------------- /tests/data/test-append-to-update-another-tree.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-append-to-update-another-tree.php -------------------------------------------------------------------------------- /tests/data/test-append-to-update-deep.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-append-to-update-deep.php -------------------------------------------------------------------------------- /tests/data/test-append-to-update-out.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-append-to-update-out.php -------------------------------------------------------------------------------- /tests/data/test-append-to-update-same-node.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-append-to-update-same-node.php -------------------------------------------------------------------------------- /tests/data/test-delete-with-children-root.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-delete-with-children-root.php -------------------------------------------------------------------------------- /tests/data/test-delete-with-children.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-delete-with-children.php -------------------------------------------------------------------------------- /tests/data/test-delete.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-delete.php -------------------------------------------------------------------------------- /tests/data/test-insert-after-insert-end.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-insert-after-insert-end.php -------------------------------------------------------------------------------- /tests/data/test-insert-after-insert-gap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-insert-after-insert-gap.php -------------------------------------------------------------------------------- /tests/data/test-insert-after-insert-no-gap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-insert-after-insert-no-gap.php -------------------------------------------------------------------------------- /tests/data/test-insert-after-update-another-tree.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-insert-after-update-another-tree.php -------------------------------------------------------------------------------- /tests/data/test-insert-after-update-same-node.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-insert-after-update-same-node.php -------------------------------------------------------------------------------- /tests/data/test-insert-before-insert-begin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-insert-before-insert-begin.php -------------------------------------------------------------------------------- /tests/data/test-insert-before-insert-gap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-insert-before-insert-gap.php -------------------------------------------------------------------------------- /tests/data/test-insert-before-insert-no-gap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-insert-before-insert-no-gap.php -------------------------------------------------------------------------------- /tests/data/test-insert-before-update-another-tree.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-insert-before-update-another-tree.php -------------------------------------------------------------------------------- /tests/data/test-insert-before-update-same-node.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-insert-before-update-same-node.php -------------------------------------------------------------------------------- /tests/data/test-make-root-insert.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-make-root-insert.php -------------------------------------------------------------------------------- /tests/data/test-make-root-update.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-make-root-update.php -------------------------------------------------------------------------------- /tests/data/test-prepend-to-insert-in-empty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-prepend-to-insert-in-empty.php -------------------------------------------------------------------------------- /tests/data/test-prepend-to-insert-in-no-empty.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-prepend-to-insert-in-no-empty.php -------------------------------------------------------------------------------- /tests/data/test-prepend-to-update-another-tree.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-prepend-to-update-another-tree.php -------------------------------------------------------------------------------- /tests/data/test-prepend-to-update-deep.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-prepend-to-update-deep.php -------------------------------------------------------------------------------- /tests/data/test-prepend-to-update-out.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-prepend-to-update-out.php -------------------------------------------------------------------------------- /tests/data/test-prepend-to-update-same-node.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-prepend-to-update-same-node.php -------------------------------------------------------------------------------- /tests/data/test-reorder-children.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/data/test-reorder-children.php -------------------------------------------------------------------------------- /tests/migrations/TestMigration.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/migrations/TestMigration.php -------------------------------------------------------------------------------- /tests/models/AttributeModeNode.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/models/AttributeModeNode.php -------------------------------------------------------------------------------- /tests/models/MultipleTreeNode.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/models/MultipleTreeNode.php -------------------------------------------------------------------------------- /tests/models/Node.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/models/Node.php -------------------------------------------------------------------------------- /tests/models/NodeQuery.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/models/NodeQuery.php -------------------------------------------------------------------------------- /tests/mysql/MaterializedPathBehaviorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/mysql/MaterializedPathBehaviorTest.php -------------------------------------------------------------------------------- /tests/mysql/MaterializedPathQueryTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/mysql/MaterializedPathQueryTraitTest.php -------------------------------------------------------------------------------- /tests/pgsql/MaterializedPathBehaviorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/pgsql/MaterializedPathBehaviorTest.php -------------------------------------------------------------------------------- /tests/pgsql/MaterializedPathQueryTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/pgsql/MaterializedPathQueryTraitTest.php -------------------------------------------------------------------------------- /tests/sqlite/MaterializedPathBehaviorTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/sqlite/MaterializedPathBehaviorTest.php -------------------------------------------------------------------------------- /tests/sqlite/MaterializedPathQueryTraitTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/paulzi/yii2-materialized-path/HEAD/tests/sqlite/MaterializedPathQueryTraitTest.php --------------------------------------------------------------------------------