Index: branches/dev/data/class/SC_Query.php
===================================================================
--- branches/dev/data/class/SC_Query.php	(revision 13304)
+++ branches/dev/data/class/SC_Query.php	(revision 13305)
@@ -213,6 +213,6 @@
      *
      *  @access public
-     *  @param  string  $limit  LIMIT¤Î·ï¿ô
-     *  @param  integer $offset OFFSET¤Î·ï¿ô
+     *  @param  mixed   $limit  LIMIT¤Î·ï¿ô
+     *  @param  mixed   $offset OFFSET¤Î·ï¿ô
      *  @param  string  $return À¸À®¤·¤¿LIMIT,OFFSET¶ç¤òreturn¤¹¤ë¤«¤É¤¦¤«
      *  @return string  À¸À®¤·¤¿LIMIT,OFFSET¶ç
@@ -231,47 +231,94 @@
         }
     }
-	
-	function setgroupby($str) {
-		$this->groupby = "GROUP BY " . $str;
-	}
-	
-	function andwhere($str) {
-		if($this->where != "") {
-			$this->where .= " AND " . $str;
-		} else {
-			$this->where = $str;
-		}
-	}
-	
-	function orwhere($str) {
-		if($this->where != "") {
-			$this->where .= " OR " . $str;
-		} else {
-			$this->where = $str;
-		}
-	}
-		
-	function setwhere($str) {
-		$this->where = $str;
-	}
-	
-	function setorder($str) {
-		$this->order = "ORDER BY " . $str;
-	}
-	
-		
-	function setlimit($limit){
-		if ( is_numeric($limit)){
-			$this->option = " LIMIT " .$limit;
-		}	
-	}
-	
-	function setoffset($offset) {
-		if ( is_numeric($offset)){
-			$this->offset = " OFFSET " .$offset;
-		}	
-	}
-	
-	
+
+    /**
+     *  GROUP BY ¶ç¤ò¥»¥Ã¥È¤¹¤ë
+     *
+     *  @access public
+     *  @param  string  $str ¥«¥é¥àÌ¾
+     */
+    function setgroupby($str) {
+        $this->groupby = "GROUP BY " . $str;
+    }
+    
+    /**
+     *  WHERE ¶ç¤ò¥»¥Ã¥È¤¹¤ë(AND)
+     *
+     *  @access  public
+     *  @param   string  $str WHERE ¶ç
+     *  @example $objQuery->andWhere('product_id = ?');
+     */
+    function andwhere($str) {
+        if($this->where != "") {
+            $this->where .= " AND " . $str;
+        } else {
+            $this->where = $str;
+        }
+    }
+    
+    /**
+     *  WHERE ¶ç¤ò¥»¥Ã¥È¤¹¤ë(OR)
+     *
+     *  @access  public
+     *  @param   string  $str WHERE ¶ç
+     *  @example $objQuery->orWhere('product_id = ?');
+     */
+    function orwhere($str) {
+        if($this->where != "") {
+            $this->where .= " OR " . $str;
+        } else {
+            $this->where = $str;
+        }
+    }
+    
+    /**
+     *  WHERE ¶ç¤ò¥»¥Ã¥È¤¹¤ë
+     *
+     *  @access  public
+     *  @param   string  $str WHERE ¶ç
+     *  @example $objQuery->setWhere('product_id = ?');
+     */
+    function setwhere($str) {
+        $this->where = $str;
+    }
+    
+    /**
+     *  ORDER BY ¶ç¤ò¥»¥Ã¥È¤¹¤ë
+     *
+     *  @access  public
+     *  @param   string  $str ¥«¥é¥àÌ¾
+     *  @example $objQuery->setorder("rank DESC");
+     */
+    function setorder($str) {
+        $this->order = "ORDER BY " . $str;
+    }
+    
+    /**
+     *  LIMIT ¶ç¤ò¥»¥Ã¥È¤¹¤ë
+     *
+     *  @access  public
+     *  @param   mixed  $limit LIMIT¤Î·ï¿ô
+     *  @example $objQuery->setlimit(50);
+     */
+    function setlimit($limit){
+        if ( is_numeric($limit)){
+            $this->option = " LIMIT " .$limit;
+        }   
+    }
+    
+    /**
+     *  OFFSET ¶ç¤ò¥»¥Ã¥È¤¹¤ë
+     *
+     *  @access  public
+     *  @param   mixed  $offset OFFSET¤Î·ï¿ô
+     *  @example $objQuery->setOffset(30);
+     */
+    function setoffset($offset) {
+        if ( is_numeric($offset)){
+            $this->offset = " OFFSET " .$offset;
+        }   
+    }
+    
+    
 	// INSERTÊ¸¤ÎÀ¸À®¡¦¼Â¹Ô
 	// $table	:¥Æ¡¼¥Ö¥ëÌ¾
