Показать сообщение отдельно

Не могу разобраться со скриптом, помогите пожалуйста если не трудн
  #1  
Старый 30.10.2007, 13:42
XopoIII
Постоянный
Регистрация: 29.10.2007
Сообщений: 381
Провел на форуме:
651930

Репутация: 65
По умолчанию Не могу разобраться со скриптом, помогите пожалуйста если не трудн

в общем дали мне скрипт, я когда загружаю выводит ошибку там та в той то строке, я уже наизусть ее выучил но немогу понять что там нитак, посоветуйте(ошибка Fatal error: Cannot re-assign $this in T:homelocalhost3classesShop.php on line 77)

Код:
function Shop($DBManager = 0, $objectId = null) {
        global $DBManager;
        $this->DBObject($DBManager, $objectId);
	$this->_app_voc = new app_voc();
    }

function get($objectId=null) { 
 	if ($objectId == 0) return false; 
         if (parent::get($objectId)) { 
 //				     echo "in get clinic, $objectId, ".get_class($this)."<br/>"; 
  
             if ($this->getVariable('type') == 'comission' and get_class($this)!='comissionshop') { 
                 $newShop = new ComissionShop(); 
                 if ($newShop->get($objectId)) { 
                     $this = $newShop; 
 		    $this->getCrncyDst(); 
                     return true; 
                 } 
                 return false; 
             } 
  
             if ($this->getVariable('type') == 'repair' and get_class($this)!='repairshop') { 
                 $newShop = new RepairShop(); 
                 if ($newShop->get($objectId)) { 
                     $this = $newShop; 
                     return true; 
                 } 
                 return false; 
             } 
  
              if ($this->getVariable('type') == 'clinic' and get_class($this)!='clinic') { 
                 $newShop = new Clinic(); 
 //		     echo "in get clinic, $objectId, ".get_class($this)."<br/>"; 
  
                if ($newShop->get($objectId)) { 
                     $this = $newShop; 
                     return true; 
                 } 
                 return false; 
             } 
  
              if ($this->getVariable('type') == 'magic' and get_class($this)!='magicshop') { 
                 $newShop = new MagicShop(); 
 //		     echo "in get clinic, $objectId, ".get_class($this)."<br/>"; 
  
                if ($newShop->get($objectId)) { 
                     $this = $newShop; 
                     return true; 
                 } 
                 return false; 
             } 
  
 	    if ($this->getVariable('type') == 'consulting' and get_class($this)!='consulting') { 
                 $newShop = new Consulting(); 
 //		     echo "in get clinic, $objectId, ".get_class($this)."<br/>"; 
  
                if ($newShop->get($objectId)) { 
                     $this = $newShop; 
                     return true; 
                 } 
                 return false; 
             } 
  
 	    if ($this->getVariable('type') == 'promotion' and get_class($this)!='promotion') { 
                 $newShop = new Promotion(); 
                if ($newShop->get($objectId)) { 
                     $this = $newShop; 
                     return true; 
                 } 
                 return false; 
             } 
  
 	    if ($this->getVariable('type') == 'mine' and get_class($this)!='mine') { 
                 $newShop = new Mine(); 
                if ($newShop->get($objectId)) { 
                     $this = $newShop; 
                     return true; 
                 } 
                 return false; 
             } 
  
 	    if ($this->getVariable('type') == 'transport' and get_class($this)!='transportation') { 
                 $newShop = new Transportation(); 
                if ($newShop->get($objectId)) { 
                     $this = $newShop; 
                     return true; 
                 } 
                 return false; 
             } 
  
 	    if ($this->getVariable('type') == 'ad_board' and get_class($this)!='adboard') { 
                 $newShop = new AdBoard(); 
                if ($newShop->get($objectId)) { 
                     $this = $newShop; 
                     return true; 
                 } 
                 return false; 
             } 
  
 	    return true; 
         } else { 
             return false; 
         } 
     }
 
Ответить с цитированием