modules_bank.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /* Copyright (C) 2010-2014 Regis Houssin <regis.houssin@inodbox.com>
  3. * Copyright (C) 2014 Marcos García <marcosgdf@gmail.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation; either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  17. * or see https://www.gnu.org/
  18. */
  19. /**
  20. * \file htdocs/core/modules/bank/modules_bank.php
  21. * \ingroup project
  22. * \brief File that contain parent class for bank models
  23. * and parent class for bank numbering models
  24. */
  25. require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
  26. /**
  27. * Parent class for bank account models
  28. */
  29. abstract class ModeleBankAccountDoc extends CommonDocGenerator
  30. {
  31. /**
  32. * @var string Error code (or message)
  33. */
  34. public $error = '';
  35. // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
  36. /**
  37. * Return list of active generation modules
  38. *
  39. * @param DoliDB $db Database handler
  40. * @param integer $maxfilenamelength Max length of value to show
  41. * @return array List of templates
  42. */
  43. public static function liste_modeles($db, $maxfilenamelength = 0)
  44. {
  45. // phpcs:enable
  46. global $conf;
  47. $type = 'bankaccount';
  48. $list = array();
  49. include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
  50. $list = getListOfModels($db, $type, $maxfilenamelength);
  51. return $list;
  52. }
  53. }