1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
loggerdiagbase.php
См. документацию.
1<?php
2
3
4namespace Bitrix\Sale\Exchange\Internals;
5
6
7use Bitrix\Main\Config\Option;
8use Bitrix\Main\NotImplementedException;
9
11{
12 static protected function getNameOptionEndTime()
13 {
14 throw new NotImplementedException('The method getNameOptionEndTime is not implemented.');
15 }
16
17 static protected function getNameOptionIntervalDayOption()
18 {
19 throw new NotImplementedException('The method getNameOptionIntervalDayOption is not implemented.');
20 }
21
22 public static function isOn()
23 {
24 return time() < Option::get("sale", static::getNameOptionEndTime(), 0);
25 }
26
27 public static function enable($endTime = 0)
28 {
29 Option::set("sale", static::getNameOptionEndTime(), intval($endTime));
30 }
31
32 public static function disable()
33 {
34 Option::delete("sale", array("name" => static::getNameOptionEndTime()));
35 }
36
37 public static function getEndTime()
38 {
39 return intval(Option::get("sale", static::getNameOptionEndTime(), 0));
40 }
41
45 static public function getInterval()
46 {
47 $interval = (int)Option::get('sale', static::getNameOptionIntervalDayOption(), 1);
48
49 return $interval > 0 ? $interval : 1;
50 }
51}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804