Hi!
I´d like to build a class which does something and returns a user input, not an object.
The class extends the GtkDialog Class, which will be contructed at first. After the user clicks "OK" the dialog shall be destructed and a result returned (from a GtkEntry inside the dialog).
Example:
| Code: |
class x extrends GtkDialog{
function __contruct(){
//contains dialog attributes, GtkEntry etc
}
function destruct(){
//will be called on dialog ok
//reads entry value
//here the class shall be destructed and a return value transmitted
}
}
$return = new x(); |
Everything is working fine but i alway get a object back.
I can acess the value with $return->value, and destroy it later using unset($return). but i would prefer a solution descibed above- if possibel.