The Hubzilla
 All Classes Namespaces Files Functions Variables Pages
App Class Reference

Our main application structure for the life of this page. More...

Static Public Member Functions

static init ()
 
static get_baseurl ($ssl=false)
 
static set_baseurl ($url)
 
static get_scheme ()
 
static get_hostname ()
 
static set_hostname ($h)
 
static set_path ($p)
 
static get_path ()
 
static get_channel_links ()
 
static set_account ($acct)
 
static get_account ()
 
static set_channel ($channel)
 
static get_channel ()
 
static set_observer ($xchan)
 
static get_observer ()
 
static set_perms ($perms)
 
static get_perms ()
 
static set_oauth_key ($consumer_id)
 
static get_oauth_key ()
 
static get_apps ()
 
static set_apps ($arr)
 
static set_groups ($g)
 
static get_groups ()
 
static set_pager_total ($n)
 
static set_pager_itemspage ($n)
 
static build_pagehead ()
 
static register_template_engine ($class, $name= '')
 Register template engine class. More...
 
static template_engine ($name= '')
 Return template engine instance. More...
 
static get_template_engine ()
 Returns the active template engine. More...
 
static set_template_engine ($engine= 'smarty3')
 
static get_template_ldelim ($engine= 'smarty3')
 
static get_template_rdelim ($engine= 'smarty3')
 
static head_set_icon ($icon)
 
static head_get_icon ()
 

Static Public Attributes

static $install = false
 
static $account = null
 
static $channel = null
 
static $observer = null
 
static $profile_uid = 0
 
static $poi = null
 
static $layout = array()
 
static $pdl = null
 
static $config = array()
 
static $session = null
 
static $groups
 
static $language
 
static $langsave
 
static $rtl = false
 
static $plugins_admin
 
static $module_loaded = false
 
static $query_string
 
static $page
 
static $profile
 
static $user
 
static $cid
 
static $contact
 
static $contacts
 
static $content
 
static $data = array()
 
static $error = false
 
static $emojitab = false
 
static $cmd
 
static $argv
 
static $argc
 
static $module
 
static $pager
 
static $strings
 
static $stringsave
 
static $hooks
 
static $timezone
 
static $interactive = true
 
static $plugins
 
static $identities
 
static $css_sources = array()
 
static $js_sources = array()
 
static $linkrel = array()
 
static $theme_info = array()
 
static $is_sys = false
 
static $nav_sel
 
static $is_mobile = false
 
static $is_tablet = false
 
static $comanche
 
static $channel_links
 
static $category
 
static $sourcename = ''
 
static $videowidth = 425
 
static $videoheight = 350
 
static $force_max_items = 0
 
static $theme_thread_allow = true
 
static $template_engines = array()
 An array of registered template engines ('name'=>'class name') More...
 
static $template_engine_instance = array()
 An array of instanced template engines ('name'=>'instance') More...
 

Static Private Attributes

static $oauth_key = null
 
static $perms = null
 
static $widgets = array()
 
static $apps = array()
 
static $theme
 An array for all theme-controllable parameters. More...
 
static $ldelim
 
static $rdelim
 
static $scheme
 
static $hostname
 
static $path
 
static $baseurl
 
static $meta
 

Detailed Description

Our main application structure for the life of this page.

class: App

Primarily deals with the URL that got us here and tries to make some sense of it, and stores our page contents and config storage and anything else that might need to be passed around before we spit the page out.

Member Function Documentation

static App::build_pagehead ( )
static
Hooks:
build_pagehead Called when creating the HTML page header.
  • string header - Return the HTML header which should be added

Referenced by construct_page().

static App::get_apps ( )
static
static App::get_baseurl (   $ssl = false)
static

Referenced by z_root().

static App::get_channel ( )
static

