コード例 #1
0
ファイル: Timeline.php プロジェクト: edwinraycom/vals-soc
 private static function setupSession($timelineTestDate)
 {
     if (!isset($_SESSION)) {
         session_id('TimelineMultipageSession');
         session_start();
     }
     if (isset($timelineTestDate)) {
         $_SESSION['timelineDate'] = $timelineTestDate;
         StatelessTimeline::getInstance()->setDummyTestDate($_SESSION['timelineDate']);
         watchdog('setting NOW from new value', $timelineTestDate);
         return;
     }
     if (isset($_SESSION['timelineDate'])) {
         watchdog('setting NOW from value found in session', $_SESSION['timelineDate']);
         StatelessTimeline::getInstance()->setDummyTestDate($_SESSION['timelineDate']);
     }
 }