Xplain.Db.Version
- Xplain.Db.Version()
Xplain.Db.Version
is a singleton class that provides some static methods to get version info about XplainUX and all other Xplain modules installed on the server. This usually includes infos aboutXplainDb
,Core
and theObjectExplorer
app.Before you can access version infos, you have to fetch these infos from the backend by using the
fetch
method of this class.
fetch
- fetch()
Return the version string as returned by the backend…
getBranch
- getBranch()
Returns the branch of a given module. For instance, this returns “master” or “develop” or “hot_dev”.
- Returns
{string|boolean} the branch as string or
false
if no branch info could be found.
getBuildDate
- getBuildDate()
Returns the date this version has been build of a given module. For instance, this returns “2020-06-09T09:22:28+0200”.
- Returns
{string|boolean} the date this version has been build as string or
false
if no date info could be found.
isFetched
- isFetched()
Returns
true
if version have already been fetched,false
otherwise.- Returns
{boolean} Returns
true
if version have already been fetched,false
otherwise.
toString
- toString()
Returns the infos as string for a given module, e.g. returns “master, 2020-06-09T09:22:28+0200”.
- Returns
{string|boolean} the version infos as string or
false
if no infos could be found.