4include_once
'./Services/COPage/classes/class.ilPageContent.php';
21 'login-form' =>
'login_form',
22 'cas-login-form' =>
'cas_login_form',
23 'shibboleth-login-form' =>
'shib_login_form',
24 'openid-connect-login' =>
'openid_connect_login',
25 'registration-link' =>
'registration_link',
26 'language-selection' =>
'language_selection',
27 'user-agreement' =>
'user_agreement_link',
28 'saml-login' =>
'saml_login'
53 parent::setNode($a_node);
54 $this->res_node = $a_node->first_child();
63 public function create(&$a_pg_obj, $a_hier_id, $a_pc_id =
"")
67 $lpe = $this->dom->create_element(
'LoginPageElement');
68 $this->res_node = $this->node->append_child($lpe);
78 if (!empty($a_type)) {
79 $this->res_node->set_attribute(
'Type', $a_type);
90 if (is_object($this->res_node)) {
91 return $this->res_node->get_attribute(
'Type');
100 $this->res_node->set_attribute(
'HorizontalAlign', $a_alignment);
109 if (is_object($this->res_node)) {
110 return $this->res_node->get_attribute(
'HorizontalAlign');
120 return array(
"ed_insert_login_page_element");
An exception for terminatinating execution or to throw for unit testing.
Class ilPCLoginPageElement.
setAlignment($a_alignment)
set alignment
static getLangVars()
Get lang vars needed for editing.
init()
Init page content component.
static getAllTypes()
Get all types.
setNode($a_node)
Set node.
create(&$a_pg_obj, $a_hier_id, $a_pc_id="")
Create resources node in xml.
setLoginPageElementType($a_type)
Set Type of Login Page Element.
getAlignment()
Get alignment.
getLoginPageElementType()
Get log page element type.
createPageContentNode($a_set_this_node=true)
Create page content node (always use this method first when adding a new element)
setType($a_type)
Set Type.