]> git.mxchange.org Git - friendica.git/blob - object/BaseObject.php
FR update to the strings THX Perig
[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                 global $a;
25                 self::$app = $a;
26
27                 return self::$app;
28         }
29
30         /**
31          * Set the app
32          */
33         public static function set_app($app) {
34                 self::$app = $app;
35         }
36 }
37 ?>