Referenced by api_albums(), api_call(), api_network_stream(), api_photos(), api_user(), bb_observer(), bbcode(), channel_apps(), Zotlabs\Module\Connedit\connedit_clone(), conversation(), Zotlabs\Module\Defperms\defperms_clone(), design_tools(), Zotlabs\Module\Embedphotos\embedphotos_album_list(), Zotlabs\Module\Dreport\get(), Zotlabs\Module\React\get(), Zotlabs\Module\Zping\get(), Zotlabs\Module\Probe\get(), Zotlabs\Module\Pubstream\get(), Zotlabs\Module\Like\get(), Zotlabs\Module\Message\get(), Zotlabs\Module\Subthread\get(), Zotlabs\Module\Tagger\get(), Zotlabs\Module\Editpost\get(), Zotlabs\Module\Display\get(), Zotlabs\Module\Sharedwithme\get(), Zotlabs\Module\Editlayout\get(), Zotlabs\Module\Layouts\get(), Zotlabs\Module\Editblock\get(), Zotlabs\Module\Editwebpage\get(), Zotlabs\Module\Blocks\get(), Zotlabs\Module\Webpages\get(), Zotlabs\Module\Network\get(), Zotlabs\Module\Hq\get(), Zotlabs\Module\Rpost\get(), Zotlabs\Module\Settings\Permcats\get(), Zotlabs\Module\Filestorage\get(), Zotlabs\Module\Rbmark\get(), Zotlabs\Module\Settings\get(), Zotlabs\Module\Changeaddr\get(), Zotlabs\Module\Bookmarks\get(), Zotlabs\Module\Channel\get(), Zotlabs\Module\Menu\get(), Zotlabs\Module\Settings\Tokens\get(), Zotlabs\Module\Locs\get(), Zotlabs\Module\Appman\get(), Zotlabs\Module\Chat\get(), Zotlabs\Module\Invite\get(), Zotlabs\Module\Mitem\get(), Zotlabs\Module\Rate\get(), Zotlabs\Module\Mail\get(), Zotlabs\Module\Defperms\get(), Zotlabs\Module\Thing\get(), Zotlabs\Module\Events\get(), Zotlabs\Module\Cover_photo\get(), Zotlabs\Module\Profile_photo\get(), Zotlabs\Module\Settings\Channel\get(), Zotlabs\Module\Connedit\get(), Zotlabs\Module\Photos\get(), Zotlabs\Module\Profiles\get(), Zotlabs\Module\Cdav\get(), handle_tag(), Zotlabs\Module\Import\import_account(), Zotlabs\Module\Hcard\init(), Zotlabs\Module\Bookmarks\init(), Zotlabs\Module\Uexport\init(), Zotlabs\Module\Prate\init(), Zotlabs\Module\Branchtopic\init(), Zotlabs\Module\Rate\init(), Zotlabs\Module\Magic\init(), Zotlabs\Module\Profiles\init(), Zotlabs\Module\Follow\init(), Zotlabs\Module\Profperm\init(), Zotlabs\Module\Home\init(), Zotlabs\Module\Impel\init(), Zotlabs\Module\Connections\init(), Zotlabs\Module\Cdav\init(), Zotlabs\Module\Chat\init(), Zotlabs\Module\Mood\init(), Zotlabs\Module\Network\init(), Zotlabs\Module\Profile\init(), Zotlabs\Module\Thing\init(), Zotlabs\Module\Wiki\init(), Zotlabs\Module\Defperms\init(), Zotlabs\Module\Channel\init(), Zotlabs\Module\Ping\init(), Zotlabs\Module\Poke\init(), Zotlabs\Module\Connedit\init(), Zotlabs\Module\Cover_photo\init(), Zotlabs\Module\Snap\init(), Zotlabs\Module\Cloud\init(), Zotlabs\Module\Profile_photo\init(), is_public_profile(), menu_add_item(), menu_edit_item(), nav(), Zotlabs\Lib\Apps\parse_app_description(), populate_acl(), Zotlabs\Module\Changeaddr\post(), Zotlabs\Module\Sources\post(), Zotlabs\Module\Locs\post(), Zotlabs\Module\Settings\Permcats\post(), Zotlabs\Module\Settings\Tokens\post(), Zotlabs\Module\Filestorage\post(), Zotlabs\Module\Settings\Channel\post(), Zotlabs\Module\Import_items\post(), Zotlabs\Module\Events\post(), Zotlabs\Module\Mail\post(), Zotlabs\Module\Embedphotos\post(), Zotlabs\Module\Prate\post(), Zotlabs\Module\Item\post(), Zotlabs\Module\Rbmark\post(), Zotlabs\Module\Tasks\post(), Zotlabs\Module\Cover_photo\post(), Zotlabs\Module\Defperms\post(), Zotlabs\Module\Chat\post(), Zotlabs\Module\Rate\post(), Zotlabs\Module\Profile_photo\post(), Zotlabs\Module\Connedit\post(), Zotlabs\Module\Profiles\post(), Zotlabs\Module\Cdav\post(), Zotlabs\Module\Webpages\post(), post_activity_item(), profile_activity(), red_item(), scan_webpage_elements(), send_message(), thread_author_menu(), website_portation_tools(), Zotlabs\Widget\Rating\widget(), Zotlabs\Widget\Notifications\widget(), Zotlabs\Widget\Settings_menu\widget(), and Zotlabs\Widget\Cdav\widget().

static App::get_channel_links ( )
static
static App::get_groups ( )
static
static App::get_oauth_key ( )
static

Referenced by get_all_perms(), and perm_is_allowed().

static App::get_observer ( )
static

Referenced by api_albums(), api_photos(), Zotlabs\Lib\Apps\app_render(), attach_recursive_perms(), bb_observer(), Zotlabs\Lib\NativeWikiPage\bbcode(), bbcode(), conversation(), drop_item(), Zotlabs\Module\Embedphotos\embedphotos_album_list(), file_activity(), Zotlabs\Module\Achievements\get(), Zotlabs\Module\Chanview\get(), Zotlabs\Module\Article_edit\get(), Zotlabs\Module\Card_edit\get(), Zotlabs\Module\Like\get(), Zotlabs\Module\Subthread\get(), Zotlabs\Module\Search\get(), Zotlabs\Module\Oexchange\get(), Zotlabs\Module\Articles\get(), Zotlabs\Module\Cards\get(), Zotlabs\Module\Editblock\get(), Zotlabs\Module\Editlayout\get(), Zotlabs\Module\Layouts\get(), Zotlabs\Module\Editwebpage\get(), Zotlabs\Module\Blocks\get(), Zotlabs\Module\Webpages\get(), Zotlabs\Module\Rpost\get(), Zotlabs\Module\Filestorage\get(), Zotlabs\Module\Channel\get(), Zotlabs\Module\Connect\get(), Zotlabs\Module\Chat\get(), Zotlabs\Module\Invite\get(), Zotlabs\Module\Mitem\get(), Zotlabs\Module\Photos\get(), Zotlabs\Render\Comanche\get_condition_var(), get_observer_hash(), Zotlabs\Module\Zotfeed\init(), Zotlabs\Module\Page\init(), Zotlabs\Module\Share\init(), Zotlabs\Module\Photo\init(), Zotlabs\Module\Mood\init(), Zotlabs\Module\Cal\init(), Zotlabs\Module\Photos\init(), item_redir_and_replace_images(), nav(), Zotlabs\Lib\Apps\parse_app_description(), parseIdentityAwareHTML(), poco(), Zotlabs\Module\Wall_upload\post(), Zotlabs\Module\Wall_attach\post(), Zotlabs\Module\Item\post(), Zotlabs\Module\Connect\post(), post_activity_item(), profile_load(), profile_sidebar(), Zotlabs\Lib\ThreadStream\set_mode(), Zotlabs\Widget\Vcard\widget(), Zotlabs\Widget\Rating\widget(), Zotlabs\Widget\Photo_rand\widget(), and Zotlabs\Widget\Photo_albums\widget().

static App::get_path ( )
static
static App::get_perms ( )
static
static App::get_scheme ( )
static

Referenced by construct_page().

static App::get_template_engine ( )
static

Returns the active template engine.

Returns
string

Referenced by Zotlabs\Module\Fbrowser\files2().

static App::get_template_ldelim (   $engine = 'smarty3')
static
static App::get_template_rdelim (   $engine = 'smarty3')
static
static App::head_get_icon ( )
static

Referenced by build_pagehead().

static App::head_set_icon (   $icon)
static

Referenced by sys_boot().

static App::init ( )
static

App constructor.

Todo:
validate if this is still the desired behavior

Referenced by sys_boot().

static App::register_template_engine (   $class,
  $name = '' 
)
static

Register template engine class.

If $name is "", is used class static property $class::$name.

Parameters
string$class
string$name
static App::set_account (   $acct)
static
static App::set_apps (   $arr)
static
static App::set_baseurl (   $url)
static

Referenced by check_config(), and cli_startup().

static App::set_channel (   $channel)
static

Referenced by change_channel().

static App::set_groups (   $g)
static
static App::set_hostname (   $h)
static
static App::set_oauth_key (   $consumer_id)
static
static App::set_observer (   $xchan)
static
static App::set_path (   $p)
static
static App::set_perms (   $perms)
static

Referenced by change_channel().

static App::set_template_engine (   $engine = 'smarty3')
static
static App::template_engine (   $name = '')
static

Return template engine instance.

If $name is not defined, return engine defined by theme, or default.

Parameters
string$nameTemplate engine name
Returns
object Template Engine instance

Referenced by get_intltext_template(), get_markup_template(), and replace_macros().

Member Data Documentation

