| 
    Stud.IP
    trunk Revision
    
   | 
  


Public Member Functions | |
| suitableForRange (Range $range, $scope=null) | |
| getId () | |
| getName () | |
| getDescription () | |
| getTitle () | |
| getContent (Range $range, $scope) | |
| connectWithElement (Element $element) | |
| getElement () | |
| url_for ($to, $parameters=[]) | |
| setOptions (array $options=[]) | |
| getOptions () | |
| hasLayout () | |
| mayBeRemoved () | |
| mayBeDuplicated () | |
| getActions (Range $range, $scope) | |
This interface defines all functions that a widget should offer.
| connectWithElement | ( | Element | $element | ) | 
| getActions | ( | Range | $range, | 
| $scope | |||
| ) | 
Returns a list of possible widget actions.
Implemented in LegacyWidget, and Widget.
| getContent | ( | Range | $range, | 
| $scope | |||
| ) | 
Returns the content of the widget (this is the actual content of the rendered widget).
Implemented in LegacyWidget.
| getDescription | ( | ) | 
Returns the description of the widget.
Implemented in LatestFilesWidget, MyPublicFilesWidget, and LegacyWidget.
| getElement | ( | ) | 
| getId | ( | ) | 
Returns the id of the widget.
| getName | ( | ) | 
Return the name of the widget.
Implemented in LatestFilesWidget, MyPublicFilesWidget, and LegacyWidget.
| getOptions | ( | ) | 
Returns the options for this widget instance. This might and should be overwritten by a subclass.
Implemented in Widget.
| getTitle | ( | ) | 
Returns the title of the widget (this is the actual header of the rendered widget.
Implemented in MyPublicFilesWidget, LegacyWidget, and Widget.
| hasLayout | ( | ) | 
Returns whether the widget should have a layout or not.
Implemented in LegacyWidget, and Widget.
| mayBeDuplicated | ( | ) | 
Returns whether this widget instance may be duplicated or used more than once in a container.
Implemented in LatestFilesWidget, MyPublicFilesWidget, LegacyWidget, and Widget.
| mayBeRemoved | ( | ) | 
Returns whether this widget instance may be removed from a container.
Implemented in LatestFilesWidget, MyPublicFilesWidget, and Widget.
| setOptions | ( | array | $options = [] | ) | 
Sets the defined options for this widget instance. This method is usually only called when a widget container is loaded and the elements are initialized.
| array | $options | 
Implemented in Widget.
| suitableForRange | ( | Range | $range, | 
$scope = null  | 
        |||
| ) | 
Returns whether the widget is suitable for the given range (and an optional scope).
| Range | $range | |
| mixed | $scope | 
Implemented in Widget.
| url_for | ( | $to, | |
$parameters = []  | 
        |||
| ) | 
Create a url for a widget's action.
| string | $to | Target | 
| array | $parameters | Optional url parameters | 
Implemented in LegacyWidget, and Widget.