dolibarr 21.0.0-alpha
ticket.lib.php File Reference

This file is a library for Ticket module. More...

Go to the source code of this file.

Functions

 ticketAdminPrepareHead ()
 Build tabs for admin page.
 
 ticket_prepare_head ($object)
 Build tabs for a Ticket object.
 
 showDirectPublicLink ($object)
 Return string with full Url.
 
 generate_random_id ($car=16)
 Generate a random id.
 
 llxHeaderTicket ($title, $head="", $disablejs=0, $disablehead=0, $arrayofjs=[], $arrayofcss=[])
 Show http header, open body tag and show HTML header banner for public pages for tickets.
 

Detailed Description

This file is a library for Ticket module.

Definition in file ticket.lib.php.

Function Documentation

◆ generate_random_id()

generate_random_id ( $car = 16)

Generate a random id.

Parameters
int$carLength of string to generate key
Returns
string

Definition at line 207 of file ticket.lib.php.

Referenced by Ticket\create(), and Tickets\post().

◆ llxHeaderTicket()

llxHeaderTicket ( $title,
$head = "",
$disablejs = 0,
$disablehead = 0,
$arrayofjs = [],
$arrayofcss = [] )

Show http header, open body tag and show HTML header banner for public pages for tickets.

Parameters
string$titleTitle
string$headHead array
int<0,1>$disablejs More content into html header
int<0,1>$disablehead More content into html header
string[]$arrayofjsArray of complementary js files
string[]$arrayofcssArray of complementary css files
Returns
void

Definition at line 229 of file ticket.lib.php.

References dol_buildpath(), getDolGlobalInt(), getDolGlobalString(), and top_htmlhead().

◆ showDirectPublicLink()

showDirectPublicLink ( $object)

Return string with full Url.

The file qualified is the one defined by relative path in $object->last_main_doc

Parameters
Object$objectObject
Returns
string Url string

Definition at line 170 of file ticket.lib.php.

References $object, ajax_autoselect(), dol_buildpath(), getDolGlobalInt(), getDolGlobalString(), CMailFile\getValidAddress(), and img_picto().

◆ ticket_prepare_head()

ticket_prepare_head ( $object)

Build tabs for a Ticket object.

Parameters
Ticket$objectObject Ticket
Returns
array<array{0:string,1:string,2:string}> Array of tabs to show

Definition at line 84 of file ticket.lib.php.

References $object, complete_head_from_modules(), dol_dir_list(), and getDolGlobalInt().

◆ ticketAdminPrepareHead()

ticketAdminPrepareHead ( )

Build tabs for admin page.

Returns
array<array{0:string,1:string,2:string}>

Definition at line 32 of file ticket.lib.php.

References complete_head_from_modules().