ZenTao project management software packaging specification (V1.1)
- 2022-12-21 13:29:03
- Kelsea
- 1142
- Last edited by Hongyan on 2023-01-11 16:16:48
- Share links
In the secondary development process, good functions can be packaged into plug-ins and shared with everyone. We have sorted out the ZenTao project management software packaging specifications.
1. Expandable elements
Directory | Description |
---|---|
bin | For example, the new command line script program. |
config | For example, configuration files can be changed. |
db | The install.sql and uninstall.sql can be stored under the db directory, corresponding to the sql scripts that need to be executed during installation and the sql scripts that need to be executed during uninstallation, respectively. |
doc | Documentation related to this plugin. |
lib | It is possible to add a new class or make changes to an existing class. |
module | It is possible to add a new module or to extend the functionality of an existing module. |
www | It is possible to publish your own style. Changes can also be made to the js file. |
2. The documents should be in doc Directory
The doc directory contains the configuration information of the plug-in, which is stored according to the language. For example, the English version is saved as en.yaml, and the Chinese zh-cn.yaml
The configuration file of the plug-in adopts yaml format, which contains the basic information of the plug-in and the release information of previous versions.
3. The files under the db directory
The db directory can contain install.sql and uninstall.sql. As the name implies, install.sql is the sql statement to be executed when the plugin is installed, and uninstall.sql is the sql statement to be executed when the plugin is uninstalled. In this way, if your plug-in involves changes to the database, you can put the corresponding sql statement in these two files, and ZenTao's plug-in management program will automatically execute it.
4. The files under module
For the files under the module directory, just deploy the corresponding directory structure according to our plug-in extension mechanism.
5. Extension of the main configuration file
In the actual process, it may be necessary to expand the global configuration file. In this case, the extended configuration file can be placed under zentao/config/ext/.
6. Install and delete hooks
If you need to perform some operations before installation, after installation, before uninstallation, or after uninstallation, you can create a hook directory, and then create preinstall.php, postinstall.php, preuninstall.php, postuninstall.php in it, and put your Just the code you need.
7. Summary: Create your own plug-in
- Determine the English name of the plug-in, such as hello.
- Create the hello directory.
- Create a doc directory under the hello directory.
- Create a configuration file - yaml file under the doc directory.
- If there are changes involving the database, create a db directory under the hello directory, and write install.sql and uninstall.sql respectively.
- If you need hook scripts, create a hook directory and create preinstall.php, postinstall.php, preuninstall.php, postuninstall.php.
- Then deploy the corresponding extension code. Create a module directory under the hello directory, and then put the corresponding module extension code under the module.
- Packaging. Using the zip format to package the entire hello directory into hello.zip, and that's it.
Support
- Book a Demo
- Tech Forum
- GitHub
- SourceForge
About Us
- Company
- Privacy Policy
- Term of Use
- Blogs
- Partners
Contact Us
- Leave a Message
- Email Us: support@zentaoalm.com