uawdijnntqw1x1x1
IP : 18.117.185.15
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
kirov.axolotls.ru
/
bitrix
/
js
/
ui
/
progressbarjs
/
..
/
entity-editor
/
js
/
model.js
/
/
BX.namespace("BX.UI"); if(typeof BX.UI.EntityModel === "undefined") { BX.UI.EntityModel = function() { this._id = ""; this._settings = {}; this._isIdentifiable = true; this._data = null; this._initData = null; this._lockedFields = null; }; BX.UI.EntityModel.prototype = { initialize: function(id, settings) { this._id = BX.type.isNotEmptyString(id) ? id : BX.util.getRandomString(4); this._settings = settings ? settings : {}; this._isIdentifiable = BX.prop.getBoolean(this._settings, "isIdentifiable", true); this._data = BX.prop.getObject(this._settings, "data", {}); this._initData = BX.clone(this._data); this._lockedFields = {}; this.doInitialize(); }, doInitialize: function() { }, getEntityTypeName: function() { return ''; }, isIdentifiable: function() { return this._isIdentifiable; }, getEntityId: function() { return BX.prop.getInteger(this._data, "ID", 0); }, getField: function(name, defaultValue) { if(defaultValue === undefined) { defaultValue = null; } return BX.prop.get(this._data, name, defaultValue); }, getStringField: function(name, defaultValue) { if(defaultValue === undefined) { defaultValue = null; } return BX.prop.getString(this._data, name, defaultValue); }, getIntegerField: function(name, defaultValue) { if(defaultValue === undefined) { defaultValue = null; } return BX.prop.getInteger(this._data, name, defaultValue); }, getNumberField: function(name, defaultValue) { if(defaultValue === undefined) { defaultValue = null; } return BX.prop.getNumber(this._data, name, defaultValue); }, getArrayField: function(name, defaultValue) { if(defaultValue === undefined) { defaultValue = null; } return BX.prop.getArray(this._data, name, defaultValue); }, registerNewField: function(name, value) { //update data this._data[name] = value; //update initialization data because of rollback. this._initData[name] = value; }, setField: function(name, value, options) { if(this._data.hasOwnProperty(name) && this._data[name] === value) { return; } this._data[name] = value; if(!BX.type.isPlainObject(options)) { options = {}; } if(BX.prop.getBoolean(options, "enableNotification", true)) { BX.onCustomEvent( window, "UI.EntityModel.Change", [ this, { entityTypeName: this.getEntityTypeName(), entityId: this.getEntityId(), fieldName: name } ] ); } }, getData: function() { return this._data; }, setData: function(data, options) { this._data = BX.type.isPlainObject(data) ? data : {}; this._initData = BX.clone(this._data); if(BX.prop.getBoolean(options, "enableNotification", true)) { BX.onCustomEvent( window, "Crm.EntityModel.Change", [ this, { entityTypeName: this.getEntityTypeName(), entityId: this.getEntityId(), forAll: true } ] ); } }, getSchemeField: function(schemeElement, name, defaultValue) { return this.getField(schemeElement.getDataStringParam(name, ""), defaultValue); }, setSchemeField: function(schemeElement, name, value) { var fieldName = schemeElement.getDataStringParam(name, ""); if(fieldName !== "") { this.setField(fieldName, value); } }, getMappedField: function(map, name, defaultValue) { var fieldName = BX.prop.getString(map, name, ""); return fieldName !== "" ? this.getField(fieldName, defaultValue) : defaultValue; }, setMappedField: function(map, name, value) { var fieldName = BX.prop.getString(map, name, ""); if(fieldName !== "") { this.setField(fieldName, value); } }, save: function() { }, rollback: function() { this._data = BX.clone(this._initData); }, lockField: function(fieldName) { if(this._lockedFields.hasOwnProperty(fieldName)) { return; } this._lockedFields[fieldName] = true; }, unlockField: function(fieldName) { if(!this._lockedFields.hasOwnProperty(fieldName)) { return; } delete this._lockedFields[fieldName]; }, isFieldLocked: function(fieldName) { return this._lockedFields.hasOwnProperty(fieldName); }, isCaptionEditable: function() { return false; }, getCaption: function() { return ""; }, setCaption: function(caption) { }, prepareCaptionData: function(data) { } }; BX.UI.EntityModel.create = function(id, settings) { var self = new BX.UI.EntityModel(); self.initialize(id, settings); return self; }; }
/var/www/axolotl/data/www/kirov.axolotls.ru/bitrix/js/ui/progressbarjs/../entity-editor/js/model.js