Closed vincentcourtois closed 5 years ago
First step : modify the Arkaan::campaigns::Document class to remove the name field and add two new fields
Arkaan::campaigns::Document
name
basename
counter
0
Second step : make two new methods
name=
First step : modify the
Arkaan::campaigns::Document
class to remove thename
field and add two new fieldsbasename
that replaces the namecounter
that is an integer, default0
, incrementing with each same title attributed.Second step : make two new methods
name=
that assigns the name to thebasename
field and optionally affects a value to the suffix higher than zero (highest suffix for this name +1)name
that returns the basename with the suffix between parenthesis if the suffix is higher than zero.