The sidebar supersedes the pretty static infobox of Stud.IP.
- Author
 - Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m @license GPL 2 or later 
 
- Since
 - 3.1 
 
 
◆ __construct()
Constructor, tries to automagically set the sidebar's title. 
Reimplemented from WidgetContainer.
 
 
◆ getImage()
Returns the image for the sidebar.
- Returns
 - mixed Either the previously set image or false if no image has been set. 
 
 
 
◆ getTitle()
Returns the title of the sidebar.
- Returns
 - mixed Either the previously set title or false if no title has been set 
 
 
 
◆ removeContextAvatar()
Removes a previously set context-indicator. 
 
 
◆ removeImage()
Removes a previously set image. 
 
 
◆ removeTitle()
Removes a previously set title. 
 
 
◆ render()
Renders the sidebar. The sidebar will only be rendered if it actually contains any widgets. It will use the template "sidebar.php" located at "templates/sidebar". A notification is dispatched before and after the actual rendering process.
- Returns
 - String The HTML code of the rendered sidebar. 
 
Reimplemented from WidgetContainer.
 
 
◆ setContextAvatar()
      
        
          | setContextAvatar  | 
          ( | 
          Avatar  | 
          $avatar | ) | 
           | 
        
      
 
Sets an avatar as a context-indicator. For example in a course a course- avatar will indicate which course teh user is navigating in. 
- Parameters
 - 
  
    | Avatar | $avatar | : the avatar object of the context  | 
  
   
 
 
◆ setImage()
Set an image for the sidebar.
- Parameters
 - 
  
    | String | $image | The image relative to assets/images  | 
  
   
 
 
◆ setTitle()
      
        
          | setTitle  | 
          ( | 
            | 
          $title = true | ) | 
           | 
        
      
 
Set a title of the sidebar.
- Parameters
 - 
  
    | String | $title | The title of the sidebar.  | 
  
   
 
 
◆ $context_avatar
◆ $image
Contains an optional image for the container. 
 
 
◆ $title
The documentation for this class was generated from the following file: