Exemple #1
0
 public function write($data)
 {
     $pass = null;
     if (xapp_has_option(self::CONF_PASSWORD)) {
         $pass = xapp_get_option(self::CONF_PASSWORD);
     }
     return XApp_Utils_JSONUtils::write_json(xo_get(self::CONF_FILE, $this), $data, 'json', true, $pass);
 }
Exemple #2
0
 public function write($data)
 {
     return XApp_Utils_JSONUtils::write_json(xo_get(self::CONF_FILE, $this), $data, 'json', true);
 }
Exemple #3
0
 public function setState($data)
 {
     $this->init();
     /***
      * get the users workbench settings
      */
     $wbSettingsPath = xo_get(self::WORKBENCH_DIRECTORY, $this) . DIRECTORY_SEPARATOR . 'settings.json';
     XApp_Utils_JSONUtils::write_json($wbSettingsPath, $data, 'json', true);
 }