ILIAS  release_7 Revision v7.30-3-g800a261c036
ilPCLoginPageElement Class Reference

Class ilPCLoginPageElement. More...

+ Inheritance diagram for ilPCLoginPageElement:
+ Collaboration diagram for ilPCLoginPageElement:

Public Member Functions

 init ()
 Init page content component. More...
 
 setNode ($a_node)
 Set node. More...
 
 create (&$a_pg_obj, $a_hier_id, $a_pc_id="")
 Create resources node in xml. More...
 
 setLoginPageElementType ($a_type)
 Set Type of Login Page Element. More...
 
 getLoginPageElementType ()
 Get log page element type. More...
 
 setAlignment ($a_alignment)
 set alignment More...
 
 getAlignment ()
 Get alignment. More...
 
- Public Member Functions inherited from ilPageContent
 __construct ($a_pg_obj)
 Constructor. More...
 
 setPage ($a_val)
 Set page. More...
 
 getPage ()
 Get page. More...
 
 init ()
 Init object. More...
 
 getType ()
 Get type of page content. More...
 
 setNode ($a_node)
 Set xml node of page content. More...
 
getNode ()
 Get xml node of page content. More...
 
 getJavascriptFiles ($a_mode)
 Get Javascript files. More...
 
 getCssFiles ($a_mode)
 Get css files. More...
 
 getOnloadCode ($a_mode)
 Get on load code. More...
 
 setHierId ($a_hier_id)
 Set hierarchical ID in xml structure. More...
 
 getHierId ()
 Get hierarchical id. More...
 
 lookupHierId ()
 Get hierarchical id from dom. More...
 
 readHierId ()
 Read PC Id. More...
 
 setPcId ($a_pcid)
 Set PC Id. More...
 
 getPCId ()
 Get PC Id. More...
 
 setFileDownloadLink ($a_download_link)
 Set file download link. More...
 
 getFileDownloadLink ()
 Get file download link. More...
 
 setProfileBackUrl ($url)
 
 getProfileBackUrl ()
 
 setFullscreenLink ($a_fullscreen_link)
 Set fullscreen link. More...
 
 getFullscreenLink ()
 Get fullscreen link. More...
 
 setSourcecodeDownloadScript ($script_name)
 Set sourcecode download script. More...
 
 getSourcecodeDownloadScript ()
 Get sourcecode download script. More...
 
 readPCId ()
 Read PC Id. More...
 
 writePCId ($a_pc_id)
 Write pc id. More...
 
 setEnabled ($value)
 Set Enabled value for page content component. More...
 
 enable ()
 Enable page content. More...
 
 disable ()
 Disable page content. More...
 
 isEnabled ()
 Check whether page content is enabled. More...
 
 createPageContentNode ($a_set_this_node=true)
 Create page content node (always use this method first when adding a new element) More...
 
 modifyPageContentPostXsl ($a_output, $a_mode, $a_abstract_only=false)
 Modify page content after xsl. More...
 
 getModel ()
 Get model. More...
 

Static Public Member Functions

static getAllTypes ()
 Get all types. More...
 
static getLangVars ()
 Get lang vars needed for editing. More...
 
- Static Public Member Functions inherited from ilPageContent
static incEdId ($ed_id)
 Increases an hierarchical editing id at lowest level (last number) More...
 
static decEdId ($ed_id)
 Decreases an hierarchical editing id at lowest level (last number) More...
 
static haveSameContainer ($ed_id1, $ed_id2)
 Check, if two ids are in same container. More...
 
static sortHierIds ($a_array)
 Sort an array of Hier IDS in ascending order. More...
 
static isGreaterHierId ($a, $b)
 Check whether Hier ID $a is greater than Hier ID $b. More...
 
static getLangVars ()
 Get lang vars needed for editing. More...
 
static handleCopiedContent (DOMDocument $a_domdoc, $a_self_ass=true, $a_clone_mobs=false)
 Handle copied content. More...
 
static afterPageUpdate ($a_page, DOMDocument $a_domdoc, $a_xml, $a_creation)
 After page has been updated (or created) More...
 
static beforePageDelete ($a_page)
 Before page is being deleted. More...
 
static afterPageHistoryEntry ($a_page, DOMDocument $a_old_domdoc, $a_old_xml, $a_old_nr)
 After page history entry has been created. More...
 

Data Fields

 $res_node
 
- Data Fields inherited from ilPageContent
 $hier_id
 
 $node
 
 $dom
 
 $page_lang
 

Static Private Attributes

static $types
 

Additional Inherited Members

- Protected Member Functions inherited from ilPageContent
 setType ($a_type)
 Set Type. More...
 
