Example #1
0
 /**
  * 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();
 }
Example #2
0
 public function __construct()
 {
     $this->type = 'textbox';
     parent::__construct();
 }
Example #3
0
 /**
  * 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();
     }
 }