ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilIndependentGlobalTemplate Class Reference
+ Inheritance diagram for ilIndependentGlobalTemplate:
+ Collaboration diagram for ilIndependentGlobalTemplate:

Public Member Functions

 __construct ( $file, $flag1, $flag2, $in_module='', $vars=self::DEFAULT_BLOCK, $plugin=false, $a_use_cache=true)
 
 get (?string $part=null, bool $add_error_mess=false, bool $handle_referer=false, bool $add_ilias_footer=false, bool $add_standard_elements=false, bool $a_main_menu=true, bool $a_tabs=true)
 
- Public Member Functions inherited from ilGlobalTemplate
 __construct (string $file, bool $flag1, bool $flag2, string $in_module='', string $vars=self::DEFAULT_BLOCK, bool $plugin=false, bool $a_use_cache=true)
 
 printToString (string $part=self::DEFAULT_BLOCK)
 
 hideFooter ()
 Make the template hide the footer. More...
 
 setOnScreenMessage (string $a_type, string $a_txt, bool $a_keep=false)
 Set a message to be displayed to the user. More...
 
 addJavaScript (string $a_js_file, bool $a_add_version_parameter=true, int $a_batch=2)
 Add a javascript file that should be included in the header. More...
 
 addOnLoadCode (string $a_code, int $a_batch=2)
 Add on load code. More...
 
 getOnLoadCodeForAsynch ()
 Get js onload code for ajax calls. More...
 
 resetJavascript ()
 Reset javascript files. More...
 
 fillJavaScriptFiles (bool $a_force=false)
 Probably adds javascript files. More...
 
 fillOnLoadCode ()
 
 addCss (string $a_css_file, string $media="screen")
 Add a css file that should be included in the header. More...
 
 addInlineCss (string $a_css, string $media="screen")
 Add a css file that should be included in the header. More...
 
 fillCssFiles (bool $a_force=false)
 
 setBodyClass (string $a_class="")
 Sets the body-tags class. More...
 
 fillBodyClass ()
 
 renderPage (string $part, bool $a_fill_tabs, bool $a_skip_main_menu, Container $DIC)
 
 loadStandardTemplate ()
 This loads the standard template "tpl.adm_content.html" and "tpl.statusline.html" the CONTENT and STATUSLINE placeholders if they are not already loaded. More...
 
 setTitle (string $a_title, bool $hidden=false)
 Sets title in standard template. More...
 
 setDescription (string $a_descr)
 Sets descripton below title in standard template. More...
 
 setTitleIcon (string $a_icon_path, string $a_icon_desc="")
 set title icon More...
 
 setAlertProperties (array $a_props)
 Set alert properties. More...
 
 clearHeader ()
 Clear header. More...
 
 setHeaderActionMenu (string $a_header)
 Set header action menu. More...
 
 setHeaderPageTitle (string $a_title)
 Sets the title of the page (for browser window). More...
 
 setLocator ()
 Insert locator. More...
 
 setTabs (string $a_tabs_html)
 
 setSubTabs (string $a_tabs_html)
 sets subtabs in standard template More...
 
 fillTabs ()
 
 setContent (string $a_html)
 Sets content for standard template. More...
 
 setLeftContent (string $a_html)
 Sets content of left column. More...
 
 setLeftNavContent (string $a_content)
 Sets content of left navigation column. More...
 
 setRightContent (string $a_html)
 Sets content of right column. More...
 
 fillContentLanguage ()
 
 fillWindowTitle ()
 
 setPageFormAction (string $a_action)
 Sets the pages form action. More...
 
 setLoginTargetPar (string $a_val)
 Set target parameter for login (public sector). More...
 
 getSpecial (string $part=self::DEFAULT_BLOCK, bool $add_error_mess=false, bool $handle_referer=false, bool $add_ilias_footer=false, bool $add_standard_elements=false, bool $a_main_menu=true, bool $a_tabs=true)
 
 printToStdout (string $part=self::DEFAULT_BLOCK, bool $a_fill_tabs=true, bool $a_skip_main_menu=false)
 
 fillScreenReaderFocus ()
 
 setTreeFlatIcon (string $a_link, string $a_mode)
 Sets a tree or flat icon. More...
 
 addAdminPanelToolbar (ilToolbarGUI $toolb, bool $a_bottom_panel=true, bool $a_arrow=false)
 
 setPermanentLink (string $a_type, ?int $a_id, string $a_append="", string $a_target="", string $a_title="")
 Generates and sets a permanent ilias link. More...
 
 resetHeaderBlock (bool $a_reset_header_action=true)
 Reset all header properties: title, icon, description, alerts, action menu. More...
 
 setFileUploadRefId (int $a_ref_id)
 Enables the file upload into this object by dropping a file. More...
 
 get (string $part=self::DEFAULT_BLOCK)
 
 setVariable (string $variable, $value='')
 Sets the given variable to the given value. More...
 
 setCurrentBlock (string $part=self::DEFAULT_BLOCK)
 
 touchBlock (string $block)
 
 parseCurrentBlock (string $part=self::DEFAULT_BLOCK)
 
 addBlockFile (string $var, string $block, string $template_name, ?string $in_module=null)
 
 blockExists (string $a_blockname)
 check if block exists in actual template More...
 
 getJSFiles ()
 
 getCSSFiles ()
 
