Ejemplo n.º 1
0
 public function ToJSON()
 {
     echo "{";
     echo "\"ID\":" . $this->ID . ",";
     echo "\"Title\":\"" . \JH\Utilities::JavaScriptDecode($this->Title, "\"") . "\",";
     echo "\"Description\":\"" . \JH\Utilities::JavaScriptDecode($this->Description, "\"") . "\"";
     echo "}";
 }
Ejemplo n.º 2
0
 public function ToJSON()
 {
     $json = "{";
     $json .= "\"ID\":" . $this->ID . ",";
     $json .= "\"Title\":\"" . \JH\Utilities::JavaScriptDecode($this->Title) . "\",";
     $json .= "\"URL\":\"" . \JH\Utilities::JavaScriptDecode($this->URL) . "\"";
     $json .= "}";
     return $json;
 }
Ejemplo n.º 3
0
 /**
  * Gets the JSON representation of this object for use in AJAX calls.
  * @return string The JSON representation of this object.
  */
 public function ToJSON()
 {
     $json = "";
     $json .= "{";
     $json .= "\"ID\":" . $this->ID . ",";
     if ($this->Module == null) {
         $json .= "\"Module\":null,";
     } else {
         $json .= "\"Module\":" . $this->Module->ToJSON() . ",";
     }
     if ($this->ParentPage == null) {
         $json .= "\"ParentPage\":null,";
     } else {
         $json .= "\"ParentPage\":" . $this->ParentPage->ToJSON() . ",";
     }
     $json .= "\"URL\":\"" . \JH\Utilities::JavaScriptDecode($this->URL, "\"") . "\",";
     $json .= "\"Content\":\"" . \JH\Utilities::JavaScriptDecode($this->Content, "\"") . "\"";
     $json .= "}";
     return $json;
 }