]> git.mxchange.org Git - friendica.git/blob - object/BaseObject.php
Bugfix: Switch to all networks when posts for a single contact are selected.
[friendica.git] / object / BaseObject.php
1 <?php
2 if(class_exists('BaseObject'))
3         return;
4
5 require_once('boot.php');
6
7 /**
8  * Basic object
9  *
10  * Contains what is usefull to any object
11  */
12 class BaseObject {
13         private static $app = null;
14
15         /**
16          * Get the app
17          *
18          * Same as get_app from boot.php
19          */
20         public function get_app() {
21                 if(self::$app)
22                         return self::$app;
23
24                 self::$app = get_app();
25
26                 return self::$app;
27         }
28
29         /**
30          * Set the app
31          */
32         public static function set_app($app) {
33                 self::$app = $app;
34         }
35 }