dolibarr  13.0.2
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 header for public pages. More...
 
 show_ticket_messaging ($conf, $langs, $db, $filterobj, $objcon= '', $noprint=0, $actioncode= '', $donetodo= 'done', $filters=array(), $sortfield= 'a.datep, a.id', $sortorder= 'DESC')
 Show html area with actions for ticket messaging. More...
 
 getTicketTimelineIcon ($actionstatic, &$histo, $key)
 Get timeline icon. More...
 
 getTicketActionCommEcmList ($object)
 getTicketActionCommEcmList More...
 

Detailed Description

This file is a library for Ticket module.

Definition in file ticket.lib.php.

Function Documentation

generate_random_id (   $car = 16)

Generate a random id.

Parameters
int$carLength of string to generate key
Returns
string

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

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

getTicketActionCommEcmList (   $object)

getTicketActionCommEcmList

Parameters
ActionComm$objectObject ActionComm
Returns
array Array of documents in index table

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

References $resql.

Referenced by show_ticket_messaging().

getTicketTimelineIcon (   $actionstatic,
$histo,
  $key 
)

Get timeline icon.

Parameters
ActionComm$actionstaticactioncomm
array$histohisto
int$keykey
Returns
string

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

References img_picto().

Referenced by show_ticket_messaging().

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

Show header for public pages.

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

References dol_buildpath(), print, and top_htmlhead().

show_ticket_messaging (   $conf,
  $langs,
  $db,
  $filterobj,
  $objcon = '',
  $noprint = 0,
  $actioncode = '',
  $donetodo = 'done',
  $filters = array(),
  $sortfield = 'a.datep,
a.id'  ,
  $sortorder = 'DESC' 
)

Show html area with actions for ticket messaging.

Note: Global parameter $param must be defined.

Parameters
Conf$confObject conf
Translate$langsObject langs
DoliDB$dbObject db
mixed$filterobjFilter on object Adherent|Societe|Project|Product|CommandeFournisseur|Dolresource|Ticket|... to list events linked to an object
Contact$objconFilter on object contact to filter events on a contact
int$noprintReturn string but does not output it
string$actioncodeFilter on actioncode
string$donetodoFilter on event 'done' or 'todo' or ''=nofilter (all).
array$filtersFilter on other fields
string$sortfieldSort field
string$sortorderSort order
Returns
string|void Return html part or void if noprint is 1

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

References $_SERVER, $formactions, $resql, dol_buildpath(), dol_getdate(), dol_include_once(), dol_mimetype(), dol_now(), dol_print_date(), dol_print_error(), dol_syslog(), dol_trunc(), getTicketActionCommEcmList(), getTicketTimelineIcon(), getTitleFieldOfList(), img_mime(), img_object(), img_warning(), info_admin(), natural_search(), print, and setEventMessage().

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

References ajax_autoselect(), dol_buildpath(), CMailFile\getValidAddress(), and img_picto().

ticket_prepare_head (   $object)

Build tabs for a Ticket object.

Parameters
Ticket$objectObject Ticket
Returns
array Array of tabs

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

References complete_head_from_modules(), dol_buildpath(), and dol_dir_list().

ticketAdminPrepareHead ( )

Build tabs for admin page.

Returns
array

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

References complete_head_from_modules().