This is a the php version of the visual dialog editor.