Download the PHP package youwe/data-dictionary without Composer
On this page you can find all versions of the php package youwe/data-dictionary. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download youwe/data-dictionary
More information about youwe/data-dictionary
Files in youwe/data-dictionary
Package data-dictionary
Short Description A data dictionary for Pimcore
License gpl-3.0
Informations about the package data-dictionary
Data Dictionary
Creates a diagram of the current datamodel inside Pimcore.
Install
Install the bundle with composer, go to the directory of the project and run the following command:
And then enable the bundle:
And youre done!
First interface: Visitor
Nice, so the next step is to create a class that implements the interface:
In this class you will be able to change the graph that you will receive through the setGraph method. Before calling the visit method, the data dictionary will provide the field definition (setFieldDefinition), the class definition (setClassDefinition) and the graph.
We encourage you to implement those in separated class, and not in your main DataType class.
You can also extend the class
That implements all the methods from the interface except the method visit, you will have in this class the following properties:
Second interface: DataDictionary
After you implement your visitor class, you will have to indicate how to load it, so you will have to implement an interface that will give us a method to recover your class.
The method getVisitor receive as parameter the class name of the field definition that should be visited by the data dictionary.
Edit the services.yml to enable it
In the services.yml file you should add:
Results
You can get the data dictionary by going to the setting (gear icon) -> Show Current Data Dictionary. Then a new tab wil be opened with the data dictionary.
Or you can get the data dictionary directly going to the following URL:
http://
Remember to change the localhost to your own pimcore host name.
Todo
- [ ] Create a diagram with all the classes, attributes and relations;
- [x] Classes;
- [x] Attributes;
- [x] Relations (basic);
- [ ] Create specific elements for specific cases:
- [x] Localized fields;
- [x] Object Bridge
- [x] Bricks
- [ ] Block;
- [ ] Field collection;
- [ ] Tables;
- [ ] Classificationstore
- [ ] Generate textual documentation;
- [ ] Create links between the diagram and the documentation;
All versions of data-dictionary with dependencies
graphp/graphviz Version ^0.2.1
clue/graph Version ^0.9.0