Stud.IP
4.2 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 Widget, and LegacyWidget.
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 LegacyWidget, LatestFilesWidget, and MyPublicFilesWidget.
getElement | ( | ) |
getId | ( | ) |
Returns the id of the widget.
getName | ( | ) |
Return the name of the widget.
Implemented in LegacyWidget, LatestFilesWidget, and MyPublicFilesWidget.
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 Widget, LegacyWidget, and MyPublicFilesWidget.
hasLayout | ( | ) |
Returns whether the widget should have a layout or not.
Implemented in Widget, and LegacyWidget.
mayBeDuplicated | ( | ) |
Returns whether this widget instance may be duplicated or used more than once in a container.
Implemented in Widget, LegacyWidget, LatestFilesWidget, and MyPublicFilesWidget.
mayBeRemoved | ( | ) |
Returns whether this widget instance may be removed from a container.
Implemented in Widget, LatestFilesWidget, and MyPublicFilesWidget.
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 |
|||
) |
url_for | ( | $to, | |
$parameters = [] |
|||
) |
Create a url for a widget's action.
string | $to | Target |
array | $parameters | Optional url parameters |
Implemented in Widget, and LegacyWidget.