Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\xampp\xampp\htdocs\chat\src\core\ drwxrwxrwx |
Viewing file: chatRoster.js (1.08 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | /** File: chatRoster.js * Candy - Chats are not dead yet. * * Authors: * - Patrick Stadler <patrick.stadler@gmail.com> * - Michael Weibel <michael.weibel@gmail.com> * * Copyright: * (c) 2011 Amiado Group AG. All rights reserved. */ /** Class: Candy.Core.ChatRoster * Chat Roster */ Candy.Core.ChatRoster = function () { /** Object: items * Roster items */ this.items = {}; /** Function: add * Add user to roster * * Parameters: * (Candy.Core.ChatUser) user - User to add */ this.add = function(user) { this.items[user.getJid()] = user; }; /** Function: remove * Remove user from roster * * Parameters: * (String) jid - User jid */ this.remove = function(jid) { delete this.items[jid]; }; /** Function: get * Get user from roster * * Parameters: * (String) jid - User jid * * Returns: * (Candy.Core.ChatUser) - User */ this.get = function(jid) { return this.items[jid]; }; /** Function: getAll * Get all items * * Returns: * (Object) - all roster items */ this.getAll = function() { return this.items; }; }; |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]-- |