function init() { if (is_null(self::$schema)) { $schema = simplexml_load_file('database.xml'); self::$schema = self::readTables($schema->table); } return self::$schema; }
function __wakeup() { $schema = KISS_Data_DataSet_Schema_XML::init(); foreach ($schema[$this->property['_table']]['columns'] as $key => $value) { $this->data[$key] = $this->property[$key]; } $this->table = $this->property['_table']; $this->property = array(); }