modules_bank.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
  32. /**
  33. * Return list of active generation modules
  34. *
  35. * @param DoliDB $db Database handler
  36. * @param integer $maxfilenamelength Max length of value to show
  37. * @return array List of templates
  38. */
  39. public static function liste_modeles($db, $maxfilenamelength = 0)
  40. {
  41. // phpcs:enable
  42. $type = 'bankaccount';
  43. $list = array();
  44. include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
  45. $list = getListOfModels($db, $type, $maxfilenamelength);
  46. return $list;
  47. }
  48. }