Changeset 15257


Ignore:
Timestamp:
2007/08/09 13:14:09 (17 years ago)
Author:
nanasess
Message:

暫定コミット

Location:
branches/feature-module-update/data/class
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/SC_DbConn.php

    r15241 r15257  
    4343            } 
    4444        } 
     45        var_dump($objDbConn); 
    4546        $this->conn = $objDbConn; 
    4647        $this->error_mail_to = DB_ERROR_MAIL_TO; 
  • branches/feature-module-update/data/class/SC_View.php

    r15080 r15257  
    2727        $this->_smarty->register_modifier("sfConvSendWdayToDisp", array("SC_Utils_Ex", "sfConvSendWdayToDisp")); 
    2828        $this->_smarty->register_modifier("sfGetVal", array("SC_Utils_Ex", "sfGetVal")); 
    29         $this->_smarty->register_function("sfSetErrorStyle", array("SC_Utils_Ex", "sfSetErrorStyle")); 
    30         $this->_smarty->register_function("sfGetErrorColor", array("SC_Utils_Ex", "sfGetErrorColor")); 
    31         $this->_smarty->register_function("sfTrim", array("SC_Utils_Ex", "sfTrim")); 
    32         $this->_smarty->register_function("sfPreTax", array("SC_Utils_Ex", "sfPreTax")); 
    33         $this->_smarty->register_function("sfPrePoint", array("SC_Utils_Ex", "sfPrePoint")); 
    34         $this->_smarty->register_function("sfGetChecked",array("SC_Utils_Ex", "sfGetChecked")); 
    35         $this->_smarty->register_function("sfTrimURL", array("SC_Utils_Ex", "sfTrimURL")); 
    36         $this->_smarty->register_function("sfMultiply", array("SC_Utils_Ex", "sfMultiply")); 
    37         $this->_smarty->register_function("sfPutBR", array("SC_Utils_Ex", "sfPutBR")); 
    38         $this->_smarty->register_function("sfRmDupSlash", array("SC_Utils_Ex", "sfRmDupSlash")); 
    39         $this->_smarty->register_function("sfCutString", array("SC_Utils_Ex", "sfCutString")); 
     29        $this->_smarty->register_modifier("sfSetErrorStyle", array("SC_Utils_Ex", "sfSetErrorStyle")); 
     30        $this->_smarty->register_modifier("sfGetErrorColor", array("SC_Utils_Ex", "sfGetErrorColor")); 
     31        $this->_smarty->register_modifier("sfTrim", array("SC_Utils_Ex", "sfTrim")); 
     32        $this->_smarty->register_modifier("sfPreTax", array("SC_Utils_Ex", "sfPreTax")); 
     33        $this->_smarty->register_modifier("sfPrePoint", array("SC_Utils_Ex", "sfPrePoint")); 
     34        $this->_smarty->register_modifier("sfGetChecked",array("SC_Utils_Ex", "sfGetChecked")); 
     35        $this->_smarty->register_modifier("sfTrimURL", array("SC_Utils_Ex", "sfTrimURL")); 
     36        $this->_smarty->register_modifier("sfMultiply", array("SC_Utils_Ex", "sfMultiply")); 
     37        $this->_smarty->register_modifier("sfPutBR", array("SC_Utils_Ex", "sfPutBR")); 
     38        $this->_smarty->register_modifier("sfRmDupSlash", array("SC_Utils_Ex", "sfRmDupSlash")); 
     39        $this->_smarty->register_modifier("sfCutString", array("SC_Utils_Ex", "sfCutString")); 
    4040        $this->_smarty->plugins_dir=array("plugins", $SC_VIEW_PHP_DIR . "/../smarty_extends"); 
    41         $this->_smarty->register_function("sf_mb_convert_encoding", array("SC_Utils_Ex", "sf_mb_convert_encoding")); 
    42         $this->_smarty->register_function("sf_mktime", array("SC_Utils_Ex", "sf_mktime")); 
    43         $this->_smarty->register_function("sf_date", array("SC_Utils_Ex", "sf_date")); 
    44         $this->_smarty->register_function("str_replace", array("SC_Utils_Ex", "str_replace")); 
    45         $this->_smarty->register_function("sfPrintEbisTag", array("SC_Utils_Ex", "sfPrintEbisTag")); 
    46         $this->_smarty->register_function("sfPrintAffTag", array("SC_Utils_Ex", "sfPrintAffTag")); 
     41        $this->_smarty->register_modifier("sf_mb_convert_encoding", array("SC_Utils_Ex", "sf_mb_convert_encoding")); 
     42        $this->_smarty->register_modifier("sf_mktime", array("SC_Utils_Ex", "sf_mktime")); 
     43        $this->_smarty->register_modifier("sf_date", array("SC_Utils_Ex", "sf_date")); 
     44        $this->_smarty->register_modifier("str_replace", array("SC_Utils_Ex", "str_replace")); 
     45//        $this->_smarty->register_modifier("sfPrintEbisTag", array("SC_Utils_Ex", "sfPrintEbisTag")); 
     46//        $this->_smarty->register_modifier("sfPrintAffTag", array("SC_Utils_Ex", "sfPrintAffTag")); 
     47        $this->_smarty->register_modifier("sfGetCategoryId", array("SC_Utils_Ex", "sfGetCategoryId")); 
    4748        $this->_smarty->register_function("sfIsHTTPS", array("SC_Utils_Ex", "sfIsHTTPS")); 
    4849        $this->_smarty->default_modifiers = array('script_escape'); 
     
    121122 
    122123        $array['tpl_mainnavi'] = $SC_VIEW_PHP_DIR . '/../Smarty/templates/frontparts/mainnavi.tpl'; 
    123         $array['tpl_root_id'] = SC_Utils::sfGetRootId(); 
     124        $array['tpl_root_id'] = SC_Utils_Ex::sfGetRootId(); 
    124125        $this->assignarray($array); 
    125126    } 
     
    129130        $this->_smarty->debugging = $var; 
    130131    } 
     132 
     133 
    131134} 
    132135 
     
    153156 
    154157        // PHP5ではsessionをスタートする前にヘッダー情報を送信していると警告が出るため、先にセッションをスタートするように変更 
    155         SC_Utils::sfDomainSessionStart(); 
     158        SC_Utils_Ex::sfDomainSessionStart(); 
    156159 
    157160        if($cart){ 
     
    187190    } 
    188191} 
     192 
     193//function sfCutString($str, $len, $byte = true, $commadisp = true) { 
     194//        if($byte) { 
     195//            if(strlen($str) > ($len + 2)) { 
     196//                $ret =substr($str, 0, $len); 
     197//                $cut = substr($str, $len); 
     198//            } else { 
     199//                $ret = $str; 
     200//                $commadisp = false; 
     201//            } 
     202//        } else { 
     203//            if(mb_strlen($str) > ($len + 1)) { 
     204//                $ret = mb_substr($str, 0, $len); 
     205//                $cut = mb_substr($str, $len); 
     206//            } else { 
     207//                $ret = $str; 
     208//                $commadisp = false; 
     209//            } 
     210//        } 
     211// 
     212//        // 絵文字タグの途中で分断されないようにする。 
     213//        if (isset($cut)) { 
     214//            // 分割位置より前の最後の [ 以降を取得する。 
     215//            $head = strrchr($ret, '['); 
     216// 
     217//            // 分割位置より後の最初の ] 以前を取得する。 
     218//            $tail_pos = strpos($cut, ']'); 
     219//            if ($tail_pos !== false) { 
     220//                $tail = substr($cut, 0, $tail_pos + 1); 
     221//            } 
     222// 
     223//            // 分割位置より前に [、後に ] が見つかった場合は、[ から ] までを 
     224//            // 接続して絵文字タグ1個分になるかどうかをチェックする。 
     225//            if ($head !== false && $tail_pos !== false) { 
     226//                $subject = $head . $tail; 
     227//                if (preg_match('/^\[emoji:e?\d+\]$/', $subject)) { 
     228//                    // 絵文字タグが見つかったので削除する。 
     229//                    $ret = substr($ret, 0, -strlen($head)); 
     230//                } 
     231//            } 
     232//        } 
     233// 
     234//        if($commadisp){ 
     235//            $ret = $ret . "..."; 
     236//        } 
     237//        return $ret; 
     238//    } 
     239// 
     240//function sfRmDupSlash($istr){ 
     241//        if(ereg("^http://", $istr)) { 
     242//            $str = substr($istr, 7); 
     243//            $head = "http://"; 
     244//        } else if(ereg("^https://", $istr)) { 
     245//            $str = substr($istr, 8); 
     246//            $head = "https://"; 
     247//        } else { 
     248//            $str = $istr; 
     249//        } 
     250//        $str = ereg_replace("[/]+", "/", $str); 
     251//        $ret = $head . $str; 
     252//        return $ret; 
     253//    } 
    189254?> 
Note: See TracChangeset for help on using the changeset viewer.