getQueryString() */ public $query_string; public $page; public $profile; public $profile_uid; public $user; public $cid; public $contact; public $contacts; public $page_contact; public $content; public $data = []; /** @deprecated 2019.09 - use App\Arguments->getCommand() */ public $cmd = ''; /** @deprecated 2019.09 - use App\Arguments->getArgv() or Arguments->get() */ public $argv; /** @deprecated 2019.09 - use App\Arguments->getArgc() */ public $argc; /** @deprecated 2019.09 - Use App\Module->getName() instead */ public $module; public $timezone; public $interactive = true; public $identities; public $is_mobile = false; public $is_tablet = false; public $theme_info = []; public $category; // Allow themes to control internal parameters // by changing App values in theme.php public $sourcename = ''; public $videowidth = 425; public $videoheight = 350; public $force_max_items = 0; public $theme_events_in_profile = true; public $stylesheets = []; public $footerScripts = []; /** * @var App\Mode The Mode of the Application */ private $mode; /** * @var App\Router */ private $router; /** * @var BaseURL */ private $baseURL; /** * @var string The name of the current theme */ private $currentTheme; /** * @var bool check if request was an AJAX (xmlhttprequest) request */ private $isAjax; /** * @var MobileDetect */ public $mobileDetect; /** * @var Configuration The config */ private $config; /** * @var LoggerInterface The logger */ private $logger; /** * @var Profiler The profiler of this app */ private $profiler; /** * @var Database The Friendica database connection */ private $database; /** * @var L10n The translator */ private $l10n; /** * @var App\Arguments */ private $args; /** * Returns the current config cache of this node * * @return ConfigCache */ public function getConfigCache() { return $this->config->getCache(); } /** * Returns the current config of this node * * @return Configuration */ public function getConfig() { return $this->config; } /** * The basepath of this app * * @return string */ public function getBasePath() { // Don't use the basepath of the config table for basepath (it should always be the config-file one) return $this->config->getCache()->get('system', 'basepath'); } /** * The Logger of this app * * @return LoggerInterface */ public function getLogger() { return $this->logger; } /** * The profiler of this app * * @return Profiler */ public function getProfiler() { return $this->profiler; } /** * Returns the Mode of the Application * * @return App\Mode The Application Mode */ public function getMode() { return $this->mode; } /** * Returns the Database of the Application * * @return Database */ public function getDBA() { return $this->database; } /** * Register a stylesheet file path to be included in the tag of every page. * Inclusion is done in App->initHead(). * The path can be absolute or relative to the Friendica installation base folder. * * @param string $path * * @see initHead() * */ public function registerStylesheet($path) { if (mb_strpos($path, $this->getBasePath() . DIRECTORY_SEPARATOR) === 0) { $path = mb_substr($path, mb_strlen($this->getBasePath() . DIRECTORY_SEPARATOR)); } $this->stylesheets[] = trim($path, '/'); } /** * Register a javascript file path to be included in the