@@ 1257-1265 (lines=9) @@ | ||
1254 | * @return bool|string |
|
1255 | * @internal param int $durations Durée en jours |
|
1256 | */ |
|
1257 | public function addDaysToDate($duration = 1, $startingDate = 0) |
|
1258 | { |
|
1259 | if ($startingDate == 0) { |
|
1260 | $startingDate = time(); |
|
1261 | } |
|
1262 | $endingDate = $startingDate + ($duration * 86400); |
|
1263 | ||
1264 | return date('Y-m-d', $endingDate); |
|
1265 | } |
|
1266 | ||
1267 | /** |
|
1268 | * Retourne un breadcrumb en fonction des paramètres passés et en partant (d'office) de la racine du module |
@@ 1400-1408 (lines=9) @@ | ||
1397 | * @return bool|string |
|
1398 | * @internal param int $durations Durée en jours |
|
1399 | */ |
|
1400 | public static function addDaysToDate($duration = 1, $startingDate = 0) |
|
1401 | { |
|
1402 | if ($startingDate == 0) { |
|
1403 | $startingDate = time(); |
|
1404 | } |
|
1405 | $endingDate = $startingDate + ($duration * 86400); |
|
1406 | ||
1407 | return date('Y-m-d', $endingDate); |
|
1408 | } |
|
1409 | ||
1410 | /** |
|
1411 | * Retourne un breadcrumb en fonction des paramètres passés et en partant (d'office) de la racine du module |