- Protected Attributes inherited from ilPageContent
 $profile_back_url
 
 $file_download_link
 
 $fullscreen_link
 
 $sourcecode_download_script
 
 $log
 

Detailed Description

Class ilPCLoginPageElement.

Login page element object (see ILIAS DTD). Inserts login page elements

Author
Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Version
$Id$

Definition at line 16 of file class.ilPCLoginPageElement.php.

Member Function Documentation

◆ create()

ilPCLoginPageElement::create ( $a_pg_obj,
  $a_hier_id,
  $a_pc_id = "" 
)

Create resources node in xml.

Parameters
object$a_pg_objPage Object
string$a_hier_idHierarchical ID

Definition at line 63 of file class.ilPCLoginPageElement.php.

64 {
65 $this->node = $this->createPageContentNode();
66 $a_pg_obj->insertContent($this, $a_hier_id, IL_INSERT_AFTER, $a_pc_id);
67 $lpe = $this->dom->create_element('LoginPageElement');
68 $this->res_node = $this->node->append_child($lpe);
69 }
const IL_INSERT_AFTER
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element)

References ilPageContent\createPageContentNode(), and IL_INSERT_AFTER.

+ Here is the call graph for this function:

◆ getAlignment()

ilPCLoginPageElement::getAlignment ( )

Get alignment.

Returns
string $alignment

Definition at line 107 of file class.ilPCLoginPageElement.php.

108 {
109 if (is_object($this->res_node)) {
110 return $this->res_node->get_attribute('HorizontalAlign');
111 }
112 }

◆ getAllTypes()

static ilPCLoginPageElement::getAllTypes ( )
static

Get all types.

Returns
array all type

Definition at line 35 of file class.ilPCLoginPageElement.php.

36 {
37 return self::$types;
38 }

References $types.

Referenced by ilPCLoginPageElementGUI\edit().

+ Here is the caller graph for this function:

◆ getLangVars()

static ilPCLoginPageElement::getLangVars ( )
static

Get lang vars needed for editing.

Returns
array array of lang var keys

Reimplemented from ilPageContent.

Definition at line 118 of file class.ilPCLoginPageElement.php.

119 {
120 return array("ed_insert_login_page_element");
121 }

◆ getLoginPageElementType()

ilPCLoginPageElement::getLoginPageElementType ( )

Get log page element type.

Returns
string resource type group

Definition at line 88 of file class.ilPCLoginPageElement.php.

89 {
90 if (is_object($this->res_node)) {
91 return $this->res_node->get_attribute('Type');
92 }
93 }

◆ init()

ilPCLoginPageElement::init ( )

Init page content component.

Reimplemented from ilPageContent.

Definition at line 43 of file class.ilPCLoginPageElement.php.

44 {
45 $this->setType('lpe');
46 }
setType($a_type)
Set Type.

References ilPageContent\setType().

+ Here is the call graph for this function:

◆ setAlignment()

ilPCLoginPageElement::setAlignment (   $a_alignment)

set alignment

Definition at line 98 of file class.ilPCLoginPageElement.php.

99 {
100 $this->res_node->set_attribute('HorizontalAlign', $a_alignment);
101 }

◆ setLoginPageElementType()

ilPCLoginPageElement::setLoginPageElementType (   $a_type)

Set Type of Login Page Element.

Parameters
string$a_typeResource Type Group

Definition at line 76 of file class.ilPCLoginPageElement.php.

77 {
78 if (!empty($a_type)) {
79 $this->res_node->set_attribute('Type', $a_type);
80 }
81 }

◆ setNode()

ilPCLoginPageElement::setNode (   $a_node)

Set node.

Reimplemented from ilPageContent.

Definition at line 51 of file class.ilPCLoginPageElement.php.

52 {
53 parent::setNode($a_node); // this is the PageContent node
54 $this->res_node = $a_node->first_child(); // this is the login page element
55 }

Field Documentation

◆ $res_node

ilPCLoginPageElement::$res_node

Definition at line 18 of file class.ilPCLoginPageElement.php.

◆ $types

ilPCLoginPageElement::$types
staticprivate
Initial value:
= array(
'login-form' => 'login_form',
'cas-login-form' => 'cas_login_form',
'shibboleth-login-form' => 'shib_login_form',
'openid-connect-login' => 'openid_connect_login',
'registration-link' => 'registration_link',
'language-selection' => 'language_selection',
'user-agreement' => 'user_agreement_link',
'saml-login' => 'saml_login'
)

Definition at line 20 of file class.ilPCLoginPageElement.php.

Referenced by getAllTypes().


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