dolibarr  19.0.0-dev
Functions
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. More...
 
 ticket_prepare_head ($object)
 Build tabs for a Ticket object. More...
 
 showDirectPublicLink ($object)
 Return string with full Url. More...
 
 generate_random_id ($car=16)
 Generate a random id. More...
 
 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. More...
 

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 194 of file ticket.lib.php.

◆ 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$disablejsMore content into html header
int$disableheadMore content into html header
array$arrayofjsArray of complementary js files
array$arrayofcssArray of complementary css files
Returns
void

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

◆ 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 157 of file ticket.lib.php.

◆ ticket_prepare_head()

ticket_prepare_head (   $object)

Build tabs for a Ticket object.

Parameters
Ticket$objectObject Ticket
Returns
array Array of tabs

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

◆ ticketAdminPrepareHead()

ticketAdminPrepareHead ( )

Build tabs for admin page.

Returns
array

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