Changeset 4715


Ignore:
Timestamp:
2006/09/14 10:52:35 (20 years ago)
Author:
kakinaka
Message:

blank

Location:
temp/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • temp/trunk/data/class/SC_DbConn.php

    r4714 r4715  
    6969     
    7070    function getRow($n, $arr = ""){ 
    71          
     71 
     72        // mysql¤Î¾ì¹ç¤Ë¤Ï¥Ó¥å¡¼É½¤òÊÑ´¹¤¹¤ë 
     73        if (DB_TYPE == "mysql") { 
     74            $n = sfChangeView($n); 
     75        } 
     76 
    7277        if ( $arr ) { 
    7378            $result = $this->conn->getRow($n, $arr); 
     
    8489    // SELECTʸ¤Î¼Â¹Ô·ë²Ì¤òÁ´¤Æ¼èÆÀ 
    8590    function getAll($n, $arr = ""){ 
     91 
     92        // mysql¤Î¾ì¹ç¤Ë¤Ï¥Ó¥å¡¼É½¤òÊÑ´¹¤¹¤ë 
     93        if (DB_TYPE == "mysql") { 
     94            $n = sfChangeView($n); 
     95        } 
     96         
    8697        if(PEAR::isError($this->conn)) { 
    8798            sfErrorHeader("DB¤Ø¤ÎÀܳ¤Ë¼ºÇÔ¤·¤Þ¤·¤¿¡£:" . $this->dsn); 
    8899            return 0; 
    89100        } 
    90          
     101 
    91102        if ( $arr ){ 
    92103            $result = $this->conn->getAll($n, $arr, DB_FETCHMODE_ASSOC); 
  • temp/trunk/data/lib/slib.php

    r4714 r4715  
    23432343function sfChangeView($sql){ 
    23442344    global $arrView; 
    2345      
     2345 
    23462346    $changesql = strtr($sql,$arrView); 
    2347      
     2347 
    23482348    return $changesql; 
    2349      
    23502349} 
    23512350 
  • temp/trunk/html/admin/home.php

    r4714 r4715  
    1717// ǧ¾Ú²ÄÈݤÎȽÄê 
    1818sfIsSuccess($objSess); 
    19  
    20 sfprintr(sfChangeView("SELECT * FROM vw_products_nonclass")); 
    2119 
    2220// ¸½ºß¤Î²ñ°÷¿ô 
Note: See TracChangeset for help on using the changeset viewer.