dolibarr 21.0.0-beta
mod_holiday_madonna Class Reference

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

Inheritance diagram for mod_holiday_madonna:
Collaboration diagram for mod_holiday_madonna:

Public Member Functions

 __construct ()
 Constructor.
 
 info ($langs)
 Return default description of numbering model.
 
 getExample ()
 Return numbering example.
 
 canBeActivated ($object)
 Test if existing numbers make problems with numbering.
 
 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.
 
 getVersion ()
 Returns version of numbering module.
 

Detailed Description

Class to manage holiday numbering rules Madonna.

Definition at line 32 of file mod_holiday_madonna.php.

Member Function Documentation

◆ canBeActivated()

mod_holiday_madonna::canBeActivated ( $object)

Test if existing numbers make problems with numbering.

Parameters
CommonObject$objectObject we need next value for
Returns
boolean false if conflict, true if ok

Reimplemented from CommonNumRefGenerator.

Definition at line 83 of file mod_holiday_madonna.php.

References $conf.

◆ getExample()

mod_holiday_madonna::getExample ( )

Return numbering example.

Returns
string Example

Reimplemented from ModelNumRefHolidays.

Definition at line 71 of file mod_holiday_madonna.php.

◆ getNextValue()

mod_holiday_madonna::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 120 of file mod_holiday_madonna.php.

References $conf, dol_print_date(), and dol_syslog().

◆ info()

mod_holiday_madonna::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 59 of file mod_holiday_madonna.php.


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