dolibarr  20.0.0-alpha
modules_movement.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2018-2020 Laurent Destailleur <eldy@users.sourceforge.net>
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; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <https://www.gnu.org/licenses/>.
16  * or see https://www.gnu.org/
17  */
18 
25 require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
26 
27 
31 abstract class ModelePDFMovement extends CommonDocGenerator
32 {
36  public $db;
37 
41  public $description;
42 
46  public $type;
47 
52  public $version = 'dolibarr';
53 
54 
55  // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
63  public static function liste_modeles($db, $maxfilenamelength = 0)
64  {
65  // phpcs:enable
66  $type = 'movement';
67  $list = array();
68 
69  include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
70  $list = getListOfModels($db, $type, $maxfilenamelength);
71 
72  return $list;
73  }
74 }
Parent class for documents (PDF, ODT, ...) generators.
Parent class to manage warehouse movement document templates.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.