1
1
Fork 0
friendica_2019-12_sharedHos.../src/BaseObject.php
Hypolite Petovan f43aaf5227 Move Item and Conversation from Core to Object
- Move BaseObject from Core\ to Friendica\
2017-11-19 16:50:49 -05:00

48 lines
573 B
PHP

<?php
/**
* @file src/BaseObject.php
*/
namespace Friendica;
require_once 'boot.php';
/**
* Basic object
*
* Contains what is useful to any object
*/
class BaseObject
{
private static $app = null;
/**
* Get the app
*
* Same as get_app from boot.php
*
* @return object
*/
public static function getApp()
{
if (self::$app) {
return self::$app;
}
self::$app = get_app();
return self::$app;
}
/**
* Set the app
*
* @param object $app App
*
* @return void
*/
public static function setApp($app)
{
self::$app = $app;
}
}