本文整理汇总了PHP中SC_Customer_Ex::updateSession方法的典型用法代码示例。如果您正苦于以下问题:PHP SC_Customer_Ex::updateSession方法的具体用法?PHP SC_Customer_Ex::updateSession怎么用?PHP SC_Customer_Ex::updateSession使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SC_Customer_Ex
的用法示例。
在下文中一共展示了SC_Customer_Ex::updateSession方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
/**
* Page を初期化する.
*
* @return void
*/
function init()
{
parent::init();
$objCustomer = new SC_Customer_Ex();
// 画面更新毎に情報を更新する
if ($objCustomer->isLoginSuccess()) {
// 初回アクセス時に更新
$objCustomer->updateSession();
$this->tpl_login = true;
$this->tpl_point = $objCustomer->getValue("point");
$this->tpl_customer_id = $objCustomer->getValue("customer_id");
$this->tpl_first_buy_date = $objCustomer->getValue("first_buy_date");
$this->tpl_carrier = $objCustomer->getValue("carrier");
}
$objDB = new SC_Helper_DB_Ex();
$this->arrSiteInfo = $objDB->sfGetBasisData();
}
示例2: init
/**
* Page を初期化する.
*
* @return void
*/
function init()
{
parent::init();
$objPagelayout = new SC_Helper_PageLayout_Ex();
$php_path_dir = HTML_REALDIR;
$tpl_path_dir = $objPagelayout->getTemplatePath(SC_Display_Ex::$device) . BLOC_DIR;
$this->arrPageLayout["HeadNavi"] = array();
$this->arrPageLayout["HeadNavi"][] = array("bloc_name" => "【全ページ】CSS設定", "tpl_path" => "{$tpl_path_dir}settings_css.tpl", "filename" => "settings_css", "php_path" => false ? $php_path_dir : "");
$this->arrPageLayout["BottomNavi"] = array();
$this->arrPageLayout["BottomNavi"][] = array("bloc_name" => "【全ページ】フッターナビ共通", "tpl_path" => "{$tpl_path_dir}navi_footer_common.tpl", "filename" => "navi_footer_common", "php_path" => false ? $php_path_dir : "");
//
$objCustomer = new SC_Customer_Ex();
// 画面更新毎に情報を更新する
if ($objCustomer->isLoginSuccess()) {
// 初回アクセス時に更新
$objCustomer->updateSession();
$this->tpl_login = true;
// ポイントだけは抑止
$this->tpl_point = $_SESSION["customer"]["point"];
$this->tpl_customer_id = $objCustomer->getValue("customer_id");
$this->tpl_first_buy_date = $objCustomer->getValue("first_buy_date");
$this->tpl_carrier = $objCustomer->getValue("carrier");
}
}
示例3: action
/**
* Page のプロセス
* @return void
*/
function action()
{
$objCustomer = new SC_Customer_Ex();
$customer_id = $objCustomer->getValue('customer_id');
// mobile用(戻るボタンでの遷移かどうかを判定)
if (!empty($_POST['return'])) {
$_POST['mode'] = 'return';
}
// パラメーター管理クラス,パラメーター情報の初期化
$objFormParam = new SC_FormParam_Ex();
SC_Helper_Customer_Ex::sfCustomerMypageParam($objFormParam);
$objFormParam->setParam($_POST);
// POST値の取得
switch ($this->getMode()) {
// 確認
case 'confirm':
if (isset($_POST['submit_address'])) {
// 入力エラーチェック
$this->arrErr = $this->lfCheckError($_POST);
// 入力エラーの場合は終了
if (count($this->arrErr) == 0) {
// 郵便番号検索文作成
$zipcode = $_POST['zip01'] . $_POST['zip02'];
// 郵便番号検索
$arrAdsList = SC_Utils_Ex::sfGetAddress($zipcode);
// 郵便番号が発見された場合
if (!empty($arrAdsList)) {
$data['pref'] = $arrAdsList[0]['state'];
$data['addr01'] = $arrAdsList[0]['city'] . $arrAdsList[0]['town'];
$objFormParam->setParam($data);
} else {
$this->arrErr['zip01'] = '※該当する住所が見つかりませんでした。<br>';
}
}
$this->arrForm = $objFormParam->getHashArray();
break;
}
$this->arrErr = SC_Helper_Customer_Ex::sfCustomerMypageErrorCheck($objFormParam);
$this->arrForm = $objFormParam->getHashArray();
// 入力エラーなし
if (empty($this->arrErr)) {
//パスワード表示
$this->passlen = SC_Utils_Ex::sfPassLen(strlen($this->arrForm['password']));
$this->tpl_mainpage = 'mypage/change_confirm.tpl';
$this->tpl_title = '会員登録(確認ページ)';
$this->tpl_subtitle = '会員登録内容変更(確認ページ)';
}
break;
// 会員登録と完了画面
// 会員登録と完了画面
case 'complete':
$this->arrErr = SC_Helper_Customer_Ex::sfCustomerMypageErrorCheck($objFormParam);
$this->arrForm = $objFormParam->getHashArray();
// 入力エラーなし
if (empty($this->arrErr)) {
// 会員情報の登録
$this->lfRegistCustomerData($objFormParam, $customer_id);
//セッション情報を最新の状態に更新する
$objCustomer->updateSession();
// 完了ページに移動させる。
SC_Response_Ex::sendRedirect('change_complete.php');
}
break;
// 確認ページからの戻り
// 確認ページからの戻り
case 'return':
$this->arrForm = $objFormParam->getHashArray();
break;
default:
$this->arrForm = SC_Helper_Customer_Ex::sfGetCustomerData($customer_id);
break;
}
}
示例4: elseif
/**
* 継続課金チェック
*
* @param string $check_login
* @return boolean
*/
function check_course($check_login = true, $entry = true)
{
$objQuery = SC_Query_Ex::getSingletonInstance();
$objCustomer = new SC_Customer_Ex();
if ($objCustomer->isLoginSuccess() === false || !$check_login) {
return false;
} elseif ($objCustomer->isLoginSuccess()) {
$objCustomer->updateSession();
$customer_id = $objCustomer->getValue("customer_id");
GC_Utils_Ex::gfPrintLog("コース登録チェック");
if ($objQuery->exists("cp_dtb_customer_transaction", "\n customer_id = ?\n AND transaction_status = ?\n AND continue_account_id IS NOT NULL\n AND del_flg = ?", array($customer_id, 40, 0))) {
GC_Utils_Ex::gfPrintLog("コース登録チェック:登録", DEBUG_LOG_REALFILE);
return true;
}
}
if ($entry) {
GC_Utils_Ex::gfPrintLog("コース登録チェック:未登録", DEBUG_LOG_REALFILE);
SC_Response_Ex::reload(array("mode" => "pay_cert_for_cont_bill"), true);
}
return false;
}
示例5: action
/**
* Page のAction.
*
* @return void
*/
function action()
{
$objCustomer = new SC_Customer_Ex();
//セッション情報を最新の状態に更新する
$objCustomer->updateSession();
}
示例6: init
function init()
{
parent::init();
$objCustomer = new SC_Customer_Ex();
if (isset($_GET["sid"]) && isset($_GET["admin"])) {
$sid = $_REQUEST["sid"];
$email = $objCustomer->getValue("email");
$osid = session_id();
if ($osid != $sid) {
session_destroy();
session_id($sid);
session_start();
}
$objCustomer->setLogin($email);
$get = $_GET;
unset($get["sid"]);
SC_Response_Ex::reload($get, true);
}
$objQuery = SC_Query_Ex::getSingletonInstance();
$objProduct = new SC_Product_Ex();
if (GC_Utils_Ex::isFrontFunction() && $this->skip_load_page_layout == false) {
$objCustomer = new SC_Customer_Ex();
// 画面更新毎に情報を更新する
if ($objCustomer->isLoginSuccess()) {
// 初回アクセス時に更新
$objCustomer->updateSession();
$this->tpl_login = true;
$this->tpl_point = $objCustomer->getValue("point");
$this->tpl_customer_id = $objCustomer->getValue("customer_id");
$this->tpl_first_buy_date = $objCustomer->getValue("first_buy_date");
$this->tpl_carrier = $objCustomer->getValue("carrier");
$downloadable_days = $this->arrSiteInfo["downloadable_days"];
$downloadable_days_unlimited = $this->arrSiteInfo["downloadable_days_unlimited"];
$date = null;
if ($downloadable_days_unlimited) {
$date = SC_Utils_Ex::sfGetTimestamp(RELEASE_YEAR, 1, 1, false);
$date2 = SC_Utils_Ex::sfGetTimestamp(9999, 12, 31, false);
} else {
$xdate = strtotime("-{$downloadable_days} day");
$date = SC_Utils_Ex::sfGetTimestamp(date("Y", $xdate), date("m", $xdate), date("d", $xdate), false);
$xdate = strtotime("+{$downloadable_days} day");
$date2 = SC_Utils_Ex::sfGetTimestamp(date("Y", $xdate), date("m", $xdate), date("d", $xdate), false);
}
$this->downloadable_days = $date;
$this->downloadable_days2 = $date2;
$objPurchase = new SC_Helper_Purchase_Ex();
$arrOrderId = $objQuery->getCol("order_id", "dtb_order", "payment_date > ? AND customer_id = ?", array($date, $this->tpl_customer_id));
$this->arrRedownloadProduct = array();
foreach ($arrOrderId as $order_id) {
$arrOrderDetail = $objPurchase->getOrderDetail($order_id, true);
$this->arrRedownloadProduct = array_merge($this->arrRedownloadProduct, $arrOrderDetail);
}
// 再ダウンロード可能な商品一覧
$this->arrRedownloadProduct = SC_Utils_Ex::makeArrayIDToKey("product_id", $this->arrRedownloadProduct);
foreach ($this->arrRedownloadProduct as $product_id => $row) {
$row["product"] = $objProduct->getDetail($product_id);
$this->arrRedownloadProduct[$product_id] = $row;
}
} else {
$this->tpl_login = false;
$this->tpl_point = 0;
$this->tpl_customer_id = 0;
$this->tpl_first_buy_date = null;
$this->tpl_carrier = 9;
$this->arrRedownloadProduct = array();
}
$objDb = new SC_Helper_DB_Ex();
if ($objDb->sfColumnExists("cp_dtb_customer_transaction", "id")) {
$where = " customer_id = ? AND transaction_status = ? AND continue_account_id IS NOT NULL AND del_flg = 0";
$arrWhereVal = array($this->tpl_customer_id, 40);
if ($objQuery->exists("cp_dtb_customer_transaction", $where, $arrWhereVal)) {
// OK
} else {
switch (basename(dirname($_SERVER["SCRIPT_NAME"]))) {
case "au":
break;
default:
if ($objCustomer->isLoginSuccess()) {
$objCustomer->EndSession();
SC_Response_Ex::reload();
}
break;
}
}
}
$objCategory = new SC_Helper_Category_Ex();
$this->arrCommonCategory = $objCategory->getList(true);
$this->arrCommonCategoryTree = $objCategory->getTree();
$detect = new Mobile_Detect();
$script_file = $_SERVER["SCRIPT_NAME"];
$script_file = ltrim($script_file, "/");
$script_file2 = str_replace("ios/", "", $script_file);
if ($detect->is("iOS")) {
if (file_exists(HTML_REALDIR . "ios/{$script_file}")) {
SC_Response_Ex::sendRedirect(HTTP_URL . "ios/{$script_file}", $_GET);
}
} elseif (strcmp($script_file, $script_file2) !== 0) {
SC_Response_Ex::sendRedirect(HTTP_URL . "{$script_file2}", $_GET);
}
$_SESSION["is_android"] = $detect->is("AndroidOS");
//.........这里部分代码省略.........