📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv11.demodesign.com.tr
/
propanel
/
model
/
entegrasyon
/
category
📝
hb.php
← Geri Dön
<?php class ModelEntegrasyonCategoryHb extends Model { public function renderAttributes($result) { $required=array(); $variants=array(); foreach ($result['result'] as $key =>$attribute) { if ($attribute['required']) { $required[] = $attribute['id']; } if($attribute['varianter']){ $values=array(); if(is_array($attribute['values'])) { foreach ($attribute['values'] as $atr_val) { $values[] = array( 'value_id' => $atr_val['id'], 'name' => $atr_val['value'], 'order_number' => 1 ); } $variants[] = array( 'name' => $attribute['name'], 'id' => $attribute['id'], 'values' => $values ); } //unset($result['result'][$key]); } } $result['result']['variants']=$variants; $result['result']['required_attributes']=$required; return $result['result']; } }
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula