26 protected $dialogClass =
'';
30 protected $post_cancel =
'add_cancel';
31 protected $post_finish =
'add_finish';
33 function __construct ($simplePlugin, $attribute)
35 $this->attribute = $attribute;
36 $this->dialog =
new $this->dialogClass();
41 if (isset($_POST[$this->post_cancel])) {
42 $this->handleCancel();
44 $this->dialog->readPost();
45 if (isset($_POST[$this->post_finish]) || isset($_GET[$this->post_finish])) {
46 $this->handleFinish();
53 if (isset($this->dialog)) {
54 return $this->dialog->update();
62 return $this->dialog->render();
65 abstract protected function handleFinish ();
67 protected function handleCancel ()
update()
Update state and return FALSE if the dialog was closed.
This interface should be implemented by all dialog classes in FusionDirectory.
readPost()
Interpret POST content.
render()
Render the dialog and returns the HTML code.
Generic dialog base class.