cmdbchangeop.class.inc.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538
  1. <?php
  2. // Copyright (C) 2010 Combodo SARL
  3. //
  4. // This program is free software; you can redistribute it and/or modify
  5. // it under the terms of the GNU General Public License as published by
  6. // the Free Software Foundation; version 3 of the License.
  7. //
  8. // This program is distributed in the hope that it will be useful,
  9. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. // GNU General Public License for more details.
  12. //
  13. // You should have received a copy of the GNU General Public License
  14. // along with this program; if not, write to the Free Software
  15. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. /**
  17. * Persistent classes (internal) : cmdbChangeOp and derived
  18. *
  19. * @author Erwan Taloc <erwan.taloc@combodo.com>
  20. * @author Romain Quetiez <romain.quetiez@combodo.com>
  21. * @author Denis Flaven <denis.flaven@combodo.com>
  22. * @license http://www.opensource.org/licenses/gpl-3.0.html LGPL
  23. */
  24. /**
  25. * Various atomic change operations, to be tracked
  26. *
  27. * @package iTopORM
  28. */
  29. class CMDBChangeOp extends DBObject
  30. {
  31. public static function Init()
  32. {
  33. $aParams = array
  34. (
  35. "category" => "core/cmdb",
  36. "key_type" => "autoincrement",
  37. "name_attcode" => "change",
  38. "state_attcode" => "",
  39. "reconc_keys" => array(),
  40. "db_table" => "priv_changeop",
  41. "db_key_field" => "id",
  42. "db_finalclass_field" => "optype",
  43. );
  44. MetaModel::Init_Params($aParams);
  45. //MetaModel::Init_InheritAttributes();
  46. MetaModel::Init_AddAttribute(new AttributeExternalKey("change", array("allowed_values"=>null, "sql"=>"changeid", "targetclass"=>"CMDBChange", "is_null_allowed"=>false, "on_target_delete"=>DEL_MANUAL, "depends_on"=>array())));
  47. MetaModel::Init_AddAttribute(new AttributeExternalField("date", array("allowed_values"=>null, "extkey_attcode"=>"change", "target_attcode"=>"date")));
  48. MetaModel::Init_AddAttribute(new AttributeExternalField("userinfo", array("allowed_values"=>null, "extkey_attcode"=>"change", "target_attcode"=>"userinfo")));
  49. MetaModel::Init_AddAttribute(new AttributeString("objclass", array("allowed_values"=>null, "sql"=>"objclass", "default_value"=>"", "is_null_allowed"=>false, "depends_on"=>array())));
  50. MetaModel::Init_AddAttribute(new AttributeString("objkey", array("allowed_values"=>null, "sql"=>"objkey", "default_value"=>"", "is_null_allowed"=>false, "depends_on"=>array())));
  51. MetaModel::Init_SetZListItems('details', array('change', 'date', 'userinfo')); // Attributes to be displayed for the complete details
  52. MetaModel::Init_SetZListItems('list', array('change', 'date', 'userinfo')); // Attributes to be displayed for the complete details
  53. }
  54. /**
  55. * Describe (as a text string) the modifications corresponding to this change
  56. */
  57. public function GetDescription()
  58. {
  59. return '';
  60. }
  61. }
  62. /**
  63. * Record the creation of an object
  64. *
  65. * @package iTopORM
  66. */
  67. class CMDBChangeOpCreate extends CMDBChangeOp
  68. {
  69. public static function Init()
  70. {
  71. $aParams = array
  72. (
  73. "category" => "core/cmdb",
  74. "key_type" => "",
  75. "name_attcode" => "change",
  76. "state_attcode" => "",
  77. "reconc_keys" => array(),
  78. "db_table" => "priv_changeop_create",
  79. "db_key_field" => "id",
  80. "db_finalclass_field" => "",
  81. );
  82. MetaModel::Init_Params($aParams);
  83. MetaModel::Init_InheritAttributes();
  84. }
  85. /**
  86. * Describe (as a text string) the modifications corresponding to this change
  87. */
  88. public function GetDescription()
  89. {
  90. return Dict::S('Change:ObjectCreated');
  91. }
  92. }
  93. /**
  94. * Record the deletion of an object
  95. *
  96. * @package iTopORM
  97. */
  98. class CMDBChangeOpDelete extends CMDBChangeOp
  99. {
  100. public static function Init()
  101. {
  102. $aParams = array
  103. (
  104. "category" => "core/cmdb",
  105. "key_type" => "",
  106. "name_attcode" => "change",
  107. "state_attcode" => "",
  108. "reconc_keys" => array(),
  109. "db_table" => "priv_changeop_delete",
  110. "db_key_field" => "id",
  111. "db_finalclass_field" => "",
  112. );
  113. MetaModel::Init_Params($aParams);
  114. MetaModel::Init_InheritAttributes();
  115. }
  116. /**
  117. * Describe (as a text string) the modifications corresponding to this change
  118. */
  119. public function GetDescription()
  120. {
  121. return Dict::S('Change:ObjectDeleted');
  122. }
  123. }
  124. /**
  125. * Record the modification of an attribute (abstract)
  126. *
  127. * @package iTopORM
  128. */
  129. class CMDBChangeOpSetAttribute extends CMDBChangeOp
  130. {
  131. public static function Init()
  132. {
  133. $aParams = array
  134. (
  135. "category" => "core/cmdb",
  136. "key_type" => "",
  137. "name_attcode" => "change",
  138. "state_attcode" => "",
  139. "reconc_keys" => array(),
  140. "db_table" => "priv_changeop_setatt",
  141. "db_key_field" => "id",
  142. "db_finalclass_field" => "",
  143. );
  144. MetaModel::Init_Params($aParams);
  145. MetaModel::Init_InheritAttributes();
  146. MetaModel::Init_AddAttribute(new AttributeString("attcode", array("allowed_values"=>null, "sql"=>"attcode", "default_value"=>"", "is_null_allowed"=>false, "depends_on"=>array())));
  147. // Display lists
  148. MetaModel::Init_SetZListItems('details', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for the complete details
  149. MetaModel::Init_SetZListItems('list', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for a list
  150. }
  151. }
  152. /**
  153. * Record the modification of a scalar attribute
  154. *
  155. * @package iTopORM
  156. */
  157. class CMDBChangeOpSetAttributeScalar extends CMDBChangeOpSetAttribute
  158. {
  159. public static function Init()
  160. {
  161. $aParams = array
  162. (
  163. "category" => "core/cmdb",
  164. "key_type" => "",
  165. "name_attcode" => "change",
  166. "state_attcode" => "",
  167. "reconc_keys" => array(),
  168. "db_table" => "priv_changeop_setatt_scalar",
  169. "db_key_field" => "id",
  170. "db_finalclass_field" => "",
  171. );
  172. MetaModel::Init_Params($aParams);
  173. MetaModel::Init_InheritAttributes();
  174. MetaModel::Init_AddAttribute(new AttributeString("oldvalue", array("allowed_values"=>null, "sql"=>"oldvalue", "default_value"=>null, "is_null_allowed"=>true, "depends_on"=>array())));
  175. MetaModel::Init_AddAttribute(new AttributeString("newvalue", array("allowed_values"=>null, "sql"=>"newvalue", "default_value"=>null, "is_null_allowed"=>true, "depends_on"=>array())));
  176. // Display lists
  177. MetaModel::Init_SetZListItems('details', array('date', 'userinfo', 'attcode', 'oldvalue', 'newvalue')); // Attributes to be displayed for the complete details
  178. MetaModel::Init_SetZListItems('list', array('date', 'userinfo', 'attcode', 'oldvalue', 'newvalue')); // Attributes to be displayed for a list
  179. }
  180. /**
  181. * Describe (as a text string) the modifications corresponding to this change
  182. */
  183. public function GetDescription()
  184. {
  185. $sResult = '';
  186. $oTargetObjectClass = $this->Get('objclass');
  187. $oTargetObjectKey = $this->Get('objkey');
  188. $oTargetSearch = new DBObjectSearch($oTargetObjectClass);
  189. $oTargetSearch->AddCondition('id', $oTargetObjectKey, '=');
  190. $oMonoObjectSet = new DBObjectSet($oTargetSearch);
  191. if (UserRights::IsActionAllowedOnAttribute($this->Get('objclass'), $this->Get('attcode'), UR_ACTION_READ, $oMonoObjectSet) == UR_ALLOWED_YES)
  192. {
  193. if (!MetaModel::IsValidAttCode($this->Get('objclass'), $this->Get('attcode'))) return ''; // Protects against renamed attributes...
  194. $oAttDef = MetaModel::GetAttributeDef($this->Get('objclass'), $this->Get('attcode'));
  195. $sAttName = $oAttDef->GetLabel();
  196. $sNewValue = $this->Get('newvalue');
  197. $sOldValue = $this->Get('oldvalue');
  198. $sResult = $oAttDef->GetAsHTMLForHistory($sOldValue, $sNewValue);
  199. }
  200. return $sResult;
  201. }
  202. }
  203. /**
  204. * Record the modification of a blob
  205. *
  206. * @package iTopORM
  207. */
  208. class CMDBChangeOpSetAttributeBlob extends CMDBChangeOpSetAttribute
  209. {
  210. public static function Init()
  211. {
  212. $aParams = array
  213. (
  214. "category" => "core/cmdb",
  215. "key_type" => "",
  216. "name_attcode" => "change",
  217. "state_attcode" => "",
  218. "reconc_keys" => array(),
  219. "db_table" => "priv_changeop_setatt_data",
  220. "db_key_field" => "id",
  221. "db_finalclass_field" => "",
  222. );
  223. MetaModel::Init_Params($aParams);
  224. MetaModel::Init_InheritAttributes();
  225. MetaModel::Init_AddAttribute(new AttributeBlob("prevdata", array("depends_on"=>array())));
  226. // Display lists
  227. MetaModel::Init_SetZListItems('details', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for the complete details
  228. MetaModel::Init_SetZListItems('list', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for a list
  229. }
  230. /**
  231. * Describe (as a text string) the modifications corresponding to this change
  232. */
  233. public function GetDescription()
  234. {
  235. // Temporary, until we change the options of GetDescription() -needs a more global revision
  236. $bIsHtml = true;
  237. $sResult = '';
  238. $oTargetObjectClass = $this->Get('objclass');
  239. $oTargetObjectKey = $this->Get('objkey');
  240. $oTargetSearch = new DBObjectSearch($oTargetObjectClass);
  241. $oTargetSearch->AddCondition('id', $oTargetObjectKey, '=');
  242. $oMonoObjectSet = new DBObjectSet($oTargetSearch);
  243. if (UserRights::IsActionAllowedOnAttribute($this->Get('objclass'), $this->Get('attcode'), UR_ACTION_READ, $oMonoObjectSet) == UR_ALLOWED_YES)
  244. {
  245. $oAttDef = MetaModel::GetAttributeDef($this->Get('objclass'), $this->Get('attcode'));
  246. $sAttName = $oAttDef->GetLabel();
  247. $oPrevDoc = $this->Get('prevdata');
  248. $sDocView = $oPrevDoc->GetAsHtml();
  249. $sDocView .= "<br/>".Dict::Format('UI:OpenDocumentInNewWindow_',$oPrevDoc->GetDisplayLink(get_class($this), $this->GetKey(), 'prevdata')).", \n";
  250. $sDocView .= Dict::Format('UI:DownloadDocument_', $oPrevDoc->GetDownloadLink(get_class($this), $this->GetKey(), 'prevdata'))."\n";
  251. //$sDocView = $oPrevDoc->GetDisplayInline(get_class($this), $this->GetKey(), 'prevdata');
  252. $sResult = Dict::Format('Change:AttName_Changed_PreviousValue_OldValue', $sAttName, $sDocView);
  253. }
  254. return $sResult;
  255. }
  256. }
  257. /**
  258. * Safely record the modification of one way encrypted password
  259. */
  260. class CMDBChangeOpSetAttributeOneWayPassword extends CMDBChangeOpSetAttribute
  261. {
  262. public static function Init()
  263. {
  264. $aParams = array
  265. (
  266. "category" => "core/cmdb",
  267. "key_type" => "",
  268. "name_attcode" => "change",
  269. "state_attcode" => "",
  270. "reconc_keys" => array(),
  271. "db_table" => "priv_changeop_setatt_pwd",
  272. "db_key_field" => "id",
  273. "db_finalclass_field" => "",
  274. );
  275. MetaModel::Init_Params($aParams);
  276. MetaModel::Init_InheritAttributes();
  277. MetaModel::Init_AddAttribute(new AttributeOneWayPassword("prev_pwd", array("sql" => 'data', "default_value" => '', "is_null_allowed"=> true, "allowed_values" => null, "depends_on"=>array())));
  278. // Display lists
  279. MetaModel::Init_SetZListItems('details', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for the complete details
  280. MetaModel::Init_SetZListItems('list', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for a list
  281. }
  282. /**
  283. * Describe (as a text string) the modifications corresponding to this change
  284. */
  285. public function GetDescription()
  286. {
  287. // Temporary, until we change the options of GetDescription() -needs a more global revision
  288. $bIsHtml = true;
  289. $sResult = '';
  290. $oTargetObjectClass = $this->Get('objclass');
  291. $oTargetObjectKey = $this->Get('objkey');
  292. $oTargetSearch = new DBObjectSearch($oTargetObjectClass);
  293. $oTargetSearch->AddCondition('id', $oTargetObjectKey, '=');
  294. $oMonoObjectSet = new DBObjectSet($oTargetSearch);
  295. if (UserRights::IsActionAllowedOnAttribute($this->Get('objclass'), $this->Get('attcode'), UR_ACTION_READ, $oMonoObjectSet) == UR_ALLOWED_YES)
  296. {
  297. $oAttDef = MetaModel::GetAttributeDef($this->Get('objclass'), $this->Get('attcode'));
  298. $sAttName = $oAttDef->GetLabel();
  299. $sResult = Dict::Format('Change:AttName_Changed', $sAttName);
  300. }
  301. return $sResult;
  302. }
  303. }
  304. /**
  305. * Safely record the modification of an encrypted field
  306. */
  307. class CMDBChangeOpSetAttributeEncrypted extends CMDBChangeOpSetAttribute
  308. {
  309. public static function Init()
  310. {
  311. $aParams = array
  312. (
  313. "category" => "core/cmdb",
  314. "key_type" => "",
  315. "name_attcode" => "change",
  316. "state_attcode" => "",
  317. "reconc_keys" => array(),
  318. "db_table" => "priv_changeop_setatt_encrypted",
  319. "db_key_field" => "id",
  320. "db_finalclass_field" => "",
  321. );
  322. MetaModel::Init_Params($aParams);
  323. MetaModel::Init_InheritAttributes();
  324. MetaModel::Init_AddAttribute(new AttributeEncryptedString("prevstring", array("sql" => 'data', "default_value" => '', "is_null_allowed"=> true, "allowed_values" => null, "depends_on"=>array())));
  325. // Display lists
  326. MetaModel::Init_SetZListItems('details', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for the complete details
  327. MetaModel::Init_SetZListItems('list', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for a list
  328. }
  329. /**
  330. * Describe (as a text string) the modifications corresponding to this change
  331. */
  332. public function GetDescription()
  333. {
  334. // Temporary, until we change the options of GetDescription() -needs a more global revision
  335. $bIsHtml = true;
  336. $sResult = '';
  337. $oTargetObjectClass = $this->Get('objclass');
  338. $oTargetObjectKey = $this->Get('objkey');
  339. $oTargetSearch = new DBObjectSearch($oTargetObjectClass);
  340. $oTargetSearch->AddCondition('id', $oTargetObjectKey, '=');
  341. $oMonoObjectSet = new DBObjectSet($oTargetSearch);
  342. if (UserRights::IsActionAllowedOnAttribute($this->Get('objclass'), $this->Get('attcode'), UR_ACTION_READ, $oMonoObjectSet) == UR_ALLOWED_YES)
  343. {
  344. $oAttDef = MetaModel::GetAttributeDef($this->Get('objclass'), $this->Get('attcode'));
  345. $sAttName = $oAttDef->GetLabel();
  346. $sPrevString = $this->Get('prevstring');
  347. $sResult = Dict::Format('Change:AttName_Changed_PreviousValue_OldValue', $sAttName, $sPrevString);
  348. }
  349. return $sResult;
  350. }
  351. }
  352. /**
  353. * Record the modification of a multiline string (text)
  354. *
  355. * @package iTopORM
  356. */
  357. class CMDBChangeOpSetAttributeText extends CMDBChangeOpSetAttribute
  358. {
  359. public static function Init()
  360. {
  361. $aParams = array
  362. (
  363. "category" => "core/cmdb",
  364. "key_type" => "",
  365. "name_attcode" => "change",
  366. "state_attcode" => "",
  367. "reconc_keys" => array(),
  368. "db_table" => "priv_changeop_setatt_text",
  369. "db_key_field" => "id",
  370. "db_finalclass_field" => "",
  371. );
  372. MetaModel::Init_Params($aParams);
  373. MetaModel::Init_InheritAttributes();
  374. MetaModel::Init_AddAttribute(new AttributeText("prevdata", array("allowed_values"=>null, "sql"=>"prevdata", "default_value"=>"", "is_null_allowed"=>true, "depends_on"=>array())));
  375. // Display lists
  376. MetaModel::Init_SetZListItems('details', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for the complete details
  377. MetaModel::Init_SetZListItems('list', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for a list
  378. }
  379. /**
  380. * Describe (as a text string) the modifications corresponding to this change
  381. */
  382. public function GetDescription()
  383. {
  384. // Temporary, until we change the options of GetDescription() -needs a more global revision
  385. $bIsHtml = true;
  386. $sResult = '';
  387. $oTargetObjectClass = $this->Get('objclass');
  388. $oTargetObjectKey = $this->Get('objkey');
  389. $oTargetSearch = new DBObjectSearch($oTargetObjectClass);
  390. $oTargetSearch->AddCondition('id', $oTargetObjectKey, '=');
  391. $oMonoObjectSet = new DBObjectSet($oTargetSearch);
  392. if (UserRights::IsActionAllowedOnAttribute($this->Get('objclass'), $this->Get('attcode'), UR_ACTION_READ, $oMonoObjectSet) == UR_ALLOWED_YES)
  393. {
  394. $oAttDef = MetaModel::GetAttributeDef($this->Get('objclass'), $this->Get('attcode'));
  395. $sAttName = $oAttDef->GetLabel();
  396. $sTextView = '<div>'.$this->GetAsHtml('prevdata').'</div>';
  397. //$sDocView = $oPrevDoc->GetDisplayInline(get_class($this), $this->GetKey(), 'prevdata');
  398. $sResult = Dict::Format('Change:AttName_Changed_PreviousValue_OldValue', $sAttName, $sTextView);
  399. }
  400. return $sResult;
  401. }
  402. }
  403. /**
  404. * Record the modification of a caselog (text)
  405. * since the caselog itself stores the history
  406. * of its entries, there is no need to duplicate
  407. * the text here
  408. *
  409. * @package iTopORM
  410. */
  411. class CMDBChangeOpSetAttributeCaseLog extends CMDBChangeOpSetAttribute
  412. {
  413. public static function Init()
  414. {
  415. $aParams = array
  416. (
  417. "category" => "core/cmdb",
  418. "key_type" => "",
  419. "name_attcode" => "change",
  420. "state_attcode" => "",
  421. "reconc_keys" => array(),
  422. "db_table" => "priv_changeop_setatt_log",
  423. "db_key_field" => "id",
  424. "db_finalclass_field" => "",
  425. );
  426. MetaModel::Init_Params($aParams);
  427. MetaModel::Init_InheritAttributes();
  428. MetaModel::Init_AddAttribute(new AttributeInteger("lastentry", array("allowed_values"=>null, "sql"=>"lastentry", "default_value"=>0, "is_null_allowed"=>true, "depends_on"=>array())));
  429. // Display lists
  430. MetaModel::Init_SetZListItems('details', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for the complete details
  431. MetaModel::Init_SetZListItems('list', array('date', 'userinfo', 'attcode')); // Attributes to be displayed for a list
  432. }
  433. /**
  434. * Describe (as a text string) the modifications corresponding to this change
  435. */
  436. public function GetDescription()
  437. {
  438. // Temporary, until we change the options of GetDescription() -needs a more global revision
  439. $bIsHtml = true;
  440. $sResult = '';
  441. $oTargetObjectClass = $this->Get('objclass');
  442. $oTargetObjectKey = $this->Get('objkey');
  443. $oTargetSearch = new DBObjectSearch($oTargetObjectClass);
  444. $oTargetSearch->AddCondition('id', $oTargetObjectKey, '=');
  445. $oMonoObjectSet = new DBObjectSet($oTargetSearch);
  446. if (UserRights::IsActionAllowedOnAttribute($this->Get('objclass'), $this->Get('attcode'), UR_ACTION_READ, $oMonoObjectSet) == UR_ALLOWED_YES)
  447. {
  448. $oAttDef = MetaModel::GetAttributeDef($this->Get('objclass'), $this->Get('attcode'));
  449. $sAttName = $oAttDef->GetLabel();
  450. $sResult = Dict::Format('Change:AttName_EntryAdded', $sAttName);
  451. }
  452. return $sResult;
  453. }
  454. }
  455. /**
  456. * Record an action made by a plug-in
  457. *
  458. * @package iTopORM
  459. */
  460. class CMDBChangeOpPlugin extends CMDBChangeOp
  461. {
  462. public static function Init()
  463. {
  464. $aParams = array
  465. (
  466. "category" => "core/cmdb",
  467. "key_type" => "",
  468. "name_attcode" => "change",
  469. "state_attcode" => "",
  470. "reconc_keys" => array(),
  471. "db_table" => "priv_changeop_plugin",
  472. "db_key_field" => "id",
  473. "db_finalclass_field" => "",
  474. );
  475. MetaModel::Init_Params($aParams);
  476. MetaModel::Init_AddAttribute(new AttributeString("description", array("allowed_values"=>null, "sql"=>"description", "default_value"=>'', "is_null_allowed"=>false, "depends_on"=>array())));
  477. /* May be used later when implementing an extension mechanism that will allow the plug-ins to store some extra information and still degrades gracefully when the plug-in is desinstalled
  478. MetaModel::Init_AddAttribute(new AttributeString("extension_class", array("allowed_values"=>null, "sql"=>"extension_class", "default_value"=>'', "is_null_allowed"=>false, "depends_on"=>array())));
  479. MetaModel::Init_AddAttribute(new AttributeInteger("extension_id", array("allowed_values"=>null, "sql"=>"extension_id", "default_value"=>0, "is_null_allowed"=>false, "depends_on"=>array())));
  480. */
  481. MetaModel::Init_InheritAttributes();
  482. }
  483. /**
  484. * Describe (as a text string) the modifications corresponding to this change
  485. */
  486. public function GetDescription()
  487. {
  488. return $this->Get('description');
  489. }
  490. }
  491. ?>