Browse
For agents
About
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud!
/
1.0.1
Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud!
v1.0.1
Switch version
3.7.5
3.7.4
3.7.3
3.7.2
1-final
3.7.1
3.7.0
3.6.8
3.6.7
3.6.6
3.6.5
3.6.4
3.6.3
3.6.2
3.6.1
3.0.3
3.0.4
3.0.5
3.0.6
3.0.7
3.0.8
3.0.9
3.1.0
3.1.1
3.1.10
All 111 releases
Overview
Code
templately
/
core
/
class-base.php
class-base.php
in Templately – Elementor & Gutenberg Template Library: 6500+ Free & Pro Ready Templates And Cloud! 1.0.1, at core/class-base.php
20 lines
388 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
namespace
Templately
;
4
5
class
Base
{
6
protected
static
$
_instance
=
null
;
7
/**
8
* Get Instance of Called Class
9
*
10
*
@return
void
11
*/
12
public
static
function
get_instance
(
)
{
13
if
(
static
::
$
_instance
===
null
)
{
14
$
class
=
get_called_class
(
)
;
15
static
::
$
_instance
=
new
$
class
;
16
}
17
return
static
::
$
_instance
;
18
}
19
}
20