dolibarr 24.0.0-beta
webportalficheinter.class.php
Go to the documentation of this file.
1<?php
2/* Copyright (C) 2026 Pierre Ardoin <developpeur@lesmetiersdubatiment.fr>
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 */
17
24require_once DOL_DOCUMENT_ROOT . '/fichinter/class/fichinter.class.php';
25
30{
34 public $module = 'webportal';
35
40 const STATUS_SIGN_SIGNED_INTERNAL = 12;
41 const STATUS_SIGN_SIGNED_THIRDPARTY = 13;
42 const STATUS_SIGN_SIGNED_THIRDPARTY_ONLINE = 14;
43 const STATUS_SIGN_SIGNED_ALL_PARTIES = 15;
44
45 const ARRAY_STATUS_LABEL = array(
46 '-1' => '',
47 self::STATUS_DRAFT => 'StatusInterInDraft',
48 self::STATUS_VALIDATED => 'StatusInterInValidated',
49 self::STATUS_BILLED => 'StatusInterInvoiced',
50 self::STATUS_CLOSED => 'StatusInterInClosed',
51 self::STATUS_SIGN_NOT_SIGNED => 'WebPortalInterSignedStatusNotSigned',
52 self::STATUS_SIGN_SIGNED_INTERNAL => 'WebPortalInterSignedStatusSignedInternal',
53 self::STATUS_SIGN_SIGNED_THIRDPARTY => 'WebPortalInterSignedStatusSignedThirdParty',
54 self::STATUS_SIGN_SIGNED_THIRDPARTY_ONLINE => 'WebPortalInterSignedStatusSignedThirdPartyOnline',
55 self::STATUS_SIGN_SIGNED_ALL_PARTIES => 'WebPortalInterSignedStatusSignedAllParties',
56 );
57
58 public $fields = array(
59 'rowid' => array('type' => 'integer', 'label' => 'TechnicalID', 'enabled' => 1, 'visible' => 0, 'notnull' => 1, 'position' => 10),
60 'entity' => array('type' => 'integer', 'label' => 'Entity', 'enabled' => 1, 'visible' => -2, 'notnull' => 1, 'position' => 20),
61 'ref' => array('type' => 'varchar(30)', 'label' => 'Ref', 'enabled' => 1, 'visible' => 2, 'notnull' => 1, 'showoncombobox' => 1, 'position' => 25),
62 'fk_soc' => array('type' => 'integer', 'label' => 'ThirdParty', 'enabled' => 1, 'visible' => -2, 'position' => 40),
63 'datec' => array('type' => 'datetime', 'label' => 'WebPortalInterDateCreation', 'enabled' => 1, 'visible' => 2, 'position' => 60),
64 'dateo' => array('type' => 'date', 'label' => 'WebPortalInterDateStart', 'enabled' => 1, 'visible' => 2, 'position' => 61),
65 'datee' => array('type' => 'date', 'label' => 'WebPortalInterDateEnd', 'enabled' => 1, 'visible' => 2, 'position' => 62),
66 'datet' => array('type' => 'date', 'label' => 'WebPortalInterDateClose', 'enabled' => 1, 'visible' => 2, 'position' => 63),
67 'description' => array('type' => 'text', 'label' => 'Description', 'enabled' => 1, 'visible' => 2, 'position' => 80),
68 'fk_statut' => array('type' => 'smallint(6)', 'label' => 'Status', 'enabled' => 1, 'visible' => 2, 'position' => 500, 'arrayofkeyval' => self::ARRAY_STATUS_LABEL),
69 );
70
76 public function __construct(DoliDB $db)
77 {
78 $this->db = $db;
79 $this->isextrafieldmanaged = 0;
80 }
81}
Class to manage Dolibarr database access.
Class for WebPortalFicheinter.
__construct(DoliDB $db)
Constructor.
const STATUS_SIGN_NOT_SIGNED
Status list (short label)
if(!isModEnabled('ai')||!getDolGlobalString('AI_ASSISTANT_ENABLED')) global $db
API class for accounts.