module.attachments.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. SetupWebPage::AddModule(
  17. __FILE__, // Path to the current file, all other file names are relative to the directory containing this file
  18. 'itop-attachments/1.0.0',
  19. array(
  20. // Identification
  21. //
  22. 'label' => 'Tickets attachments',
  23. 'category' => 'business',
  24. // Setup
  25. //
  26. 'dependencies' => array(
  27. ),
  28. 'mandatory' => false,
  29. 'visible' => true,
  30. // Components
  31. //
  32. 'datamodel' => array(
  33. 'model.attachments.php'
  34. ),
  35. 'webservice' => array(
  36. ),
  37. 'dictionary' => array(
  38. 'en.dict.attachments.php',
  39. 'fr.dict.attachments.php',
  40. ),
  41. 'data.struct' => array(
  42. // add your 'structure' definition XML files here,
  43. ),
  44. 'data.sample' => array(
  45. // add your sample data XML files here,
  46. ),
  47. // Documentation
  48. //
  49. 'doc.manual_setup' => '', // hyperlink to manual setup documentation, if any
  50. 'doc.more_information' => '', // hyperlink to more information, if any
  51. // Default settings
  52. //
  53. 'settings' => array(
  54. 'allowed_classes' => array('Ticket'), // List of classes for which to manage "Attachments"
  55. 'position' => 'relations', // Where to display the attachments: relations | properties
  56. ),
  57. )
  58. );
  59. ?>