dolibarr 21.0.0-alpha
mod_holiday_immaculate Class Reference

Class to manage holiday numbering rules Immaculate. More...

Inheritance diagram for mod_holiday_immaculate:
Collaboration diagram for mod_holiday_immaculate:

Public Member Functions

 __construct ()
 Constructor.
 
 info ($langs)
 Return default description of numbering model.
 
 getExample ()
 Return numbering example.
 
 getNextValue ($objsoc, $holiday)
 Return next value.
 
- 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.
 
 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

Class to manage holiday numbering rules Immaculate.

Definition at line 33 of file mod_holiday_immaculate.php.

Member Function Documentation

◆ getExample()

mod_holiday_immaculate::getExample ( )

Return numbering example.

Returns
string|int<0,0> Example

Reimplemented from ModelNumRefHolidays.

Definition at line 90 of file mod_holiday_immaculate.php.

References getNextValue().

◆ getNextValue()

mod_holiday_immaculate::getNextValue ( $objsoc,
$holiday )

Return next value.

Parameters
Societe$objsocthird party object
Holiday$holidayholiday object
Returns
string|int<-1,0> Value if OK, <=0 if KO

Reimplemented from ModelNumRefHolidays.

Definition at line 117 of file mod_holiday_immaculate.php.

References get_next_value(), and getDolGlobalString().

Referenced by getExample().

◆ info()

mod_holiday_immaculate::info ( $langs)

Return default description of numbering model.

Parameters
Translate$langsLang object to use for output
Returns
string Descriptive text

Reimplemented from CommonNumRefGenerator.

Definition at line 53 of file mod_holiday_immaculate.php.

References getDolGlobalString().


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