/** * Constructor DialogBox * @param string $title * @param string|object|Url $content_or_url_object * @param string $width */ function __construct($title, $content_or_url_object, $width = '') { parent::__construct(); if (!isset($title) || !isset($content_or_url_object)) { throw new NewException("2 arguments for " . get_class($this) . "::__construct() are mandatory", 0, getDebugBacktrace(1)); } $this->title = $title; $this->content = $content_or_url_object; $this->width = $width; $this->is_javascript_object = true; $this->setDialogBoxLevel(DialogBox::getFirstAvailableDialogBoxLevel()); }