XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
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 {
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 
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 
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 */
$template_path
a path of directory where template files reside
set($key, $val, $set_to_get_vars=0)
const _XE_PATH_
Definition: config.inc.php:49
getModel($module_name)
Definition: func.inc.php:145
View class of member module.
Definition: member.view.php:8