- Public Member Functions inherited from ILIAS\UICore\GlobalTemplate
 printToString ()
 Use this method to get the finally rendered page as string. More...
 
 addAdminPanelToolbar (\ilToolbarGUI $toolbar, bool $is_bottom_panel=true, bool $has_arrow=false)
 Add admin panel commands as toolbar. More...
 
- Public Member Functions inherited from ILIAS\UI\Implementation\Render\Template
 setCurrentBlock (string $name)
 Set the block to work on. More...
 
 parseCurrentBlock ()
 Parse the block that is currently worked on. More...
 
 touchBlock (string $name)
 Touch a block without working further on it. More...
 
 setVariable (string $name, $value)
 Set a variable in the current block. More...
 
 get (?string $block=null)
 Get the rendered template or a specific block. More...
 

Additional Inherited Members

- Data Fields inherited from ILIAS\UICore\GlobalTemplate
const MESSAGE_TYPE_FAILURE = 'failure'
 
const MESSAGE_TYPE_SUCCESS = "success"
 
const MESSAGE_TYPE_QUESTION = "question"
 
const MESSAGE_TYPE_INFO = "info"
 
const MESSAGE_TYPES
 
const DEFAULT_BLOCK = 'DEFAULT'
 
- Protected Member Functions inherited from ilGlobalTemplate
 getMainMenu ()
 
 fillMainMenu ()
 
 initHelp ()
 
 fillMessage ()
 
 getMessageTextForType (string $type)
 
 fillJavascriptFile (string $file, string $vers)
 
 resetCss ()
 
 fillInlineCss ()
 
 fillNewContentStyle ()
 
 fillHeader ()
 
 getHeaderActionMenu ()
 
 getTabsHTML ()
 
 fillLeftNav ()
 
 setCenterColumnClass ()
 
 fillMainContent ()
 
 fillLeftContent ()
 
 fillRightContent ()
 
 fillToolbar ()
 
 fillPageFormAction ()
 
 getLoginTargetPar ()
 
 fillSideIcons ()
 
 fillAdminPanel ()
 
 fillPermanentLink ()
 
 variableExists (string $a_variablename)
 
- Protected Attributes inherited from ilGlobalTemplate
ilTemplate $template
 
ilToolbarGUI $admin_panel_commands_toolbar = null
 
array $js_files
 
array $js_files_vp
 
array $js_files_batch
 
array $css_files = []
 
array $inline_css = []
 
string $in_module
 
string $template_name
 
string $body_class = ''
 
string $tree_flat_link = ""
 
string $page_form_action = ""
 
array $permanent_link = []
 
string $main_content = ""
 
array $lightbox = []
 
bool $standard_template_loaded = false
 
string $main_menu = ''
 
string $main_menu_spacer = ''
 
array $messages = []
 
bool $show_footer = true
 
array $on_load_code = []
 
string $left_nav_content = ''
 
string $tree_flat_mode = ''
 
bool $admin_panel_arrow = false
 
bool $admin_panel_bottom = false
 
int $enable_fileupload = null
 
string $header_page_title = ""
 
string $title = ""
 
string $title_desc = ""
 
array $title_alerts = []
 
string $header_action = ''
 
string $icon_desc = ''
 
string $icon_path = ''
 
string $tabs_html = ""
 
string $sub_tabs_html = ""
 
string $left_content = ''
 
string $right_content = ''
 
string $login_target_par = ''
 

Detailed Description

Definition at line 28 of file ilIndependentTemplate.php.

Constructor & Destructor Documentation

◆ __construct()

ilIndependentGlobalTemplate::__construct (   $file,
  $flag1,
  $flag2,
  $in_module = '',
  $vars = self::DEFAULT_BLOCK,
  $plugin = false,
  $a_use_cache = true 
)

Definition at line 30 of file ilIndependentTemplate.php.

References ilGlobalTemplate\$in_module, XapiProxy\$plugin, and ilGlobalTemplate\setBodyClass().

38  {
39  $this->setBodyClass("std");
40  $this->template = new ilIndependantTemplate($file, $flag1, $flag2, $in_module, $vars, $plugin, $a_use_cache);
41  }
setBodyClass(string $a_class="")
Sets the body-tags class.
+ Here is the call graph for this function:

Member Function Documentation

◆ get()

ilIndependentGlobalTemplate::get ( ?string  $part = null,
bool  $add_error_mess = false,
bool  $handle_referer = false,
bool  $add_ilias_footer = false,
bool  $add_standard_elements = false,
bool  $a_main_menu = true,
bool  $a_tabs = true 
)

Definition at line 44 of file ilIndependentTemplate.php.

52  : string {
53  return $this->template->get($part);
54  }

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