dolibarr
18.0.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
dolibarr_18.0
htdocs
core
modules
stock
modules_stock.php
1
<?php
2
/* Copyright (C) 2018 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
19
require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php'
;
20
24
abstract
class
ModelePDFStock
extends
CommonDocGenerator
25
{
29
public
$error =
''
;
30
34
public
$page_largeur;
35
39
public
$page_hauteur;
40
44
public
$format;
45
49
public
$marge_gauche;
50
54
public
$marge_droite;
55
59
public
$marge_haute;
60
64
public
$marge_basse;
65
66
67
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
75
public
static
function
liste_modeles
($db, $maxfilenamelength = 0)
76
{
77
// phpcs:enable
78
$type =
'stock'
;
79
$list = array();
80
81
include_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php'
;
82
$list =
getListOfModels
($db, $type, $maxfilenamelength);
83
84
return
$list;
85
}
86
}
ModelePDFStock
Parent class for stock models of doc generators.
Definition:
modules_stock.php:24
getListOfModels
getListOfModels($db, $type, $maxfilenamelength=0)
Return list of activated modules usable for document generation.
Definition:
functions2.lib.php:1925
ModelePDFStock\liste_modeles
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
Definition:
modules_stock.php:75
CommonDocGenerator
Parent class for documents generators.
Definition:
commondocgenerator.class.php:36
Generated on Sat Dec 2 2023 01:01:20 for
dolibarr
by Doxygen 1.8.17