/** * 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 function __construct() { $this->type = 'textbox'; parent::__construct(); }
/** * PUBLIC getHoverMenu() * *Gets the hover menu of a shape if it is requested by configuration * * @return String The Link * @author Lars Michelsen <*****@*****.**> */ public function getHoverMenu() { if (isset($this->hover_url) && $this->hover_url != '') { parent::getHoverMenu(); } }