Friendica Communications Platform
(please note that this is a clone of the repository at github, issues are handled there)
https://friendi.ca
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
479 B
37 lines
479 B
<?php |
|
if(class_exists('BaseObject')) |
|
return; |
|
|
|
require_once('boot.php'); |
|
|
|
/** |
|
* Basic object |
|
* |
|
* Contains what is usefull to any object |
|
*/ |
|
class BaseObject { |
|
private static $app = null; |
|
|
|
/** |
|
* Get the app |
|
* |
|
* Same as get_app from boot.php |
|
*/ |
|
public function get_app() { |
|
if(self::$app) |
|
return self::$app; |
|
|
|
global $a; |
|
self::$app = $a; |
|
|
|
return self::$app; |
|
} |
|
|
|
/** |
|
* Set the app |
|
*/ |
|
public static function set_app($app) { |
|
self::$app = $app; |
|
} |
|
} |
|
?>
|
|
|