-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#282 [Mod] add: trad and mod numbering
- Loading branch information
1 parent
0b429d4
commit b00e011
Showing
4 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
core/modules/dolisirh/dolisirhdocuments/projectdocument/index.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?php | ||
//Silence is golden apple |
42 changes: 42 additions & 0 deletions
42
core/modules/dolisirh/dolisirhdocuments/projectdocument/mod_projectdocument_standard.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; | ||
} |
47 changes: 47 additions & 0 deletions
47
core/modules/dolisirh/dolisirhdocuments/projectdocument/modules_projectdocument.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters