24require_once DOL_DOCUMENT_ROOT .
'/ticket/class/ticket.class.php';
34 public $module =
'webportal';
36 public $fields = array(
37 'rowid' => array(
'type' =>
'integer',
'label' =>
'TechnicalID',
'enabled' => 1,
'visible' => 0,
'position' => 1,
'notnull' => 1),
38 'entity' => array(
'type' =>
'integer',
'label' =>
'Entity',
'visible' => -2,
'enabled' => 1,
'position' => 5,
'notnull' => 1),
39 'ref' => array(
'type' =>
'varchar(128)',
'label' =>
'Ref',
'visible' => 2,
'enabled' => 1,
'position' => 10,
'notnull' => 1,
'showoncombobox' => 1),
40 'subject' => array(
'type' =>
'varchar(255)',
'label' =>
'Subject',
'visible' => 2,
'enabled' => 1,
'position' => 20,
'notnull' => -1),
41 'track_id' => array(
'type' =>
'varchar(255)',
'label' =>
'TicketTrackId',
'visible' => -2,
'enabled' => 1,
'position' => 30,
'notnull' => -1),
42 'origin_email' => array(
'type' =>
'mail',
'label' =>
'OriginEmail',
'visible' => -2,
'enabled' => 1,
'position' => 35,
'notnull' => -1),
43 'fk_user_create' => array(
'type' =>
'integer:User:user/class/user.class.php',
'label' =>
'Author',
'visible' => -2,
'enabled' => 1,
'position' => 40,
'notnull' => 1),
44 'datec' => array(
'type' =>
'datetime',
'label' =>
'DateCreation',
'visible' => 2,
'enabled' => 1,
'position' => 500,
'notnull' => 1),
45 'fk_user_assign' => array(
'type' =>
'integer:User:user/class/user.class.php',
'label' =>
'AssignedTo',
'visible' => 2,
'enabled' => 1,
'position' => 507,
'notnull' => 1),
46 'fk_statut' => array(
'type' =>
'integer',
'label' =>
'Status',
'visible' => 2,
'enabled' => 1,
'position' => 600,
'notnull' => 1,
'arrayofkeyval' => array(0 =>
'Unread', 1 =>
'Read', 2 =>
'Assigned', 3 =>
'InProgress', 5 =>
'NeedMoreInformation', 7 =>
'OnHold', 8 =>
'SolvedClosed', 9 =>
'Deleted')),
56 parent::__construct(
$db);
59 unset($this->fields[
'fk_statut'][
'arrayofkeyval'][self::STATUS_WAITING]);
Class to manage Dolibarr database access.
Class for WebPortalTicket.
__construct(DoliDB $db)
Constructor.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
Class to generate the form for creating a new ticket.