-
Notifications
You must be signed in to change notification settings - Fork 1
/
loader.php
46 lines (36 loc) · 1 KB
/
loader.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* @version
* @package HelloWorldLibrary
* @author Joomla! Coders Brazil - @JCoderBR ( http://jcbr.github.com )
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('LIB_HELLOWORLD_PATH') or die('Restricted access');
abstract class HELLOWORLD
{
public static $facebook = null;
public static $twitter = null;
/*
* Return Facebook Object, creating if aready doesent exists
*/
public static function getFacebook()
{
if (!self::$facebook) {
jimport('helloworld.facebook.load');
self::$facebook = LoadFacebook::getInstance();
}
return self::$facebook;
}
/*
* Return Facebook Object, creating if aready doesent exists
*/
public static function getTwitter()
{
if (!self::$twitter) {
jimport('helloworld.twitter.load');
self::$twitter = LoadTwitter::getInstance();
}
return self::$twitter;
}
}