예제 #1
0
 /**
  * PUBLIC parseJson()
  *
  * Parses the object in json format
  *
  * @return	String  JSON code of the object
  * @author	Lars Michelsen <*****@*****.**>
  */
 public function parseJson()
 {
     // Get the correct url
     $this->url = $this->getUrl();
     // When this is a gadget parse the url
     if ($this->view_type == 'gadget') {
         $this->parseGadgetUrl();
     }
     // Get all information of the object (configuration, state, ...)
     return parent::parseJson();
 }