* @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_PrivacySetting extends Oscar_TLV { /* Type / Identifier of this record */ const TYPE = 0x00CA; const LENGTH = 0x01; const MAX_LENGTH = 0x01; /* Privacy setting types */ const ALLOW_ALL = 0x01; const DENY_ALL = 0x02; const ALLOW_LIST = 0x03; const DENY_LIST = 0x04; const ALLOW_CONTACT = 0x05; public $Setting = 0; // {{{ parse /** * Parse packet * * @access public * @return void */ public function parse () { $this->Setting = Oscar_Common::str2int8 ($this->Data, 0, true); } // }}} // {{{ generate /** * @access public * @return string */ public function generate () { $this->Data = Oscar_Common::int8tostr ($this->Setting); return parent::generate (); } // }}} } ?>