Browse
For agents
About
Countdown Timer Block – build urgency for events and launches
/
1.2.8
Countdown Timer Block – build urgency for events and launches
v1.2.8
Switch version
1.3.3
trunk
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
1.1.0
1.1.1
1.1.2
1.1.3
1.1.4
1.1.5
1.1.6
1.1.7
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
All 32 releases
Overview
Code
countdown-time
/
bplugins_sdk
/
inc
/
Init.php
Init.php
in Countdown Timer Block – build urgency for events and launches 1.2.8, at bplugins_sdk/inc/Init.php
25 lines
495 B
Find file
t
No matching file
Up and down to move
Enter to open
Esc to close
Raw
Download
Zip
View raw
1
<
?
php
2
3
class
Init
{
4
5
public
static
function
get_services
(
)
{
6
return
[
7
Base
\
FSActivate
::
class
8
]
;
9
}
10
11
public
static
function
register_services
(
)
{
12
foreach
(
self
::
get_services
(
)
as
$
class
)
{
13
$
services
=
self
::
instantiate
(
$
class
)
;
14
if
(
method_exists
(
$
services
,
'
register
'
)
)
{
15
$
services
->
register
(
)
;
16
}
17
}
18
}
19
20
private
static
function
instantiate
(
$
class
)
{
21
return
new
$
class
(
)
;
22
}
23
}
24
25