* @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 */ /** * Just a generic SNAC to handle SNACs carring an UIN * * @class SNAC_Helper_UIN */ class Oscar_SNAC_Helper_UIN extends Oscar_SNAC { public $Username; // {{{ parse /** * Parse data of this snac * * @access public * @return void */ public function parse () { $this->Username = Oscar_Common::string08 ($this->Data, 0, true); } // }}} // {{{ generate /** * Prepare this SNAC for submission * * @access public * @return string */ public function generate () { $this->Data = Oscar_Common::toString08 ($this->Username) . $this->Data; return parent::generate (); } // }}} } ?>