mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
ticket:328
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3298 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
70a6df5871
commit
7e262bf62a
2 changed files with 7 additions and 6 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<module version="0.1" category="service">
|
<module version="0.11" category="service">
|
||||||
<title xml:lang="ko">라이프팟 연동</title>
|
<title xml:lang="ko">라이프팟 연동</title>
|
||||||
<title xml:lang="en">Lifepod</title>
|
<title xml:lang="en">Lifepod</title>
|
||||||
<author email_address="haneul0318@gmail.com" link="http://haneul.zetyx.net" date="2007.12.10">
|
<author email_address="haneul0318@gmail.com" link="http://haneul.zetyx.net" date="2007.12.10">
|
||||||
|
|
|
||||||
|
|
@ -27,18 +27,20 @@
|
||||||
$this->setTemplatePath($template_path);
|
$this->setTemplatePath($template_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Reformatting date data from Lifepod API into data type compatible to Lifepod UI
|
||||||
|
**/
|
||||||
function dateFormatChange($dates, $plus = 0) {
|
function dateFormatChange($dates, $plus = 0) {
|
||||||
$dates = str_replace( "T", " ", $dates);
|
$dates = ereg_replace("(\d\d\d\d)(\d\d)(\d\d)T(\d\d)(\d\d)(\d\d)Z", "\\1-\\2-\\3 \\4:\\5:\\6+0", $dates);
|
||||||
$dates = str_replace( "Z", "+0", $dates);
|
|
||||||
$dates = date("Y-m-d H:i:s", strtotime($dates) + $plus);
|
$dates = date("Y-m-d H:i:s", strtotime($dates) + $plus);
|
||||||
return $dates;
|
return $dates;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 달력
|
* @brief Displaying Calendar
|
||||||
**/
|
**/
|
||||||
function dispLifepodContent() {
|
function dispLifepodContent() {
|
||||||
// 권한 체크
|
// check permission
|
||||||
if(!$this->grant->view) return $this->dispLifepodMessage('msg_not_permitted');
|
if(!$this->grant->view) return $this->dispLifepodMessage('msg_not_permitted');
|
||||||
|
|
||||||
$oLifepodModel = &getModel('lifepod');
|
$oLifepodModel = &getModel('lifepod');
|
||||||
|
|
@ -47,7 +49,6 @@
|
||||||
$cMonth = Context::get('month');
|
$cMonth = Context::get('month');
|
||||||
$cDay = Context::get('day');
|
$cDay = Context::get('day');
|
||||||
|
|
||||||
// 특정 페이지 선택시 페이지 정보 가져오기
|
|
||||||
$page = $oLifepodModel->getPage($cYear, $cMonth, $cDay);
|
$page = $oLifepodModel->getPage($cYear, $cMonth, $cDay);
|
||||||
foreach ($page->data as $key => $val)
|
foreach ($page->data as $key => $val)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue