dolibarr 21.0.0-alpha
ModeleNumRefTask Class Reference

Parent class of task reference numbering models. More...

Inheritance diagram for ModeleNumRefTask:
Collaboration diagram for ModeleNumRefTask:

Public Member Functions

 getNextValue ($objsoc, $object)
 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 task reference numbering models.

Definition at line 77 of file modules_task.php.

Member Function Documentation

◆ getExample()

ModeleNumRefTask::getExample ( )
abstract

Return an example of numbering.

Returns
string Example

Reimplemented in mod_task_simple, and mod_task_universal.

◆ getNextValue()

ModeleNumRefTask::getNextValue ( $objsoc,
$object )
abstract

Return next value.

Parameters
null | Societe | string$objsocObject third party
null | Task | string$objectObject Task
Returns
string|int<-1,0> Value if OK, <=0 if KO

Reimplemented in mod_task_simple, and mod_task_universal.


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