Changeset 18370 for branches/comu-ver2/data/class/helper/SC_Helper_DB.php
- Timestamp:
- 2009/11/07 01:38:52 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/helper/SC_Helper_DB.php
r18325 r18370 1914 1914 // ▲受注テーブルの更新 1915 1915 } 1916 1917 /** 1918 * 指定ファイルが存在する場合 SQL として実行 1919 * 1920 * XXX プラグイン用に追加。将来消すかも。 1921 * 1922 * @param string $sqlFilePath SQL ファイルのパス 1923 * @return void 1924 */ 1925 function sfExecSqlByFile($sqlFilePath) { 1926 if (file_exists($sqlFilePath)) { 1927 $objQuery = new SC_Query(); 1928 1929 $sql = file_get_contents($sqlFilePath); 1930 if ($sql === false) SC_Utils_Ex::sfDispException('ファイルは存在するが読み込めない'); 1931 $objQuery->query($sql); 1932 } 1933 } 1916 1934 } 1917 1935 ?>
Note: See TracChangeset
for help on using the changeset viewer.