前辈的帖子已经讲得很清楚了:
http://www.itilxf.com/forum.php? ... D243%26typeid%3D243
http://www.itilxf.com/forum.php? ... D243%26typeid%3D243
我在这里补充一点儿我的思路吧
1. 在ITOP里主要数据模型都称为datamodel,从文件上说应该都在datamodels目录下的(子目录下的) datamodel.xxxx.xml文件中定义
2. xml中除了定义model(数据),menu(菜单)控制也在其中(<menus>段)
3. 多对多关联参见lnkServerToVolume(itop-storage-mgmt/datamodel.itop-storage-mgmt.xml 其实就是个中间表)
4. 一对多关联参见PhysicalDevice.location_id(itop-config-mgmt/datamodel.itop-config-mgmt.xml)
5. 主要的"compile"xml 到 php 文件的过程大致应该都在setup下能找到(貌似主要是这个文件setup/compiler.class.inc.php,所以如果xml文件格式有啥问题,除了看文档也可以看看这个文件里面是怎么解析的)
|