dolibarr 25.0.0-alpha
modules_inventory.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2026 Jose MARTINEZ <jose.martinez@pichinov.com>
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
25require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
26require_once DOL_DOCUMENT_ROOT.'/core/class/commonnumrefgenerator.class.php';
27
28
33{
34 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
42 public static function liste_modeles($db, $maxfilenamelength = 0)
43 {
44 // phpcs:enable
45 $type = 'inventory';
46 $list = array();
47
48 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
49 $list = getListOfModels($db, $type, $maxfilenamelength);
50
51 return $list;
52 }
53
54 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
66 abstract public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0);
67 // phpcs:enable
68}
69
70
71
76{
83 abstract public function getNextValue($object);
84
90 abstract public function getExample();
91}
if(! $sortfield) if(! $sortorder) $object
Definition account.php:100
Parent class for documents (PDF, ODT, ...) generators.
Parent class for number ref generators.
Parent class to manage numbering of Inventory.
getNextValue($object)
Return next free value.
getExample()
Return an example of numbering.
Parent class for documents models.
static liste_modeles($db, $maxfilenamelength=0)
Return list of active generation modules.
write_file($object, $outputlangs, $srctemplatepath='', $hidedetails=0, $hidedesc=0, $hideref=0)
Function to build document onto disk.
getListOfModels($db, $type, $maxfilenamelength=0, $showempty=0)
Return list of activated modules usable for document generation.