Changeset 21479 for branches/version-2_12-dev/data/class/util
- Timestamp:
- 2012/02/11 04:20:07 (14 years ago)
- Location:
- branches/version-2_12-dev/data/class/util
- Files:
-
- 2 edited
-
GC_Utils.php (modified) (3 diffs)
-
SC_Utils.php (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/util/GC_Utils.php
r21446 r21479 39 39 * [注釈] 引数は1,2ともカンマ区切りになっていること 40 40 *----------------------------------------------------------------------*/ 41 function gfDownloadCsv($header, $contents) {41 function gfDownloadCsv($header, $contents) { 42 42 43 43 $fiest_name = date('YmdHis') .".csv"; … … 65 65 * [注釈] - 66 66 *----------------------------------------------------------------------*/ 67 function gfSetCsv($array, $arrayIndex = "") {67 function gfSetCsv($array, $arrayIndex = "") { 68 68 //引数$arrayIndexは、$arrayが連想配列のときに添え字を指定してやるために使用する 69 69 … … 94 94 * [注釈] - 95 95 *----------------------------------------------------------------------*/ 96 function gfGetAge($dbdate) 97 { 96 function gfGetAge($dbdate) { 98 97 $ty = date('Y'); 99 98 $tm = date('m'); -
branches/version-2_12-dev/data/class/util/SC_Utils.php
r21455 r21479 220 220 * @return string アスタリスクへ変換した文字列 221 221 */ 222 function sfPassLen($passlen) {222 function sfPassLen($passlen) { 223 223 $ret = ""; 224 224 for ($i=0;$i<$passlen;true) { … … 234 234 * @return bool 235 235 */ 236 function sfIsHTTPS () {236 function sfIsHTTPS() { 237 237 // HTTPS時には$_SERVER['HTTPS']には空でない値が入る 238 238 // $_SERVER['HTTPS'] != 'off' はIIS用 … … 303 303 } 304 304 305 function sfGetCSVData($data, $prefix = "") {305 function sfGetCSVData($data, $prefix = "") { 306 306 if ($prefix == "") { 307 307 $dir_name = SC_Utils_Ex::sfUpDirName(); … … 552 552 /* 3.エラー (0 = OK, 1 = NG) 553 553 /*-----------------------------------------------------------------*/ 554 function sfCheckSetTerm ($start_year, $start_month, $start_day, $end_year, $end_month, $end_day) {554 function sfCheckSetTerm($start_year, $start_month, $start_day, $end_year, $end_month, $end_day) { 555 555 556 556 // 期間指定 … … 575 575 576 576 // エラー箇所の背景色を変更するためのfunction SC_Viewで読み込む 577 function sfSetErrorStyle() {577 function sfSetErrorStyle() { 578 578 return 'style="background-color:'.ERR_COLOR.'"'; 579 579 } … … 667 667 668 668 // 桁数を指定して四捨五入 669 function sfRound($value, $pow = 0) {669 function sfRound($value, $pow = 0) { 670 670 $adjust = pow(10 ,$pow-1); 671 671 … … 825 825 826 826 // 二回以上繰り返されているスラッシュ[/]を一つに変換する。 827 function sfRmDupSlash($istr) {827 function sfRmDupSlash($istr) { 828 828 if (ereg("^http://", $istr)) { 829 829 $str = substr($istr, 7); … … 1067 1067 * @deprecated SC_Query::quote() を使用すること 1068 1068 */ 1069 function sfQuoteSmart($in) {1069 function sfQuoteSmart($in) { 1070 1070 1071 1071 if (is_int($in) || is_double($in)) { … … 1108 1108 1109 1109 // ディレクトリ以下のファイルを再帰的にコピー 1110 function sfCopyDir($src, $des, $mess = "", $override = false) {1110 function sfCopyDir($src, $des, $mess = "", $override = false) { 1111 1111 if (!is_dir($src)) { 1112 1112 return false; … … 1160 1160 1161 1161 // 指定したフォルダ内のファイルを全て削除する 1162 function sfDelFile($dir) {1162 function sfDelFile($dir) { 1163 1163 if (file_exists($dir)) { 1164 1164 $dh = opendir($dir); … … 1223 1223 * @return void 1224 1224 */ 1225 function sfFlush($output = false, $sleep = 0) {1225 function sfFlush($output = false, $sleep = 0) { 1226 1226 // 出力をバッファリングしない(==日本語自動変換もしない) 1227 1227 while (@ob_end_flush());
Note: See TracChangeset
for help on using the changeset viewer.
