- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
switch ($out['list']) {
case 'sale': $out['d']=new CShotObjectFlats('ShotObjectFlats',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); $out['object_list']='flat'; break;
case 'rent': $out['d']=new CShotObjectFlats('ShotObjectFlats',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); $out['object_list']='flat'; break;
case 'exch': $out['d']=new CShotObjectFlats('ShotObjectFlats',$out['date_exch'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); $out['object_list']='flat_exch'; break;
case 'purchase': $out['d']=new CShotObjectFlatsZay('ShotObjectFlats',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); break;
case 'rent_use': $out['d']=new CShotObjectFlatsZay('ShotObjectFlats',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); break;
case 'sale_h': $out['d']=new CShotObjectHouses('ShotObjectHouses',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); $out['object_list']='house'; break;
case 'rent_h': $out['d']=new CShotObjectHouses('ShotObjectHouses',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); $out['object_list']='house'; break;
case 'exch_h': $out['d']=new CShotObjectHouses('ShotObjectHouses',$out['date_exch'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); $out['object_list']='house_exch'; break;
case 'purchase_h': $out['d']=new CShotObjectHousesZay('ShotObjectHouses',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); break;
case 'rent_use_h': $out['d']=new CShotObjectHousesZay('ShotObjectHouses',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); break;
case 'sale_g': $out['d']=new CShotObjectGarages('ShotObjectGarages',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); $out['object_list']='garage'; break;
case 'rent_g': $out['d']=new CShotObjectGarages('ShotObjectGarages',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); $out['object_list']='garage'; break;
case 'purchase_g': $out['d']=new CShotObjectGaragesZay('ShotObjectGarages',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); break;
case 'rent_use_g': $out['d']=new CShotObjectGaragesZay('ShotObjectGarages',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); break;
case 'sale_l': $out['d']=new CShotObjectLands('ShotObjectLands',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); $out['object_list']='land'; break;
case 'rent_l': $out['d']=new CShotObjectLands('ShotObjectLands',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); $out['object_list']='land'; break;
case 'purchase_l': $out['d']=new CShotObjectLandsZay('ShotObjectLands',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); break;
case 'rent_use_l': $out['d']=new CShotObjectLandsZay('ShotObjectLands',$out['date'],$out['reference'],$out['list_level'],($out['DataIn']->http['TYPE_ID']==2)?0:1); break;
}
proctologist 24.11.2016 10:41 # −3
guest 25.11.2016 07:34 # 0
guest 25.11.2016 12:50 # 0
dxd 25.11.2016 15:18 # 0
barop 26.11.2016 01:49 # 0
бля, неужели так сложно запомнить что седьмым в тупле идет имя, а восьмым -- фамилия?!
3_14dar 26.11.2016 01:50 # 0
bormand 26.11.2016 06:24 # +1
dxd 26.11.2016 07:25 # 0
bormand 26.11.2016 07:26 # 0
> свичкейса
Паттерн-матчингом по туплу.
CHayT 26.11.2016 09:43 # +2
Тульпы длиннее 3 элементов это уже явная шизофрения.
guest 26.11.2016 19:18 # 0