Browse Source

Declaration of generic methods which can be run on tickets.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3298 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 10 years ago
parent
commit
90a65ab915
1 changed files with 65 additions and 0 deletions
  1. 65 0
      datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml

+ 65 - 0
datamodels/2.x/itop-tickets/datamodel.itop-tickets.xml

@@ -637,6 +637,8 @@
           <static>false</static>
           <static>false</static>
           <access>public</access>
           <access>public</access>
           <type>StimulusUserAction</type>
           <type>StimulusUserAction</type>
+          <arguments>
+          </arguments>
           <code><![CDATA[	public function UpdateParentTicketLog()
           <code><![CDATA[	public function UpdateParentTicketLog()
 	{
 	{
 		$oLog = $this->Get('log');
 		$oLog = $this->Get('log');
@@ -741,4 +743,67 @@
       </presentation>
       </presentation>
     </class>
     </class>
   </classes>
   </classes>
+  <meta>
+    <classes>
+      <class id="cmdbAbstractObject" _delta="define">
+        <methods>
+          <method id="Set">
+            <arguments>
+              <argument>
+                <label>Field Code</label>
+                <type>attcode</type>
+                <mandatory>true</mandatory>
+                <description>The field to set, in the current object</description>
+              </argument>
+              <argument>
+                <label>Value</label>
+                <type>string</type>
+                <mandatory>true</mandatory>
+                <description>The value to set</description>
+              </argument>
+            </arguments>
+          </method>
+          <method id="SetCurrentDate">
+            <arguments>
+              <argument>
+                <label>Field Code</label>
+                <type>attcode</type>
+                <mandatory>true</mandatory>
+                <description>The field, in the current object, to set to
+                  the current date</description>
+              </argument>
+            </arguments>
+          </method>
+          <method id="Reset">
+            <arguments>
+              <argument>
+                <label>Field Code</label>
+                <type>attcode</type>
+                <mandatory>true</mandatory>
+                <description>The field, in the current object, to reset
+                  to its default value</description>
+              </argument>
+            </arguments>
+          </method>
+          <method id="Copy">
+            <arguments>
+              <argument>
+                <label>Destination</label>
+                <type>attcode</type>
+                <mandatory>true</mandatory>
+                <description>The field, in the current object, to set</description>
+              </argument>
+              <argument>
+                <label>Source</label>
+                <type>attcode</type>
+                <mandatory>true</mandatory>
+                <description>The field, in the current object, to get
+                  the value from</description>
+              </argument>
+            </arguments>
+          </method>
+        </methods>
+      </class>
+    </classes>
+  </meta>
 </itop_design>
 </itop_design>