Last active
November 9, 2015 02:51
-
-
Save nanasess/8541f0f05c722f1fdd2b to your computer and use it in GitHub Desktop.
SC_Customer::getValue() で任意の項目をリアルタイムに取得する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function getValue($keyname) | |
{ | |
// リアルタイム表示 | |
switch ($keyname) { | |
case 'point': | |
case 'sf_id: | |
$objQuery =& SC_Query_Ex::getSingletonInstance(); | |
$value = $objQuery->get($keyname, 'dtb_customer', 'customer_id = ?', array($_SESSION['customer']['customer_id'])); | |
$_SESSION['customer'][$keyname] = $value; | |
return $value; | |
default: | |
return isset($_SESSION['customer'][$keyname]) ? $_SESSION['customer'][$keyname] : ''; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment