Update data struct, some php classes