cmdbchange.class.inc.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * A change as requested/validated at once by user, may groups many atomic changes
  4. *
  5. * @package iTopORM
  6. * @author Romain Quetiez <romainquetiez@yahoo.fr>
  7. * @author Denis Flaven <denisflave@free.fr>
  8. * @license http://www.opensource.org/licenses/lgpl-license.php LGPL
  9. * @link www.itop.com
  10. * @since 1.0
  11. * @version 1.1.1.1 $
  12. */
  13. class CMDBChange extends DBObject
  14. {
  15. public static function Init()
  16. {
  17. $aParams = array
  18. (
  19. "category" => "core/cmdb",
  20. "key_type" => "autoincrement",
  21. "key_label" => "",
  22. "name_attcode" => "date",
  23. "state_attcode" => "",
  24. "reconc_keys" => array(),
  25. "db_table" => "priv_change",
  26. "db_key_field" => "id",
  27. "db_finalclass_field" => "",
  28. );
  29. MetaModel::Init_Params($aParams);
  30. //MetaModel::Init_InheritAttributes();
  31. MetaModel::Init_AddAttribute(new AttributeDateTime("date", array("allowed_values"=>null, "sql"=>"date", "default_value"=>"", "is_null_allowed"=>false, "depends_on"=>array())));
  32. MetaModel::Init_AddAttribute(new AttributeString("userinfo", array("allowed_values"=>null, "sql"=>"userinfo", "default_value"=>null, "is_null_allowed"=>true, "depends_on"=>array())));
  33. }
  34. }
  35. ?>