* @license PHP License * @package WB * @subpackage base */ /** * XML config unserializer * * Serialitze config string from array to XML * * @version 0.1.0 * @package WB * @subpackage base */ class WBConfig_Serializer extends WBStdClass { /** * XML Unserializer * @var XML_Serializer */ private $ser; /** * constructor * * start patI18n */ public function __construct() { // prepare XML_Userializer WBClass::load('XML_Serializer'); $params = array( XML_UNSERIALIZER_OPTION_WHITESPACE => XML_UNSERIALIZER_WHITESPACE_KEEP, XML_UNSERIALIZER_OPTION_COMPLEXTYPE => 'array', XML_UNSERIALIZER_OPTION_ATTRIBUTE_KEY => 'id', XML_UNSERIALIZER_OPTION_ATTRIBUTES_PARSE => true, XML_UNSERIALIZER_OPTION_ATTRIBUTES_ARRAYKEY => '_attributes', XML_UNSERIALIZER_OPTION_FORCE_ENUM => array('item') ); $this->ser = new XML_Unserializer($params); } /** * unserializer XML string * * @param array $in * @return string * @throws WBException_File */ public function serialize($in) { return ''; } } ?>