Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
AjaxModal.inc.php
1 <?php
16 import('lib.pkp.classes.linkAction.request.Modal');
17 
18 class AjaxModal extends Modal {
20  var $_url;
21 
29  function AjaxModal($url, $title = null, $titleIcon = null, $canClose = true) {
30  parent::Modal($title, $titleIcon, $canClose);
31 
32  $this->_url = $url;
33  }
34 
35 
36  //
37  // Getters and Setters
38  //
43  function getUrl() {
44  return $this->_url;
45  }
46 
47 
48  //
49  // Overridden methods from LinkActionRequest
50  //
54  function getLocalizedOptions() {
55  return array_merge(parent::getLocalizedOptions(), array(
56  'modalHandler' => '$.pkp.controllers.modal.AjaxModalHandler',
57  'url' => $this->getUrl()));
58  }
59 }
60 
61 ?>
A modal that retrieves its content from via AJAX.
Abstract base class for all modal dialogs.
Definition: Modal.inc.php:21
AjaxModal($url, $title=null, $titleIcon=null, $canClose=true)
getLocalizedOptions()