* @revision 04 * @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/bart.php"); require_once ("oscar/common.php"); class Oscar_Bart_StatusString extends Oscar_Bart { public $Message = ""; // {{{ parse /** * Retrive and parse the status-string from BART * * @access public * @return void **/ public function parse () { $Items = array (); while ($this->Data != "") $Items [] = Oscar_Common::string16 ($this->Data, 0, true); if (isset ($Items [0])) $this->Message = utf8_encode (trim ($Items [0])); } // }}} // {{{ generate /** * Convert this Bart into binary string * * @access public * @return string **/ public function generate () { $this->Data = Oscar_Common::toString16 ($this->Message); return parent::generate (); } // }}} } ?>