Dolibarize
This commit is contained in:
parent
e14d2f08b8
commit
0ac1d8b226
@ -29,13 +29,11 @@ if (!class_exists('FormCompany')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Classe permettant la generation du formulaire d'un nouveau ticket
|
* Classe permettant la generation du formulaire d'un nouveau ticket.
|
||||||
*
|
*
|
||||||
* \ingroup ticketsup
|
* Utilisation: $formticketsup = new FormTicketsup($db)
|
||||||
*
|
* $formticketsup->proprietes=1 ou chaine ou tableau de valeurs
|
||||||
* \remarks Utilisation: $formticketsup = new FormTicketsup($db)
|
* $formticketsup->show_form() affiche le formulaire
|
||||||
* \remarks $formticketsup->proprietes=1 ou chaine ou tableau de valeurs
|
|
||||||
* \remarks $formticketsup->show_form() affiche le formulaire
|
|
||||||
*/
|
*/
|
||||||
class FormTicketsup
|
class FormTicketsup
|
||||||
{
|
{
|
||||||
@ -85,7 +83,7 @@ class FormTicketsup
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $DB Database handler
|
* @param DoliDB $db Database handler
|
||||||
*/
|
*/
|
||||||
public function __construct($db)
|
public function __construct($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -30,7 +30,7 @@ require_once DOL_DOCUMENT_ROOT . '/fichinter/class/fichinter.class.php';
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Put here description of your class
|
* Class to manage ticket
|
||||||
*/
|
*/
|
||||||
class Ticketsup extends CommonObject
|
class Ticketsup extends CommonObject
|
||||||
{
|
{
|
||||||
@ -533,6 +533,7 @@ class Ticketsup extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Load all objects in memory from database
|
* Load all objects in memory from database
|
||||||
*
|
*
|
||||||
|
* @param User $user Object user
|
||||||
* @param string $sortorder Sort order
|
* @param string $sortorder Sort order
|
||||||
* @param string $sortfield Sort field
|
* @param string $sortfield Sort field
|
||||||
* @param int $limit page number
|
* @param int $limit page number
|
||||||
@ -1288,10 +1289,11 @@ class Ticketsup extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Renvoie nom clicable (avec eventuellement le picto)
|
* Renvoie nom clicable (avec eventuellement le picto)
|
||||||
* \param withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
|
*
|
||||||
* \param option Sur quoi pointe le lien
|
* @param int $withpicto 0=Pas de picto, 1=Inclut le picto dans le lien, 2=Picto seul
|
||||||
* \return string Chaine avec URL
|
* @param string $option Sur quoi pointe le lien
|
||||||
|
* @return string Chaine avec URL
|
||||||
*/
|
*/
|
||||||
public function getNomUrl($withpicto = 0, $option = '')
|
public function getNomUrl($withpicto = 0, $option = '')
|
||||||
{
|
{
|
||||||
@ -1324,9 +1326,10 @@ class Ticketsup extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Mark a message as read
|
* Mark a message as read
|
||||||
* \param User
|
*
|
||||||
* \return boolean
|
* @param User $user Object user
|
||||||
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function markAsRead($user, $notrigger = 0)
|
public function markAsRead($user, $notrigger = 0)
|
||||||
{
|
{
|
||||||
@ -1371,11 +1374,12 @@ class Ticketsup extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Mark a message as read
|
* Mark a message as read
|
||||||
* \param User
|
*
|
||||||
* \param int $id_assign_user ID of user assigned
|
* @param User $user Object user
|
||||||
* \param int $notrigger Disable trigger
|
* @param int $id_assign_user ID of user assigned
|
||||||
* \return boolean
|
* @param int $notrigger Disable trigger
|
||||||
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function assignUser($user, $id_assign_user, $notrigger = 0)
|
public function assignUser($user, $id_assign_user, $notrigger = 0)
|
||||||
{
|
{
|
||||||
@ -1429,7 +1433,7 @@ class Ticketsup extends CommonObject
|
|||||||
* @param int $noemail 0=send email after, 1=disable emails
|
* @param int $noemail 0=send email after, 1=disable emails
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function createTicketLog($user, $message, $noemail = 0)
|
public function createTicketLog(User $user, $message, $noemail = 0)
|
||||||
{
|
{
|
||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
@ -1725,8 +1729,9 @@ class Ticketsup extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Close a ticket
|
* Close a ticket
|
||||||
* \return boolean
|
*
|
||||||
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
public function close()
|
public function close()
|
||||||
{
|
{
|
||||||
@ -2104,15 +2109,10 @@ class Ticketsup extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if contact are linked to the ticket
|
* Check if contact are linked to the ticket. If yes, send mail and save trace into llx_notify.
|
||||||
* If yes, send mail and save trace into llx_notify.
|
|
||||||
*
|
*
|
||||||
* @param string $action Code of action in llx_c_action_trigger (new usage) or Id of action in llx_c_action_trigger (old usage)
|
* @param string $subject Subject
|
||||||
* @param int $socid Id of third party
|
|
||||||
* @param string $texte Message to send
|
* @param string $texte Message to send
|
||||||
* @param string $objet_type Type of object the notification deals on (facture, order, propal, order_supplier...). Just for log in llx_notify.
|
|
||||||
* @param int $objet_id Id of object the notification deals on
|
|
||||||
* @param string $file Attach a file
|
|
||||||
* @return int <0 if KO, or number of changes if OK
|
* @return int <0 if KO, or number of changes if OK
|
||||||
*/
|
*/
|
||||||
public function messageSend($subject, $texte)
|
public function messageSend($subject, $texte)
|
||||||
@ -2338,9 +2338,9 @@ class Ticketsup extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a default reference
|
* Get a default reference.
|
||||||
*
|
*
|
||||||
* @global type $conf
|
* @param Societe $thirdparty Thirdparty
|
||||||
* @return string Reference
|
* @return string Reference
|
||||||
*/
|
*/
|
||||||
public function getDefaultRef($thirdparty = '')
|
public function getDefaultRef($thirdparty = '')
|
||||||
@ -2495,7 +2495,6 @@ class Ticketsup extends CommonObject
|
|||||||
* @param int $showaction 1=Show icon with action links (resize, delete)
|
* @param int $showaction 1=Show icon with action links (resize, delete)
|
||||||
* @param int $maxHeight Max height of original image when size='small' (so we can use original even if small requested). If 0, always use 'small' thumb image.
|
* @param int $maxHeight Max height of original image when size='small' (so we can use original even if small requested). If 0, always use 'small' thumb image.
|
||||||
* @param int $maxWidth Max width of original image when size='small'
|
* @param int $maxWidth Max width of original image when size='small'
|
||||||
|
|
||||||
* @param int $nolink Do not add a href link to view enlarged imaged into a new tab
|
* @param int $nolink Do not add a href link to view enlarged imaged into a new tab
|
||||||
* @return string Html code to show photo. Number of photos shown is saved in this->nbphoto
|
* @return string Html code to show photo. Number of photos shown is saved in this->nbphoto
|
||||||
*/
|
*/
|
||||||
@ -2662,12 +2661,12 @@ class Ticketsup extends CommonObject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Session line Class
|
* Ticket line Class
|
||||||
*/
|
*/
|
||||||
class TicketsLine
|
class TicketsLine
|
||||||
{
|
{
|
||||||
|
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2766,7 +2765,7 @@ class TicketsLine
|
|||||||
public $severity_label;
|
public $severity_label;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Création date
|
* Creation date
|
||||||
*/
|
*/
|
||||||
public $datec = '';
|
public $datec = '';
|
||||||
|
|
||||||
@ -2780,8 +2779,4 @@ class TicketsLine
|
|||||||
*/
|
*/
|
||||||
public $date_close = '';
|
public $date_close = '';
|
||||||
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user