dolibarr 24.0.0-beta
modules_salary.php
1<?php
2/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
3 * Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
4 * Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
5 * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
6 * Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
7 * Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es>
8 * Copyright (C) 2014 Marcos GarcĂ­a <marcosgdf@gmail.com>
9 * Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 3 of the License, or
14 * (at your option) any later version.
15 */
16
17require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php';
18
22abstract class ModelePDFSalary extends CommonDocGenerator
23{
31 public static function listModels($db, $maxfilenamelength = 0)
32 {
33 $type = 'salary';
34
35 include_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
36
37 return getListOfModels($db, $type, $maxfilenamelength);
38 }
39
40 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
48 public static function liste_modeles($db)
49 {
50 return self::listModels($db); // delegates to camelCase
51 }
52
64 abstract public function writeFile($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0);
65}
if(! $sortfield) if(! $sortorder) $object
Definition account.php:100
Parent class for documents (PDF, ODT, ...) generators.
Base class for Salary PDF document models.
static listModels($db, $maxfilenamelength=0)
Return list of available salary PDF models.
static liste_modeles($db)
Legacy method required by Dolibarr PDF system Delegates to camelCase method.
writeFile($object, $outputlangs, $srctemplatepath='', $hidedetails=0, $hidedesc=0, $hideref=0)
Build the salary PDF document.
getListOfModels($db, $type, $maxfilenamelength=0, $showempty=0)
Return list of activated modules usable for document generation.