* @revision 01 * @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_TLV_Helper_TLV extends Oscar_TLV { /* Value of this TLV */ public $TLVs = array (); protected $Prepend = ""; // {{{ getTLVClasses /** * Retrive a list of prefered TLV-Types for this TLV * * @access protected * @return array */ protected function getTLVClasses () { return array (); } // }}} // {{{ parse /** * Parse this TLV * * @access public * @return void */ public function parse () { $this->TLVs = Oscar_TLV::parseTLVs ($this->Data, $this->Parent, $this->getTLVClasses ()); } // }}} // {{{ generate /** * Generate a string from this TLV * * @access public * @return string */ public function generate () { $this->Data = $this->Prepend; foreach ($this->TLVs as $TLV) $this->Data .= $TLV->generate (); return parent::generate (); } // }}} } ?>