mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-12 19:02:35 +01:00
Fix phan
This commit is contained in:
@@ -133,7 +133,7 @@ if ($action == 'updateMask') {
|
||||
} elseif ($action == 'del') {
|
||||
$ret = delDocumentModel($value, $type);
|
||||
if ($ret > 0) {
|
||||
if ($conf->global->FACTURE_ADDON_PDF == "$value") {
|
||||
if (getDolGlobalString('FACTURE_ADDON_PDF') == (string) $value) {
|
||||
dolibarr_del_const($db, 'FACTURE_ADDON_PDF', $conf->entity);
|
||||
}
|
||||
}
|
||||
@@ -569,7 +569,7 @@ foreach ($dirmodels as $reldir) {
|
||||
|
||||
// Default
|
||||
print '<td class="center">';
|
||||
if ($conf->global->FACTURE_ADDON_PDF == "$name") {
|
||||
if (getDolGlobalString('FACTURE_ADDON_PDF') == (string) $name) {
|
||||
print img_picto($langs->trans("Default"), 'on');
|
||||
} else {
|
||||
print '<a class="reposition" href="'.$_SERVER["PHP_SELF"].'?action=setdoc&token='.newToken().'&value='.urlencode($name).'&scan_dir='.urlencode($module->scandir).'&label='.urlencode($module->name).'" alt="'.$langs->trans("Default").'">'.img_picto($langs->trans("SetAsDefault"), 'off').'</a>';
|
||||
|
||||
@@ -86,6 +86,13 @@ abstract class ModeleNumRefFicheinter extends CommonNumRefGenerator
|
||||
* @return string|int<-1,0> Next value if OK, <=0 if KO
|
||||
*/
|
||||
abstract public function getNextValue($objsoc = '', $object = '');
|
||||
|
||||
/**
|
||||
* Return an example of numbering
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
abstract public function getExample();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -90,4 +90,11 @@ abstract class ModelNumRefHolidays extends CommonNumRefGenerator
|
||||
* @return string|int<-1,0> Value if OK, <=0 if KO
|
||||
*/
|
||||
abstract public function getNextValue($objsoc, $holiday);
|
||||
|
||||
/**
|
||||
* Return an example of numbering
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
abstract public function getExample();
|
||||
}
|
||||
|
||||
@@ -90,4 +90,12 @@ abstract class ModeleNumRefEvaluation extends CommonNumRefGenerator
|
||||
* @return string|int<-1,0> Value if OK, <=0 if KO
|
||||
*/
|
||||
abstract public function getNextValue($object);
|
||||
|
||||
|
||||
/**
|
||||
* Return an example of numbering
|
||||
*
|
||||
* @return string Example
|
||||
*/
|
||||
abstract public function getExample();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user