Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
singletontrait.php
1
<?php
2
3
namespace
Bitrix\Calendar\Core\Base
;
4
5
trait SingletonTrait
6
{
10
protected
static
$instance =
null
;
11
15
public
static
function
getInstance()
16
{
17
if
(static::$instance ===
null
)
18
{
19
static::$instance =
new
static
();
20
}
21
22
return
static::$instance;
23
}
24
25
26
protected
function
__construct
(){}
27
31
public
function
__wakeup
()
32
{
33
throw
new
BaseException
(
"Trying to wake singleton up"
);
34
}
35
protected
function
__clone
(){}
36
}
Bitrix\Calendar\Core\Base\BaseException
Definition
baseexception.php:8
Bitrix\Calendar\Core\Base
Definition
baseexception.php:3
Bitrix\Calendar\Core\Base\__construct
__construct()
Definition
singletontrait.php:26
Bitrix\Calendar\Core\Base\__wakeup
__wakeup()
Definition
singletontrait.php:31
Bitrix\Calendar\Core\Base\__clone
__clone()
Definition
singletontrait.php:35
modules
calendar
lib
core
base
singletontrait.php
Создано системой
1.10.0