Skip to content

Commit 0c05ac8

Browse files
committed
Udpate for rev 0.3.0
1 parent f5e1d17 commit 0c05ac8

3 files changed

Lines changed: 2 additions & 76 deletions

File tree

datamodel.teemip-ip-discovery.xml

Lines changed: 0 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -97,31 +97,6 @@
9797
</field>
9898
</fields>
9999
<methods>
100-
<method id="OnInsert">
101-
<comment/>
102-
<static>false</static>
103-
<access>public</access>
104-
<type>Overload-cmdbAbstractObject</type>
105-
<code><![CDATA[ public function OnInsert()
106-
{
107-
parent::OnInsert();
108-
109-
// Generate an ID until (very likely) it is unique amongst the existing UUID
110-
//
111-
$oSearchDup = DBObjectSearch::FromOQL_AllData("SELECT IPDiscovery WHERE uuid LIKE :sUUID");
112-
do
113-
{
114-
$sId = strtoupper(md5(uniqid(rand(), true)));
115-
$sFinalId = substr($sId, 0, 4).'_'.substr($sId, 4, 4).'_'.substr($sId, 8, 4).'_'.substr($sId, 12, 4);
116-
117-
$oDupSet = new DBObjectSet($oSearchDup, array(), array('sUUID' => $sFinalId));
118-
$bFound = ($oDupSet->Count() > 0);
119-
}
120-
while ($bFound);
121-
$this->Set('uuid', $sFinalId);
122-
123-
}]]></code>
124-
</method>
125100
<method id="DoCheckToWrite">
126101
<comment/>
127102
<static>false</static>
@@ -140,46 +115,6 @@
140115
return;
141116
}
142117
}
143-
}]]></code>
144-
</method>
145-
<method id="DisplayBareRelations">
146-
<static>false</static>
147-
<access>public</access>
148-
<type>Overload-cmdbAbstractObject</type>
149-
<code><![CDATA[ public function DisplayBareRelations(WebPage $oPage, $bEditMode = false)
150-
{
151-
parent::DisplayBareRelations($oPage, $bEditMode);
152-
153-
$oPage->RemoveTab(Dict::S('Class:FunctionalCI/Tab:OpenedTickets'));
154-
155-
}]]></code>
156-
</method>
157-
<method id="GetAttributeFlags">
158-
<static>false</static>
159-
<access>public</access>
160-
<type>Overload-cmdbAbstractObject</type>
161-
<code><![CDATA[ public function GetAttributeFlags($sAttCode, &$aReasons = array(), $sTargetState = '')
162-
{
163-
if ($sAttCode == 'uuid')
164-
{
165-
return OPT_ATT_READONLY;
166-
}
167-
return parent::GetAttributeFlags($sAttCode, $aReasons, $sTargetState);
168-
169-
}]]></code>
170-
</method>
171-
<method id="GetInitialStateAttributeFlags">
172-
<static>false</static>
173-
<access>public</access>
174-
<type>Overload-cmdbAbstractObject</type>
175-
<code><![CDATA[ public function GetInitialStateAttributeFlags($sAttCode, &$aReasons = array())
176-
{
177-
if ($sAttCode == 'uuid')
178-
{
179-
return OPT_ATT_READONLY;
180-
}
181-
return parent::GetInitialStateAttributeFlags($sAttCode, $aReasons);
182-
183118
}]]></code>
184119
</method>
185120
</methods>

extension.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

module.teemip-ip-discovery.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
SetupWebPage::AddModule(
33
__FILE__, // Path to the current file, all other file names are relative to the directory containing this file
4-
'teemip-ip-discovery/0.2.2',
4+
'teemip-ip-discovery/0.3.0',
55
array(
66
// Identification
77
//
@@ -11,7 +11,7 @@
1111
// Setup
1212
//
1313
'dependencies' => array(
14-
'teemip-ip-mgmt/2.3.0',
14+
'teemip-ip-mgmt/2.5.0',
1515
),
1616
'mandatory' => false,
1717
'visible' => true,

0 commit comments

Comments
 (0)