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); }
public function write($data) { return XApp_Utils_JSONUtils::write_json(xo_get(self::CONF_FILE, $this), $data, 'json', true); }
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); }