* @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 */ class Oscar_SNAC_Service_HostOnline extends Oscar_SNAC { /* About this class */ const SNAC_FAMILY = 0x0001; const SNAC_SERVICE = 0x0003; public $Groups = array (); // {{{ parse /** * Parse informations supplied in Data * * @access public * @return void */ public function parse () { $this->Groups = array (); while (strlen ($this->Data) > 1) $this->Groups [] = Oscar_Common::str2int16 ($this->Data, 0, true); $this->Data = ""; } // }}} // {{{ generate /** * Convert this SNAC to a string * * @access public * @return string */ public function generate () { $this->Data = ""; foreach ($this->Groups as $Group) $this->Data = Oscar_Common::int16tostr ($Group); return parent::generate (); } // }}} } ?>