dolibarr 21.0.0-alpha
ModeleNumRefTicket Class Reference

Parent Class of the project reference numbering model classes. More...

Inheritance diagram for ModeleNumRefTicket:
Collaboration diagram for ModeleNumRefTicket:

Public Member Functions

 getNextValue ($objsoc, $ticket)
 Return next value.
 
 getExample ()
 Return an example of numbering.
 
- Public Member Functions inherited from CommonNumRefGenerator
 getNom ($langs)
 Return model name.
 
 getName ($langs)
 Return model name.
 
 isEnabled ()
 Return if a module can be used or not.
 
 info ($langs)
 Returns the default description of the numbering template.
 
 canBeActivated ($object)
 Checks if the numbers already in the database do not cause conflicts that would prevent this numbering working.
 
 getVersion ()
 Returns version of numbering module.
 

Detailed Description

Parent Class of the project reference numbering model classes.

Definition at line 80 of file modules_ticket.php.

Member Function Documentation

◆ getExample()

ModeleNumRefTicket::getExample ( )
abstract

Return an example of numbering.

Returns
string Example

Reimplemented in mod_ticket_simple, and mod_ticket_universal.

◆ getNextValue()

ModeleNumRefTicket::getNextValue ( $objsoc,
$ticket )
abstract

Return next value.

Parameters
Societe$objsocObject third party
Ticket$ticketObject ticket
Returns
string|int<-1,0> Next value if OK, <=-1 if KO

Reimplemented in mod_ticket_simple, and mod_ticket_universal.


The documentation for this class was generated from the following file: