* @revision 03 * @license http://creativecommons.org/licenses/by-sa/3.0/de/ Creative Commons Attribution-Share Alike 3.0 Germany * @homepage http://oss.tiggerswelt.net/oscar/ * @copyright Copyright © 2009 tiggersWelt.net */ require_once ("oscar/snac/helper/tlv.php"); class Oscar_SNAC_Buddy_Online extends Oscar_SNAC_Helper_TLV { /* About this class */ const SNAC_FAMILY = 0x0003; const SNAC_SERVICE = 0x000B; public $Users = array (); public $Username = ""; public $Warnlevel = 0; // {{{ parse /** * @access public * @return void */ public function parse () { // Empty User-Information $this->Users = array (); while ($this->Data != "") { $this->TLVs = array (); parent::parseBuddyInfo (); // Store information $this->Users [$this->Username] = array ( "UID" => $this->Username, "WarnLevel" => $this->Warnlevel, "TLV" => $this->TLVs ); } } // }}} } ?>