GObject::set_data

void set_data(string key, mixed value);

Sets a user-defined field. With that method, you can attach any data (e.g. php variables) to a widget and retrieve it later.

See also: get_data()