Changeset 2240 for temp/trunk


Ignore:
Timestamp:
2006/08/28 12:56:31 (20 years ago)
Author:
naka
Message:

* empty log message *

Location:
temp/trunk/data/class
Files:
2 edited

Legend:

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

    r1328 r2240  
    1919            } 
    2020        } 
     21         
    2122        if ( is_object($this->conn)){ 
    2223            $conn = $this->conn; 
  • temp/trunk/data/class/SC_View.php

    r2234 r2240  
    6060     
    6161    // ¥ª¥Ö¥¸¥§¥¯¥ÈÆâ¤ÎÊÑ¿ô¤ò¤¹¤Ù¤Æ³ä¤êÅö¤Æ¤ë¡£ 
    62     function assignobj($obj) { 
     62    function assignobj($obj, $siteinfo = true) { 
    6363        $data = get_object_vars($obj); 
    6464         
     
    6767        } 
    6868         
    69         // ¥µ¥¤¥È¾ðÊó¤ò³ä¤êÅö¤Æ¤ë 
    70         $objSiteInfo = new SC_SiteInfo(); 
    71         $arrInfo['arrSiteInfo'] = $objSiteInfo->data; 
    72          
    73         // ÅÔÆ»Éܸ©Ì¾¤òÊÑ´¹ 
    74         global $arrPref; 
    75         $arrInfo['arrSiteInfo']['pref'] = $arrPref[$arrInfo['arrSiteInfo']['pref']]; 
     69        if($siteinfo) { 
     70            // ¥µ¥¤¥È¾ðÊó¤ò³ä¤êÅö¤Æ¤ë 
     71            $objSiteInfo = new SC_SiteInfo(); 
     72            $arrInfo['arrSiteInfo'] = $objSiteInfo->data; 
     73             
     74            // ÅÔÆ»Éܸ©Ì¾¤òÊÑ´¹ 
     75            global $arrPref; 
     76            $arrInfo['arrSiteInfo']['pref'] = $arrPref[$arrInfo['arrSiteInfo']['pref']]; 
     77        } 
    7678         
    7779        foreach ($arrInfo as $key => $value){ 
Note: See TracChangeset for help on using the changeset viewer.