dolibarr 18.0.6
mod_holiday_madonna Class Reference

Class to manage contract numbering rules madonna. More...

Inheritance diagram for mod_holiday_madonna:
Collaboration diagram for mod_holiday_madonna:

Public Member Functions

 info ()
 Return default description of numbering model.
 
 getExample ()
 Return numbering example.
 
 canBeActivated ()
 Test if existing numbers make problems with numbering.
 
 getNextValue ($objsoc, $holiday)
 Return next value.
 
 holiday_get_num ($fuser, $objforref)
 Return next value.
 
- Public Member Functions inherited from ModelNumRefHolidays
 isEnabled ()
 Return if a module can be used or not.
 
 getVersion ()
 Return numbering version module.
 

Detailed Description

Class to manage contract numbering rules madonna.

Definition at line 30 of file mod_holiday_madonna.php.

Member Function Documentation

◆ canBeActivated()

mod_holiday_madonna::canBeActivated ( )

Test if existing numbers make problems with numbering.

Returns
boolean false if conflit, true if ok

Reimplemented from ModelNumRefHolidays.

Definition at line 91 of file mod_holiday_madonna.php.

◆ getExample()

mod_holiday_madonna::getExample ( )

Return numbering example.

Returns
string Example

Reimplemented from ModelNumRefHolidays.

Definition at line 80 of file mod_holiday_madonna.php.

◆ getNextValue()

mod_holiday_madonna::getNextValue ( $objsoc,
$holiday )

Return next value.

Parameters
Societe$objsocthird party object
Object$holidayHoliday object
Returns
string Value if OK, 0 if KO

Reimplemented from ModelNumRefHolidays.

Definition at line 128 of file mod_holiday_madonna.php.

References dol_syslog().

Referenced by holiday_get_num().

◆ holiday_get_num()

mod_holiday_madonna::holiday_get_num ( $fuser,
$objforref )

Return next value.

Parameters
User$fuserUser object
Object$objforrefHoliday object
Returns
string Value if OK, 0 if KO

Definition at line 173 of file mod_holiday_madonna.php.

References getNextValue().

◆ info()

mod_holiday_madonna::info ( )

Return default description of numbering model.

Returns
string text description

Reimplemented from ModelNumRefHolidays.

Definition at line 68 of file mod_holiday_madonna.php.


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