mv objects from object dir to include where they belong

This commit is contained in:
friendica
2012-10-22 20:07:40 -07:00
parent 88be2eaaae
commit d9c947663c
3 changed files with 2 additions and 2 deletions

37
include/BaseObject.php Normal file
View File

@@ -0,0 +1,37 @@
<?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;
}
}
?>