App::$apps = array()
staticprivate
App::$baseurl
staticprivate
App::$category
static
App::$channel_links
static
App::$cid
static
App::$comanche
static
App::$contact
static
App::$content
static
App::$css_sources = array()
static
App::$emojitab = false
static
App::$force_max_items = 0
static
App::$groups
static
App::$hooks
static
App::$hostname
staticprivate
App::$identities
static
App::$install = false
static
App::$interactive = true
static

Referenced by info(), and notice().

App::$js_sources = array()
static
App::$langsave
static

Referenced by pop_lang(), and push_lang().

App::$ldelim
staticprivate
Initial value:
= array(
'internal' => '',
'smarty3' => '{{'
)
App::$linkrel = array()
static

Referenced by head_add_link(), and head_get_links().

App::$meta
staticprivate
App::$module_loaded = false
static
App::$nav_sel
static

Referenced by nav(), and nav_set_selected().

App::$oauth_key = null
staticprivate
App::$path
staticprivate

Referenced by init().

App::$pdl = null
static
App::$perms = null
staticprivate

Referenced by set_perms().

App::$plugins_admin
static
App::$profile
static

Referenced by advanced_profile(), articlecategories_widget(), cardcategories_widget(), categories_widget(), channel_apps(), construct_page(), contact_block(), conversation(), Zotlabs\Widget\Wiki_pages\create_missing_page(), Zotlabs\Module\Embedphotos\embedphotos_widget_album(), Zotlabs\Module\Search\get(), Zotlabs\Module\Viewconnections\get(), Zotlabs\Module\Block\get(), Zotlabs\Module\Cards\get(), Zotlabs\Module\Articles\get(), Zotlabs\Module\Common\get(), Zotlabs\Module\Editblock\get(), Zotlabs\Module\Editlayout\get(), Zotlabs\Module\Layouts\get(), Zotlabs\Module\Editwebpage\get(), Zotlabs\Module\Blocks\get(), Zotlabs\Module\Webpages\get(), Zotlabs\Module\Wiki\get(), Zotlabs\Module\Cal\get(), Zotlabs\Module\Channel\get(), Zotlabs\Module\Profile\get(), Zotlabs\Module\Chat\get(), Zotlabs\Module\Photos\get(), Zotlabs\Render\Comanche\get_channel_id(), Zotlabs\Module\Hcard\init(), Zotlabs\Module\Block\init(), Zotlabs\Module\Page\init(), Zotlabs\Module\Profile\init(), menu_render(), nav(), Zotlabs\Module\Photos\post(), profile_load(), Zotlabs\Lib\ThreadStream\set_mode(), vcard_from_xchan(), Zotlabs\Widget\Tagcloud_wall\widget(), Zotlabs\Widget\Bookmarkedchats\widget(), Zotlabs\Widget\Fullprofile\widget(), Zotlabs\Widget\Chatroom_list\widget(), Zotlabs\Widget\Design_tools\widget(), Zotlabs\Widget\Catcloud_wall\widget(), Zotlabs\Widget\Shortprofile\widget(), Zotlabs\Widget\Suggestedchats\widget(), Zotlabs\Widget\Profile\widget(), Zotlabs\Widget\Website_portation_tools\widget(), Zotlabs\Widget\Portfolio\widget(), Zotlabs\Widget\Album\widget(), Zotlabs\Widget\Categories\widget(), Zotlabs\Widget\Common_friends\widget(), Zotlabs\Widget\Photo_albums\widget(), and Zotlabs\Widget\Wiki_pages\widget().

App::$rdelim
staticprivate
Initial value:
= array(
'internal' => '',
'smarty3' => '}}'
)
App::$rtl = false
static
App::$scheme
staticprivate

Referenced by get_baseurl().

App::$sourcename = ''
static
App::$strings
static
App::$stringsave
static

Referenced by pop_lang(), and push_lang().

App::$template_engine_instance = array()
static

An array of instanced template engines ('name'=>'instance')

App::$template_engines = array()
static

An array of registered template engines ('name'=>'class name')

App::$theme
staticprivate
Initial value:
= array(
'sourcename' => '',
'videowidth' => 425,
'videoheight' => 350,
'force_max_items' => 0,
'thread_allow' => true,
'stylesheet' => '',
'template_engine' => 'smarty3',
)

An array for all theme-controllable parameters.

Mostly unimplemented yet. Only options 'template_engine' and beyond are used.

App::$theme_thread_allow = true
static
App::$timezone
static

Referenced by create_identity(), and sys_boot().

App::$user
static

Referenced by api_login(), conversation(), and dob().

App::$videoheight = 350
static
App::$videowidth = 425
static

Referenced by oembed_fetch_url(), and tryzrlvideo().

App::$widgets = array()
staticprivate

The documentation for this class was generated from the following file: