📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
e-ticaretv4.demodesign.com.tr
/
iyzico
/
src
/
Iyzipay
📝
JsonBuilder.php
← Geri Dön
<?php namespace Iyzipay; class JsonBuilder { private $json; function __construct($json) { $this->json = $json; } public static function create() { return new JsonBuilder(array()); } public static function fromJsonObject($json) { return new JsonBuilder($json); } /** * @param $key * @param $value * @return JsonBuilder */ public function add($key, $value = null) { if (isset($value)) { if ($value instanceof JsonConvertible) { $this->json[$key] = $value->getJsonObject(); } else { $this->json[$key] = $value; } } return $this; } /** * @param $key * @param $value * @return JsonBuilder */ public function addPrice($key, $value = null) { if (isset($value)) { $this->json[$key] = RequestFormatter::formatPrice($value); } return $this; } /** * @param $key * @param array $array * @return JsonBuilder */ public function addArray($key, array $array = null) { if (isset($array)) { foreach ($array as $index => $value) { if ($value instanceof JsonConvertible) { $this->json[$key][$index] = $value->getJsonObject(); } else { $this->json[$key][$index] = $value; } } } return $this; } public function getObject() { return $this->json; } public static function jsonEncode($jsonObject) { return json_encode($jsonObject); } public static function jsonDecode($rawResult) { return json_decode($rawResult); } }
💾 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