/** * Constructor * * @param string message * @param string caption default 'Message' * @param int style default MB_DEFAULT * @param array buttons default array() user defined buttons */ public function __construct($message, $caption = 'Message', $style = MB_DEFAULT, $buttons = array()) { $this->message = $message; $this->caption = $caption; $this->style = $style; $this->buttons = $buttons; // TBI parent::__construct(dirname(__FILE__) . '/messagebox.glade', 'messagebox'); }
/** * Constructor * * @param string dir default '.' * @param string filter default '.*' */ public function __construct($dir = '.', $filter = '.*') { $this->dir = $dir; $this->filter = $filter; parent::__construct(dirname(__FILE__) . '/filedialog.glade', 'filedialog'); }