* @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.php"); require_once ("oscar/common.php"); class Oscar_SNAC_Buddy_Reject extends Oscar_SNAC { /* About this class */ const SNAC_FAMILY = 0x0003; const SNAC_SERVICE = 0x000A; public $Users = array (); // {{{ parse /** * @access public * @return void */ public function parse () { $this->Users = array (); while ($this->Data != "") $this->Users [] = Oscar_Common::string08 ($this->Data, 0, true); // Do some debugging print "Notification rejected for " . implode (", ", $this->Users) . "\n"; } // }}} // {{{ generate /** * Generate an binary string from this snac * * @access public * @return string **/ public function generate () { $this->Data = ""; foreach ($this->Users as $User) $this->Data .= Oscar_Common::toString08 ($User); return parent::generate (); } // }}} } ?>