class NumModelMarbre extends NumModel (View source)

NumModelMarbre class

Class to manage module numbering rules Marbre

Properties

$error from NumModel
$version
$nom
protected $const_name
protected $table_name
protected $field_name
protected $prefix

Methods

boolean
isEnabled()

Return if a model can be used or not

from NumModel
string
info()

Return description of numbering model

string
getExample()

Return an example of numbering

boolean
canBeActivated()

Check if the numbers already existing in the database doesn't have conflicts with this numbering model

string
getNextValue(Societe $objsoc = null)

Return next free value

string
getVersion()

Return numbering model version

from NumModel
__construct($const_name_prefix, $model_name = '')

Constructor

Details

boolean isEnabled()

Return if a model can be used or not

Return Value

boolean true if model can be used

string info()

Return description of numbering model

Return Value

string Text description

string getExample()

Return an example of numbering

Return Value

string Example

boolean canBeActivated()

Check if the numbers already existing in the database doesn't have conflicts with this numbering model

Return Value

boolean false if conflict, true if ok

string getNextValue(Societe $objsoc = null)

Return next free value

Parameters

Societe $objsoc Object thirdparty

Return Value

string value

string getVersion()

Return numbering model version

Return Value

string value

__construct($const_name_prefix, $model_name = '')

Constructor

Parameters

$const_name_prefix Constant name prefix
$model_name Numbering model name