/** * Constructor * @param $targetSelector string Selector for target to receive event. * @param $eventName string Name of Javascript event to trigger. */ function __construct($targetSelector, $eventName, $options = array()) { parent::__construct(); $this->targetSelector = $targetSelector; $this->eventName = $eventName; $this->options = $options; }
/** * Constructor * @param $url string Target URL * @param $name string Name of window to direct (defaults to current window) * @param $specs string Optional set of window specs (see window.open JS reference) */ function __construct($url, $name = '_self', $specs = '') { parent::__construct(); $this->_url = $url; $this->_name = $name; $this->_specs = $specs; }
/** * Constructor * @param $title string (optional) The localized modal title. * @param $titleIcon string (optional) The icon to be used in the modal title bar. * @param $canClose boolean (optional) Whether the modal will have a close button. * @param $width int (optional) Override the default width of 'auto' * for confirmation modals. Useful for modals that display * large blocks of text. */ function __construct($title = null, $titleIcon = null, $canClose = true, $width = MODAL_WIDTH_DEFAULT) { parent::__construct(); $this->_title = $title; $this->_titleIcon = $titleIcon; $this->_canClose = $canClose; $this->_width = $width; // @todo this should be customizable via an option $this->_closeButtonText = __('common.closePanel'); }
/** * Constructor */ function __construct() { parent::__construct(); }
/** * Constructor * @param $url string Target URL */ function __construct($url) { parent::__construct(); $this->_url = $url; }
/** * Constructor * @param $remoteAction string The target URL. * @param $requestType string One of the AJAX_REQUEST_TYPE_* constants. */ function __construct($remoteAction, $requestType = AJAX_REQUEST_TYPE_POST) { parent::__construct(); $this->_remoteAction = $remoteAction; $this->_requestType = $requestType; }