public function ToJSON() { echo "{"; echo "\"ID\":" . $this->ID . ","; echo "\"Title\":\"" . \JH\Utilities::JavaScriptDecode($this->Title, "\"") . "\","; echo "\"Description\":\"" . \JH\Utilities::JavaScriptDecode($this->Description, "\"") . "\""; echo "}"; }
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; }
/** * 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; }