Index: branches/comu/data/class/SC_Customer.php
===================================================================
--- branches/comu/data/class/SC_Customer.php	(revision 15)
+++ branches/comu/data/class/SC_Customer.php	(revision 11729)
@@ -6,6 +6,6 @@
  */
 
-/*  [Ì¾¾Î] SC_Customer
- *  [³µÍ×] ²ñ°÷´ÉÍý¥¯¥é¥¹
+/*  [名称] SC_Customer
+ *  [概要] 会員管理クラス
  */
 class SC_Customer {
@@ -13,21 +13,21 @@
 	var $conn;
 	var $email;
-	var $customer_data;		// ²ñ°÷¾ðÊó   
+	var $customer_data;		// 会員情報   
 		
 	function SC_Customer( $conn = '', $email = '', $pass = '' ) {
-		// ¥»¥Ã¥·¥ç¥ó³«»Ï
-		/* startSession¤«¤é°ÜÆ° 2005/11/04 ÃæÀî */
+		// セッション開始
+		/* startSessionから移動 2005/11/04 中川 */
 		sfDomainSessionStart();
 		
-		// DBÀÜÂ³¥ª¥Ö¥¸¥§¥¯¥ÈÀ¸À®
+		// DB接続オブジェクト生成
 		$DB_class_name = "SC_DbConn";
 		if ( is_object($conn)){
 			if ( is_a($conn, $DB_class_name)){
-				// $conn¤¬$DB_class_name¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤Ç¤¢¤ë
+				// $connが$DB_class_nameのインスタンスである
 				$this->conn = $conn;
 			}
 		} else {
 			if (class_exists($DB_class_name)){
-				//$DB_class_name¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤òºîÀ®¤¹¤ë
+				//$DB_class_nameのインスタンスを作成する
 				$this->conn = new SC_DbConn();			
 			}
@@ -35,11 +35,11 @@
 			
 		if ( is_object($this->conn) ) { 
-			// Àµ¾ï¤ËDB¤ËÀÜÂ³¤Ç¤­¤ë
+			// 正常にDBに接続できる
 			if ( $email ){
-				// email¤«¤é¸ÜµÒ¾ðÊó¤ò¼èÆÀ¤¹¤ë
+				// emailから顧客情報を取得する
 				// $this->setCustomerDataFromEmail( $email );
 			}
 		} else {
-			echo "DBÀÜÂ³¥ª¥Ö¥¸¥§¥¯¥È¤ÎÀ¸À®¤Ë¼ºÇÔ¤·¤Æ¤¤¤Þ¤¹";
+			echo "DB接続オブジェクトの生成に失敗しています";
 			exit;
 		}
@@ -51,10 +51,10 @@
 	
 	function getCustomerDataFromEmailPass( $pass, $email ) {
-		// ËÜÅÐÏ¿¤µ¤ì¤¿²ñ°÷¤Î¤ß
+		// 本登録された会員のみ
 		$sql = "SELECT * FROM dtb_customer WHERE email ILIKE ? AND del_flg = 0 AND status = 2";
 		$result = $this->conn->getAll($sql, array($email));
 		$data = $result[0];
 		
-		// ¥Ñ¥¹¥ï¡¼¥É¤¬¹ç¤Ã¤Æ¤¤¤ì¤Ð¸ÜµÒ¾ðÊó¤òcustomer_data¤Ë¥»¥Ã¥È¤·¤Ætrue¤òÊÖ¤¹
+		// パスワードが合っていれば顧客情報をcustomer_dataにセットしてtrueを返す
 		if ( sha1($pass . ":" . AUTH_MAGIC) == $data['password'] ){
 			$this->customer_data = $data;
@@ -65,7 +65,7 @@
 	}
 	
-	// ¥Ñ¥¹¥ï¡¼¥É¤ò³ÎÇ§¤»¤º¤Ë¥í¥°¥¤¥ó
+	// パスワードを確認せずにログイン
 	function setLogin($email) {
-		// ËÜÅÐÏ¿¤µ¤ì¤¿²ñ°÷¤Î¤ß
+		// 本登録された会員のみ
 		$sql = "SELECT * FROM dtb_customer WHERE email ILIKE ? AND del_flg = 0 AND status = 2";
 		$result = $this->conn->getAll($sql, array($email));
@@ -75,5 +75,5 @@
 	}
 	
-	// ¥»¥Ã¥·¥ç¥ó¾ðÊó¤òºÇ¿·¤Î¾ðÊó¤Ë¹¹¿·¤¹¤ë
+	// セッション情報を最新の情報に更新する
 	function updateSession() {
 		$sql = "SELECT * FROM dtb_customer WHERE customer_id = ? AND del_flg = 0";
@@ -84,23 +84,23 @@
 	}
 		
-	// ¥í¥°¥¤¥ó¾ðÊó¤ò¥»¥Ã¥·¥ç¥ó¤ËÅÐÏ¿¤·¡¢¥í¥°¤Ë½ñ¤­¹þ¤à
+	// ログイン情報をセッションに登録し、ログに書き込む
 	function startSession() {
 		sfDomainSessionStart();
 		$_SESSION['customer'] = $this->customer_data;
-		// ¥»¥Ã¥·¥ç¥ó¾ðÊó¤ÎÊÝÂ¸
+		// セッション情報の保存
 		gfPrintLog("access : user=".$this->customer_data['customer_id'] ."\t"."ip=". $_SERVER['REMOTE_HOST'], CUSTOMER_LOG_PATH );
 	}
 
-	// ¥í¥°¥¢¥¦¥È¡¡$_SESSION['customer']¤ò²òÊü¤·¡¢¥í¥°¤Ë½ñ¤­¹þ¤à
+	// ログアウト　$_SESSION['customer']を解放し、ログに書き込む
 	function EndSession() {
-		// $_SESSION['customer']¤Î²òÊü
+		// $_SESSION['customer']の解放
 		unset($_SESSION['customer']);
-		// ¥í¥°¤Ëµ­Ï¿¤¹¤ë
+		// ログに記録する
 		gfPrintLog("logout : user=".$this->customer_data['customer_id'] ."\t"."ip=". $_SERVER['REMOTE_HOST'], CUSTOMER_LOG_PATH );
 	}
 	
-	// ¥í¥°¥¤¥ó¤ËÀ®¸ù¤·¤Æ¤¤¤ë¤«È½Äê¤¹¤ë¡£
+	// ログインに成功しているか判定する。
 	function isLoginSuccess() {
-		// ¥í¥°¥¤¥ó»þ¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤ÈDB¤Î¥á¡¼¥ë¥¢¥É¥ì¥¹¤¬°ìÃ×¤·¤Æ¤¤¤ë¾ì¹ç
+		// ログイン時のメールアドレスとDBのメールアドレスが一致している場合
 		if(sfIsInt($_SESSION['customer']['customer_id'])) {
 			$objQuery = new SC_Query();
@@ -113,15 +113,15 @@
 	}
 		
-	// ¥Ñ¥é¥á¡¼¥¿¤Î¼èÆÀ
+	// パラメータの取得
 	function getValue($keyname) {
 		return $_SESSION['customer'][$keyname];
 	}
 	
-	// ¥Ñ¥é¥á¡¼¥¿¤Î¥»¥Ã¥È
+	// パラメータのセット
 	function setValue($keyname, $val) {
 		$_SESSION['customer'][$keyname] = $val;
 	}
 	
-	// ÃÂÀ¸Æü·î¤Ç¤¢¤ë¤«¤É¤¦¤«¤ÎÈ½Äê
+	// 誕生日月であるかどうかの判定
 	function isBirthMonth() {
 		$arrRet = split("[- :/]", $_SESSION['customer']['birth']);
