* @revision 03 * @license http://creativecommons.org/licenses/by-sa/2.0/de/ Creative Commons Attribution-Share Alike 2.0 Germany * @homepage http://oss.tiggerswelt.net/oscar/ * @copyright Copyright © 2008 tiggersWelt.net */ class Oscar_TLV_IDS extends Oscar_TLV { /* Type / Identifier of this record */ const TYPE = 0x00C8; public $IDs = array (); // {{{ parse /** * Parse packet * * @access public * @return void */ public function parse () { while ($this->Data != "") $this->IDs [] = Oscar_Common::str2int16 ($this->Data, 0, true); } // }}} // {{{ generate /** * @access public * @return string */ public function generate () { $this->Data = ""; foreach ($this->IDs as $ID) $this->Data .= Oscar_Common::int16tostr ($ID); return parent::generate (); } // }}} } ?>