How YafaRay settings are stored in the Blender scene?

YafaRay uses a feature of Blender called 'ID property'. This feature is used to add extra 'tags' of information to all kind of Blender data. The exporter code adds YafaRay-related tags to the scene as a whole, and to particular scene objects and materials. More information in the link below:

ID_Property