◆ __get()
◆ __isset()
◆ __set()
      
        
          | __set  | 
          ( | 
            | 
          $offset,  | 
        
        
           | 
           | 
            | 
          $value  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ __unset()
◆ addElement()
Add an element to the widget.
- Parameters
 - 
  
    | WidgetElement | $element | The actual element  | 
    | String | $index | Index/name of the element  | 
  
   
Reimplemented in HelpbarWidget.
 
 
◆ addLayoutCSSClass()
      
        
          | addLayoutCSSClass  | 
          ( | 
            | 
          $css_class | ) | 
           | 
        
      
 
Adds a css class to the layout 
 around the widget. 
 
 
◆ forceRendering()
      
        
          | forceRendering  | 
          ( | 
            | 
          $state = true | ) | 
           | 
        
      
 
Force rendering
- Parameters
 - 
  
    | bool | $state | Whether to force rendering or not  | 
  
   
 
 
◆ getElement()
Retrieve the element at the specified position.
- Parameters
 - 
  
    | String | $index | Index/name of the element to retrieve.  | 
  
   
- Returns
 - WidgetElement The element at the specified position. 
 
- Exceptions
 - 
  
    | Exception | if the specified position is invalid  | 
  
   
 
 
◆ getElements()
Returns all elements of the widget. 
- Returns
 - array of WidgetElement 
 
 
 
◆ guessIndex()
Tries to guess an appropriate index name for the element.
- Parameters
 - 
  
  
 
- Returns
 - String Appropriate index name 
 
 
 
◆ hasElement()
Returns whether an element exists at the given index.
- Parameters
 - 
  
    | String | $index | Index/name of the element to check for.  | 
  
   
- Returns
 - bool Does a widget exist at the given index? 
 
 
 
◆ hasElements()
Returns whether this widget has any elements.
- Returns
 - bool True if the widget has at least one element, false otherwise. 
 
Reimplemented in SearchWidget.
 
 
◆ insertElement()
      
        
          | insertElement  | 
          ( | 
          WidgetElement  | 
          $element,  | 
        
        
           | 
           | 
            | 
          $before_index,  | 
        
        
           | 
           | 
            | 
          $index = null  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Insert an element before a specific other element or at the end of the list if the specified position is invalid.
- Parameters
 - 
  
    | WidgetElement | $element | The actual element  | 
    | String | $before_index | Insert element before this element.  | 
    | String | $index | Index/name of the element  | 
  
   
 
 
◆ removeElement()
Removes the element at the specified position.
- Parameters
 - 
  
    | String | $index | Index/name of the element to remove.  | 
  
   
- Exceptions
 - 
  
    | Exception | if the specified position is invalid  | 
  
   
 
 
◆ removeLayoutCSSClass()
      
        
          | removeLayoutCSSClass  | 
          ( | 
            | 
          $css_class | ) | 
           | 
        
      
 
Removes a css class from the layout 
 around the widget. 
 
 
◆ render()
      
        
          | render  | 
          ( | 
            | 
          $variables = [] | ) | 
           | 
        
      
 
 
◆ $elements
Contains the elements of the widget. 
 
 
◆ $forced_rendering
  
  
      
        
          | $forced_rendering = false | 
         
       
   | 
  
protected   | 
  
 
 
◆ $layout
  
  
      
        
          | $layout = 'widgets/widget-layout' | 
         
       
   | 
  
protected   | 
  
 
 
◆ $layout_css_classes
◆ $template
  
  
      
        
          | $template = 'widgets/widget' | 
         
       
   | 
  
protected   | 
  
 
Contains the template used to render the widget. 
 
 
◆ $template_variables
Contains additional template variables 
 
 
The documentation for this class was generated from the following file: