📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
otogaleriscripti.demodesign.com.tr
/
includes
/
models
📝
RespondMessage.php
← Geri Dön
<? Class ReturnCodes{ const ERROR="e0"; const SUCCESS="s0"; } Class RespondMessage{ /** @var ReturnCodes $returncodes */ public $code; public $message; private $location; public function __construct( ) { } public function Error($message){ $this->code= ReturnCodes::ERROR; $this->message= $message; return $this ; } public function Success($message){ $this->code=ReturnCodes::SUCCESS; $this->message= $message; return $this ; } public function setLocation($loc){ $this->location=$loc; return $this; } public function toJson(){ $return= array( "Code"=>$this->code, "Message"=>$this->message ); if($this->location!="") $return["Location"]=$this->location; return json_encode($return); } } ?>
💾 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