Example #1
0
 public function disp_val()
 {
     if (Rend::$json_pretty) {
         return json_encode($this->inter, JSON_PRETTY_PRINT);
     } else {
         return parent::disp_val();
     }
 }
Example #2
0
 public function disp_val()
 {
     if (Rend::$sql_pretty) {
         return \SqlFormatter::format($this->raw, false);
     } else {
         return parent::disp_val();
     }
 }
Example #3
0
 public function disp_val()
 {
     if (Rend::$xml_pretty) {
         $dom = dom_import_simplexml($this->inter)->ownerDocument;
         $dom->formatOutput = true;
         return trim($dom->saveXML());
     } else {
         return parent::disp_val();
     }
 }