| 
| 
string  | $event | 
|   | $event The DOM event that will trigger this action when caught 
  | 
|   | 
| 
string  | $jsfunction = 'openpopup' | 
|   | The JS function to call for the popup. 
  | 
|   | 
| 
array  | $jsfunctionargs = array() | 
|   | An array of arguments to pass to the JS function. 
  | 
|   | 
| array  | $params | 
|   | An array of parameters that will be passed to the openpopup JS function.  More...
  | 
|   | 
◆ __construct()
      
        
          | popup_action::__construct  | 
          ( | 
            | 
          $event,  | 
        
        
           | 
           | 
            | 
          $url,  | 
        
        
           | 
           | 
            | 
          $name = 'popup',  | 
        
        
           | 
           | 
            | 
          $params = array()  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Constructor. 
- Parameters
 - 
  
    | string | $event | DOM event  | 
    | moodle_url | string | $url | A moodle_url object, required if no jsfunction is given  | 
    | string | $name | The JS function to call for the popup (default 'popup')  | 
    | array | $params | An array of popup parameters  | 
  
   
 
 
◆ export_for_template()
Export for template. 
- Parameters
 - 
  
  
 
- Return values
 - 
  
  
 
Implements templatable.
 
 
◆ get_js_options()
      
        
          | popup_action::get_js_options  | 
          ( | 
           | ) | 
           | 
        
      
 
Returns a string of concatenated option->value pairs used by JS to call the popup window, based on this object's variables. 
- Return values
 - 
  
    | string | String of option->value pairs for JS popup function.  | 
  
   
 
 
◆ $params
      
        
          | array popup_action::$params | 
        
      
 
Initial value:= array(
            'height' =>  400,
            'width' => 500,
            'top' => 0,
            'left' => 0,
            'menubar' => false,
            'location' => false,
            'scrollbars' => true,
            'resizable' => true,
            'toolbar' => true,
            'status' => true,
            'directories' => false,
            'fullscreen' => false,
            'dependent' => true)
 
An array of parameters that will be passed to the openpopup JS function. 
 
 
The documentation for this class was generated from the following file: