Skip to content

Commit

Permalink
#282 [Mod] add: trad and mod numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-eoxia committed Jun 7, 2023
1 parent 0b429d4 commit b00e011
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?php
//Silence is golden apple
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
/* Copyright (C) 2022 EVARISK <technique@evarisk.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
* or see https://www.gnu.org/
*/

/**
* \file core/modules/dolisirh/projectdocument/mod_projectdocument_standard.php
* \ingroup dolisirh
* \brief File of class to manage projectdocument numbering rules standard.
*/

// Load Saturne libraries.
require_once __DIR__ . '/../../../../../../saturne/core/modules/saturne/modules_saturne.php';

/**
* Class to manage projectdocument numbering rules standard.
*/
class mod_projectdocument_standard extends ModeleNumRefSaturne
{
/**
* @var string Numbering module ref prefix.
*/
public string $prefix = 'PJD';

/**
* @var string Name.
*/
public string $name = 'Beli';
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php
/* Copyright (C) 2022 EVARISK <technique@evarisk.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
* or see https://www.gnu.org/
*/

/**
* \file core/modules/dolisirh/dolisirhdocuments/projectdocument/modules_projectdocument.php
* \ingroup dolisirh
* \brief File that contains parent class for projectdocuments document models.
*/

// Load Saturne libraries.
require_once __DIR__ . '/../../../../../../saturne/core/modules/saturne/modules_saturne.php';

/**
* Parent class for documents models.
*/
abstract class ModeleODTProjectDocument extends SaturneDocumentModel
{
/**
* Return list of active generation modules.
*
* @param DoliDB $db Database handler.
* @param string $type Document type.
* @param int $maxfilenamelength Max length of value to show.
*
* @return array List of templates.
* @throws Exception
*/
public static function liste_modeles(DoliDB $db, string $type, int $maxfilenamelength = 0): array
{
return parent::liste_modeles($db, 'projectdocument', $maxfilenamelength);
}
}
10 changes: 10 additions & 0 deletions langs/fr_FR/dolisirh.lang
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,16 @@ certificatedocument.odt = Certificat ODT



#
# ProjectDocument - Document projet
#

# Data - Donnée
projectdocument.odt = Document projet
projectdocument = Document projet



#
# DoliSIRHSignature - Signature
#
Expand Down

0 comments on commit b00e011

Please sign in to comment.