XpressEngine Core
1.11.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
modules
member
member.mobile.php
Go to the documentation of this file.
1
<?php
2
/* Copyright (C) NAVER <http://www.navercorp.com> */
3
require_once(
_XE_PATH_
.
'modules/member/member.view.php'
);
4
class
memberMobile
extends
memberView
5
{
10
var
$memberInfo
;
11
12
function
init
()
13
{
14
// Get the member configuration
15
$oMemberModel =
getModel
(
'member'
);
16
$this->member_config = $oMemberModel->getMemberConfig();
17
Context::set
(
'member_config'
, $this->member_config);
18
$oSecurity =
new
Security
();
19
$oSecurity->encodeHTML(
'member_config.signupForm..'
);
20
21
22
$mskin = $this->member_config->mskin;
23
// Set the template path
24
if
(!$mskin)
25
{
26
$mskin =
'default'
;
27
$template_path
= sprintf(
'%sm.skins/%s'
, $this->module_path, $mskin);
28
}
29
else
30
{
31
$template_path
= sprintf(
'%sm.skins/%s'
, $this->module_path, $mskin);
32
}
33
34
// if member_srl exists, set memberInfo
35
$member_srl =
Context::get
(
'member_srl'
);
36
if
($member_srl)
37
{
38
$oMemberModel =
getModel
(
'member'
);
39
$this->memberInfo = $oMemberModel->getMemberInfoByMemberSrl($member_srl);
40
if
(!$this->memberInfo)
41
{
42
Context::set
(
'member_srl'
,
''
);
43
}
44
else
45
{
46
Context::set
(
'member_info'
,$this->memberInfo);
47
}
48
}
49
50
$this->
setTemplatePath
(
$template_path
);
51
52
$oLayoutModel =
getModel
(
'layout'
);
53
$layout_info = $oLayoutModel->getLayout($this->member_config->mlayout_srl);
54
if
($layout_info)
55
{
56
$this->module_info->mlayout_srl = $this->member_config->mlayout_srl;
57
$this->
setLayoutPath
($layout_info->path);
58
}
59
}
60
61
function
dispMemberModifyInfo
()
62
{
63
parent::dispMemberModifyInfo();
64
65
if
($this->member_info)
66
{
67
Context::set
(
'oMemberInfo'
, get_object_vars($this->member_info));
68
}
69
}
70
}
71
/* End of file member.mobile.php */
72
/* Location: ./modules/member/member.mobile.php */
memberMobile\dispMemberModifyInfo
dispMemberModifyInfo()
Definition:
member.mobile.php:61
ModuleObject\$template_path
$template_path
a path of directory where template files reside
Definition:
ModuleObject.class.php:20
Context\set
set($key, $val, $set_to_get_vars=0)
Definition:
Context.class.php:1948
memberMobile\$memberInfo
$memberInfo
Definition:
member.mobile.php:10
_XE_PATH_
const _XE_PATH_
Definition:
config.inc.php:49
Security
Definition:
Security.class.php:11
getModel
getModel($module_name)
Definition:
func.inc.php:145
ModuleObject\setLayoutPath
setLayoutPath($path)
Definition:
ModuleObject.class.php:354
memberMobile\init
init()
Definition:
member.mobile.php:12
Context\get
get($key)
Definition:
Context.class.php:1973
ModuleObject\setTemplatePath
setTemplatePath($path)
Definition:
ModuleObject.class.php:275
memberMobile
Definition:
member.mobile.php:4
memberView
View class of member module.
Definition:
member.view.php:8
Generated on Tue Dec 18 2018 17:04:28 for XpressEngine Core by
1.8.5