mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-19 08:38:45 +02:00
Formatted XML files (line breaks and indentation)
SVN:trunk[1902]
This commit is contained in:
@@ -1,20 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classes><class name="Attachment" category="addon,bizmodel" parent="DBObject" abstract="false" key_type="autoincrement" db_table="attachment" db_key_field="id" db_final_class_field=""><properties><comment><![CDATA[/**
|
||||
* Module attachments
|
||||
*
|
||||
* A quick and easy way to upload and attach files to *any* (see Configuration below) object in the CMBD in one click
|
||||
*
|
||||
* Configuration: the list of classes for which the "Attachments" tab is visible is defined via the module's 'allowed_classes'
|
||||
* configuration parameter. By default the tab is active for all kind of Tickets.
|
||||
*
|
||||
* @author Erwan Taloc <erwan.taloc@combodo.com>
|
||||
* @author Romain Quetiez <romain.quetiez@combodo.com>
|
||||
* @author Denis Flaven <denis.flaven@combodo.com>
|
||||
* @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
|
||||
*/]]></comment><naming format="%1$s %2$s"><attributes><attribute name="item_class"/><attribute name="temp_id"/></attributes></naming><display_template></display_template><icon></icon><reconciliation><attributes/></reconciliation></properties><fields><field name="expire" type="DateTime" sql="expire" default_value="" is_null_allowed="false"/><field name="temp_id" type="String" sql="temp_id" default_value="" is_null_allowed="true"/><field name="item_class" type="String" sql="item_class" default_value="" is_null_allowed="false"/><field name="item_id" type="String" sql="item_id" default_value="" is_null_allowed="true"/><field name="item_org_id" type="Integer" sql="item_org_id" default_value="0" is_null_allowed="true"/><field name="contents" type="Blob"/></fields><methods><method name="MapContextParam" static="true" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
||||
* Maps the given context parameter name to the appropriate filter/search code for this class
|
||||
* @param string $sContextParam Name of the context parameter, e.g. 'org_id'
|
||||
* @return string Filter code, e.g. 'customer_id'
|
||||
<classes>
|
||||
<class name="Attachment" category="addon,bizmodel" parent="DBObject" abstract="false" key_type="autoincrement" db_table="attachment" db_key_field="id" db_final_class_field="">
|
||||
<properties>
|
||||
<comment><![CDATA[/**
|
||||
* Module attachments
|
||||
*
|
||||
* A quick and easy way to upload and attach files to *any* (see Configuration below) object in the CMBD in one click
|
||||
*
|
||||
* Configuration: the list of classes for which the "Attachments" tab is visible is defined via the module's 'allowed_classes'
|
||||
* configuration parameter. By default the tab is active for all kind of Tickets.
|
||||
*
|
||||
* @author Erwan Taloc <erwan.taloc@combodo.com>
|
||||
* @author Romain Quetiez <romain.quetiez@combodo.com>
|
||||
* @author Denis Flaven <denis.flaven@combodo.com>
|
||||
* @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
|
||||
*/]]></comment>
|
||||
<naming format="%1$s %2$s">
|
||||
<attributes>
|
||||
<attribute name="item_class"/>
|
||||
<attribute name="temp_id"/>
|
||||
</attributes>
|
||||
</naming>
|
||||
<display_template></display_template>
|
||||
<icon></icon>
|
||||
<reconciliation>
|
||||
<attributes>
|
||||
<attribute name=""/>
|
||||
</attributes>
|
||||
</reconciliation>
|
||||
</properties>
|
||||
<fields>
|
||||
<field name="expire" type="DateTime" sql="expire" default_value="" is_null_allowed="false"/>
|
||||
<field name="temp_id" type="String" sql="temp_id" default_value="" is_null_allowed="true"/>
|
||||
<field name="item_class" type="String" sql="item_class" default_value="" is_null_allowed="false"/>
|
||||
<field name="item_id" type="String" sql="item_id" default_value="" is_null_allowed="true"/>
|
||||
<field name="item_org_id" type="Integer" sql="item_org_id" default_value="0" is_null_allowed="true"/>
|
||||
<field name="contents" type="Blob"/>
|
||||
</fields>
|
||||
<methods>
|
||||
<method name="MapContextParam" static="true" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
||||
* Maps the given context parameter name to the appropriate filter/search code for this class
|
||||
* @param string $sContextParam Name of the context parameter, e.g. 'org_id'
|
||||
* @return string Filter code, e.g. 'customer_id'
|
||||
*/]]></comment><![CDATA[ public static function MapContextParam($sContextParam)
|
||||
{
|
||||
if ($sContextParam == 'org_id')
|
||||
@@ -25,10 +52,11 @@
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}]]></method><method name="SetItem" static="false" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
||||
* Set/Update all of the '_item' fields
|
||||
* @param object $oItem Container item
|
||||
* @return void
|
||||
}]]></method>
|
||||
<method name="SetItem" static="false" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
||||
* Set/Update all of the '_item' fields
|
||||
* @param object $oItem Container item
|
||||
* @return void
|
||||
*/]]></comment><![CDATA[ public function SetItem($oItem, $bUpdateOnChange = false)
|
||||
{
|
||||
$sClass = get_class($oItem);
|
||||
@@ -57,9 +85,10 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}]]></method><method name="SetDefaultOrgId" static="false" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
||||
* Give a default value for item_org_id (if relevant...)
|
||||
* @return void
|
||||
}]]></method>
|
||||
<method name="SetDefaultOrgId" static="false" access="public" type="Overload-ExNihilo"><comment><![CDATA[/**
|
||||
* Give a default value for item_org_id (if relevant...)
|
||||
* @return void
|
||||
*/]]></comment><![CDATA[ public function SetDefaultOrgId()
|
||||
{
|
||||
// First check that the organization CAN be fetched from the target class
|
||||
@@ -93,4 +122,31 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}]]></method></methods><presentation><details><items><item>temp_id</item><item>item_class</item><item>item_id</item><item>item_org_id</item></items></details><search><items><item>temp_id</item><item>item_class</item><item>item_id</item></items></search><list><items><item>temp_id</item><item>item_class</item><item>item_id</item></items></list></presentation></class></classes>
|
||||
}]]></method>
|
||||
</methods>
|
||||
<presentation>
|
||||
<details>
|
||||
<items>
|
||||
<item>temp_id</item>
|
||||
<item>item_class</item>
|
||||
<item>item_id</item>
|
||||
<item>item_org_id</item>
|
||||
</items>
|
||||
</details>
|
||||
<search>
|
||||
<items>
|
||||
<item>temp_id</item>
|
||||
<item>item_class</item>
|
||||
<item>item_id</item>
|
||||
</items>
|
||||
</search>
|
||||
<list>
|
||||
<items>
|
||||
<item>temp_id</item>
|
||||
<item>item_class</item>
|
||||
<item>item_id</item>
|
||||
</items>
|
||||
</list>
|
||||
</presentation>
|
||||
</class>
|
||||
</classes>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,8 +1,186 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classes><class name="KnownError" category="bizmodel,searchable,knownerrormgmt" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" db_table="known_error" db_key_field="id" db_final_class_field=""><properties><comment><![CDATA[/**
|
||||
* Description of known error
|
||||
*/]]></comment><naming format="%1$s"><attributes><attribute name="name"/></attributes></naming><display_template></display_template><icon>images/known-error.png</icon><reconciliation><attributes><attribute name="org_id"/><attribute name="name"/></attributes></reconciliation></properties><fields><field name="name" type="String" sql="name" default_value="" is_null_allowed="false"/><field name="org_id" type="ExternalKey" target_class="Organization" sql="cust_id" is_null_allowed="false" on_target_delete="DEL_MANUAL"/><field name="cust_name" type="ExternalField" extkey_attcode="org_id" target_attcode="name"/><field name="problem_id" type="ExternalKey" target_class="Problem" sql="problem_id" is_null_allowed="true" on_target_delete="DEL_MANUAL"/><field name="problem_ref" type="ExternalField" extkey_attcode="problem_id" target_attcode="ref"/><field name="symptom" type="Text" sql="symptom" default_value="" is_null_allowed="false"/><field name="root_cause" type="Text" sql="rootcause" default_value="" is_null_allowed="true"/><field name="workaround" type="Text" sql="workaround" default_value="" is_null_allowed="true"/><field name="solution" type="Text" sql="solution" default_value="" is_null_allowed="true"/><field name="error_code" type="String" sql="error_code" default_value="" is_null_allowed="true"/><field name="domain" type="Enum" sql="domain" default_value="Application" is_null_allowed="false"><values><value>Network</value><value>Server</value><value>Application</value><value>Desktop</value></values></field><field name="vendor" type="String" sql="vendor" default_value="" is_null_allowed="true"/><field name="model" type="String" sql="model" default_value="" is_null_allowed="true"/><field name="version" type="String" sql="version" default_value="" is_null_allowed="true"/><field name="ci_list" type="LinkedSetIndirect" linked_class="lnkInfraError" ext_key_to_me="error_id" ext_key_to_remote="infra_id" count_min="0" count_max="0"/><field name="document_list" type="LinkedSetIndirect" linked_class="lnkDocumentError" ext_key_to_me="error_id" ext_key_to_remote="doc_id" count_min="0" count_max="0"/></fields><methods/><presentation><details><items><item>name</item><item>org_id</item><item>problem_id</item><item>error_code</item><item>domain</item><item>vendor</item><item>model</item><item>version</item><item>symptom</item><item>root_cause</item><item>workaround</item><item>solution</item><item>ci_list</item><item>document_list</item></items></details><search><items><item>name</item><item>org_id</item><item>problem_id</item><item>error_code</item><item>domain</item><item>symptom</item></items></search><list><items><item>org_id</item><item>problem_id</item><item>error_code</item><item>symptom</item></items></list></presentation></class><class name="lnkInfraError" category="bizmodel,searchable,knownerrormgmt,lnkknownerror" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" is_link="1" db_table="infra_error_links" db_key_field="link_id" db_final_class_field=""><properties><comment><![CDATA[/**
|
||||
* n-n link between any Infra and a Known Error
|
||||
*/]]></comment><naming format="lnkInfraError"><attributes/></naming><display_template></display_template><icon></icon><reconciliation><attributes><attribute name="infra_id"/><attribute name="error_id"/></attributes></reconciliation></properties><fields><field name="infra_id" type="ExternalKey" target_class="FunctionalCI" jointype="" sql="infra_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/><field name="infra_name" type="ExternalField" extkey_attcode="infra_id" target_attcode="name"/><field name="infra_status" type="ExternalField" extkey_attcode="infra_id" target_attcode="status"/><field name="error_id" type="ExternalKey" target_class="KnownError" jointype="" sql="error_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/><field name="error_name" type="ExternalField" extkey_attcode="error_id" target_attcode="name"/><field name="reason" type="String" sql="dummy" default_value="" is_null_allowed="true"/></fields><methods/><presentation><details><items><item>infra_id</item><item>error_id</item><item>reason</item></items></details><search><items><item>infra_id</item><item>error_id</item></items></search><list><items><item>infra_id_finalclass_recall</item><item>infra_id</item><item>infra_status</item><item>error_id</item><item>reason</item></items></list></presentation></class><class name="lnkDocumentError" category="bizmodel,searchable,knownerrormgmt,lnkknownerror" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" is_link="1" db_table="documents_error_link" db_key_field="link_id" db_final_class_field=""><properties><comment><![CDATA[/**
|
||||
* n-n link between any Contract and a Document
|
||||
*/]]></comment><naming format="%1$s"><attributes><attribute name="link_type"/></attributes></naming><display_template>../business/templates/default.html</display_template><icon></icon><reconciliation><attributes><attribute name="doc_id"/><attribute name="error_id"/></attributes></reconciliation></properties><fields><field name="doc_id" type="ExternalKey" target_class="Document" sql="doc_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/><field name="doc_name" type="ExternalField" extkey_attcode="doc_id" target_attcode="name"/><field name="error_id" type="ExternalKey" target_class="KnownError" sql="error_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/><field name="error_name" type="ExternalField" extkey_attcode="error_id" target_attcode="name"/><field name="link_type" type="String" sql="link_type" default_value="" is_null_allowed="true"/></fields><methods/><presentation><details><items><item>doc_id</item><item>error_name</item><item>link_type</item></items></details><search><items/></search><list><items><item>doc_id_finalclass_recall</item><item>doc_id</item><item>error_name</item><item>link_type</item></items></list></presentation></class></classes>
|
||||
<classes>
|
||||
<class name="KnownError" category="bizmodel,searchable,knownerrormgmt" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" db_table="known_error" db_key_field="id" db_final_class_field="">
|
||||
<properties>
|
||||
<comment><![CDATA[/**
|
||||
* Description of known error
|
||||
*/]]></comment>
|
||||
<naming format="%1$s">
|
||||
<attributes>
|
||||
<attribute name="name"/>
|
||||
</attributes>
|
||||
</naming>
|
||||
<display_template></display_template>
|
||||
<icon>images/known-error.png</icon>
|
||||
<reconciliation>
|
||||
<attributes>
|
||||
<attribute name="org_id"/>
|
||||
<attribute name="name"/>
|
||||
</attributes>
|
||||
</reconciliation>
|
||||
</properties>
|
||||
<fields>
|
||||
<field name="name" type="String" sql="name" default_value="" is_null_allowed="false"/>
|
||||
<field name="org_id" type="ExternalKey" target_class="Organization" jointype="" sql="cust_id" is_null_allowed="false" on_target_delete="DEL_MANUAL"/>
|
||||
<field name="cust_name" type="ExternalField" extkey_attcode="org_id" target_attcode="name"/>
|
||||
<field name="problem_id" type="ExternalKey" target_class="Problem" jointype="" sql="problem_id" is_null_allowed="true" on_target_delete="DEL_MANUAL"/>
|
||||
<field name="problem_ref" type="ExternalField" extkey_attcode="problem_id" target_attcode="ref"/>
|
||||
<field name="symptom" type="Text" sql="symptom" default_value="" is_null_allowed="false"/>
|
||||
<field name="root_cause" type="Text" sql="rootcause" default_value="" is_null_allowed="true"/>
|
||||
<field name="workaround" type="Text" sql="workaround" default_value="" is_null_allowed="true"/>
|
||||
<field name="solution" type="Text" sql="solution" default_value="" is_null_allowed="true"/>
|
||||
<field name="error_code" type="String" sql="error_code" default_value="" is_null_allowed="true"/>
|
||||
<field name="domain" type="Enum" sql="domain" default_value="Application" is_null_allowed="false">
|
||||
<values>
|
||||
<value>Network</value>
|
||||
<value>Server</value>
|
||||
<value>Application</value>
|
||||
<value>Desktop</value>
|
||||
</values>
|
||||
</field>
|
||||
<field name="vendor" type="String" sql="vendor" default_value="" is_null_allowed="true"/>
|
||||
<field name="model" type="String" sql="model" default_value="" is_null_allowed="true"/>
|
||||
<field name="version" type="String" sql="version" default_value="" is_null_allowed="true"/>
|
||||
<field name="ci_list" type="LinkedSetIndirect" linked_class="lnkInfraError" ext_key_to_me="error_id" ext_key_to_remote="infra_id" count_min="0" count_max="0"/>
|
||||
<field name="document_list" type="LinkedSetIndirect" linked_class="lnkDocumentError" ext_key_to_me="error_id" ext_key_to_remote="doc_id" count_min="0" count_max="0"/>
|
||||
</fields>
|
||||
<methods/>
|
||||
<presentation>
|
||||
<details>
|
||||
<items>
|
||||
<item>name</item>
|
||||
<item>org_id</item>
|
||||
<item>problem_id</item>
|
||||
<item>error_code</item>
|
||||
<item>domain</item>
|
||||
<item>vendor</item>
|
||||
<item>model</item>
|
||||
<item>version</item>
|
||||
<item>symptom</item>
|
||||
<item>root_cause</item>
|
||||
<item>workaround</item>
|
||||
<item>solution</item>
|
||||
<item>ci_list</item>
|
||||
<item>document_list</item>
|
||||
</items>
|
||||
</details>
|
||||
<search>
|
||||
<items>
|
||||
<item>name</item>
|
||||
<item>org_id</item>
|
||||
<item>problem_id</item>
|
||||
<item>error_code</item>
|
||||
<item>domain</item>
|
||||
<item>symptom</item>
|
||||
</items>
|
||||
</search>
|
||||
<list>
|
||||
<items>
|
||||
<item>org_id</item>
|
||||
<item>problem_id</item>
|
||||
<item>error_code</item>
|
||||
<item>symptom</item>
|
||||
</items>
|
||||
</list>
|
||||
</presentation>
|
||||
</class>
|
||||
<class name="lnkInfraError" category="bizmodel,searchable,knownerrormgmt,lnkknownerror" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" is_link="1" db_table="infra_error_links" db_key_field="link_id" db_final_class_field="">
|
||||
<properties>
|
||||
<comment><![CDATA[/**
|
||||
* n-n link between any Infra and a Known Error
|
||||
*/]]></comment>
|
||||
<naming format="lnkInfraError">
|
||||
<attributes/>
|
||||
</naming>
|
||||
<display_template></display_template>
|
||||
<icon></icon>
|
||||
<reconciliation>
|
||||
<attributes>
|
||||
<attribute name="infra_id"/>
|
||||
<attribute name="error_id"/>
|
||||
</attributes>
|
||||
</reconciliation>
|
||||
</properties>
|
||||
<fields>
|
||||
<field name="infra_id" type="ExternalKey" target_class="FunctionalCI" jointype="" sql="infra_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
||||
<field name="infra_name" type="ExternalField" extkey_attcode="infra_id" target_attcode="name"/>
|
||||
<field name="infra_status" type="ExternalField" extkey_attcode="infra_id" target_attcode="status"/>
|
||||
<field name="error_id" type="ExternalKey" target_class="KnownError" jointype="" sql="error_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
||||
<field name="error_name" type="ExternalField" extkey_attcode="error_id" target_attcode="name"/>
|
||||
<field name="reason" type="String" sql="dummy" default_value="" is_null_allowed="true"/>
|
||||
</fields>
|
||||
<methods/>
|
||||
<presentation>
|
||||
<details>
|
||||
<items>
|
||||
<item>infra_id</item>
|
||||
<item>error_id</item>
|
||||
<item>reason</item>
|
||||
</items>
|
||||
</details>
|
||||
<search>
|
||||
<items>
|
||||
<item>infra_id</item>
|
||||
<item>error_id</item>
|
||||
</items>
|
||||
</search>
|
||||
<list>
|
||||
<items>
|
||||
<item>infra_id_finalclass_recall</item>
|
||||
<item>infra_id</item>
|
||||
<item>infra_status</item>
|
||||
<item>error_id</item>
|
||||
<item>reason</item>
|
||||
</items>
|
||||
</list>
|
||||
</presentation>
|
||||
</class>
|
||||
<class name="lnkDocumentError" category="bizmodel,searchable,knownerrormgmt,lnkknownerror" parent="cmdbAbstractObject" abstract="false" key_type="autoincrement" is_link="1" db_table="documents_error_link" db_key_field="link_id" db_final_class_field="">
|
||||
<properties>
|
||||
<comment><![CDATA[/**
|
||||
* n-n link between any Contract and a Document
|
||||
*/]]></comment>
|
||||
<naming format="%1$s">
|
||||
<attributes>
|
||||
<attribute name="link_type"/>
|
||||
</attributes>
|
||||
</naming>
|
||||
<display_template>../business/templates/default.html</display_template>
|
||||
<icon></icon>
|
||||
<reconciliation>
|
||||
<attributes>
|
||||
<attribute name="doc_id"/>
|
||||
<attribute name="error_id"/>
|
||||
</attributes>
|
||||
</reconciliation>
|
||||
</properties>
|
||||
<fields>
|
||||
<field name="doc_id" type="ExternalKey" target_class="Document" jointype="" sql="doc_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
||||
<field name="doc_name" type="ExternalField" extkey_attcode="doc_id" target_attcode="name"/>
|
||||
<field name="error_id" type="ExternalKey" target_class="KnownError" jointype="" sql="error_id" is_null_allowed="false" on_target_delete="DEL_AUTO"/>
|
||||
<field name="error_name" type="ExternalField" extkey_attcode="error_id" target_attcode="name"/>
|
||||
<field name="link_type" type="String" sql="link_type" default_value="" is_null_allowed="true"/>
|
||||
</fields>
|
||||
<methods/>
|
||||
<presentation>
|
||||
<details>
|
||||
<items>
|
||||
<item>doc_id</item>
|
||||
<item>error_name</item>
|
||||
<item>link_type</item>
|
||||
</items>
|
||||
</details>
|
||||
<search>
|
||||
<items/>
|
||||
</search>
|
||||
<list>
|
||||
<items>
|
||||
<item>doc_id_finalclass_recall</item>
|
||||
<item>doc_id</item>
|
||||
<item>error_name</item>
|
||||
<item>link_type</item>
|
||||
</items>
|
||||
</list>
|
||||
</presentation>
|
||||
</class>
|
||||
</classes>
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user