Source for file SC_DB_DBFactory.php
Documentation is available at SC_DB_DBFactory.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2011 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once CLASS_REALDIR . 'db/dbfactory/SC_DB_DBFactory_MYSQL.php';
require_once CLASS_REALDIR . 'db/dbfactory/SC_DB_DBFactory_PGSQL.php';
* DBに依存した処理を抽象化するファクトリークラス.
* @author LOCKON CO.,LTD.
* @version $Id:SC_DB_DBFactory.php 15532 2007-08-31 14:39:46Z nanasess $
* DB_TYPE に応じた DBFactory インスタンスを生成する.
* @param string $db_type 任意のインスタンスを返したい場合は DB_TYPE 文字列を指定
* @return mixed DBFactory インスタンス
* 引数 $dsn が空の場合は, DEFAULT_DSN の値を返す.
* DEFAULT_DSN が未定義の場合は void となる.
* $dsn が空ではない場合は, $dsn の値を返す.
* @param string $dsn データソース名
* @return void|stringデータソース名
* @param string $dsn データソース名
* @return string データベースのバージョン
* @param string $sql SQL 文
* @return string MySQL 用に置換した SQL 文
* 昨日の売上高・売上件数を算出する SQL を返す.
* @param string $method SUM または COUNT
* @return string 昨日の売上高・売上件数を算出する SQL
* 当月の売上高・売上件数を算出する SQL を返す.
* @param string $method SUM または COUNT
* @return string 当月の売上高・売上件数を算出する SQL
* 昨日のレビュー書き込み件数を算出する SQL を返す.
* @return string 昨日のレビュー書き込み件数を算出する SQL
* メール送信履歴の start_date の検索条件の SQL を返す.
* @return string 検索条件の SQL
* ダウンロード販売の検索条件の SQL を返す.
* @return string 検索条件の SQL
* @param array $columns 連結を行うカラム名
* @return string 連結後の SQL 文
* @deprecated SC_Query::listTables() を使用してください
* @param string $expression 検索文字列
* @param string $table 対象テーブル名
* @param string $name 対象カラム名
* @return array インデックス設定情報配列
Documentation generated on Fri, 24 Feb 2012 14:02:31 +0900 by Seasoft
|