403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/scale/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/scale/collection.js
	/**
 * Class BX.Scale.Collection
 * Prototype for collections class
 */
;(function(window) {

	if (BX.Scale.Collection) return;

	/**
	 * Class BX.Scale.Collection{paramsList}
	 * @constructor
	 */
	BX.Scale.Collection = function (objClass, paramsList)
	{
		this.objectClass = objClass;
		this.objectsList = {};

		if(paramsList)
			for(var objectId in paramsList)
				this.addObject(objectId, paramsList[objectId]);
	};

	BX.Scale.Collection.prototype.addObject = function(objectId, objectParams)
	{
		this.objectsList[objectId] = new this.objectClass(objectId, objectParams);
		return this.objectsList[objectId];
	};

	BX.Scale.Collection.prototype.getObject = function(objectId)
	{
		var result = false;

		if(this.objectsList[objectId] !== undefined)
			result = this.objectsList[objectId];

		return result;
	};

	BX.Scale.Collection.prototype.deleteObject = function(objectId)
	{
		delete this.objectsList[objectId];
	};

	BX.Scale.Collection.prototype.getObjectsIds = function()
	{
		var result = [];

		for(var objectId in this.objectsList)
			result.push(objectId);

		return result;
	};

	BX.Scale.Collection.prototype.getObjectsList = function()
	{
		var result = {};

		for(var objectId in this.objectsList)
			result[objectId] = this.objectsList[objectId];

		return result;
	};

})(window);



Youez - 2016 - github.com/yon3zu
LinuXploit