/** * PUBLIC parseJson() * Parses the object in json format */ public function parseJson() { // Prepare the URL attribute. If it is an absolute url, leave it as it is // If it is a simple filename add the url to the scripts path $parts = parse_url($this->url); if (!isset($parts['scheme']) && $parts['path'][0] !== '/') { $this->url = cfg('paths', 'htmlbase') . '/userfiles/scripts/' . $this->url; } return parent::parseJson(); }
/** * PUBLIC parseJson() * * Parses the object in json format * * @return String JSON code of the object * @author Lars Michelsen <*****@*****.**> */ public function parseJson() { // Checks wether the shape exists or not $this->fetchIcon(); return parent::parseJson(); }