|
Stud.IP
4.1 Revision
|


Static Public Member Functions | |
| static | create ($id, Range $range_to_check=null) |
| static | findAll () |
| static | registerWidget (Widget $widget) |
| static | listForRange (Range $range, $scope=null) |
Static Public Member Functions inherited from SimpleORMap | |
| static | tableScheme ($db_table) |
| static | expireTableScheme () |
| static | find ($id) |
| static | exists ($id) |
| static | countBySql ($sql=1, $params=array()) |
| static | create ($data) |
| static | build ($data, $is_new=true) |
| static | buildExisting ($data) |
| static | import ($data) |
| static | findBySQL ($sql, $params=array()) |
| static | findByObject (SimpleORMap $object) |
| static | findOneBySQL ($where, $params=array()) |
| static | findThru ($foreign_key_value, $options) |
| static | findEachBySQL ($callable, $sql, $params=array()) |
| static | findMany ($pks=array(), $order='', $order_params=array()) |
| static | findEachMany ($callable, $pks=array(), $order='', $order_params=array()) |
| static | findAndMapBySQL ($callable, $where, $params=array()) |
| static | findAndMapMany ($callable, $pks=array(), $order='', $order_params=array()) |
| static | deleteBySQL ($where, $params=array()) |
| static | toObject ($id_or_object) |
| static | __callStatic ($name, $arguments) |
Data Fields | |
| const | EXECUTION_BASE_URL = 'dispatch.php/widgets/execute' |
Static Protected Member Functions | |
| static | configure ($config=[]) |
| static | configure ($config=array()) |
Additional Inherited Members | |
Static Public Attributes inherited from SimpleORMap | |
| static | $schemes = null |
Protected Member Functions inherited from SimpleORMap | |
| _getId ($field) | |
| _setId ($field, $value) | |
| _getAdditionalValueFromRelation ($field) | |
| _setAdditionalValueFromRelation ($field, $value) | |
| _getAdditionalValue ($field) | |
| _setAdditionalValue ($field, $value) | |
| parseRelationOptions ($type, $name, $options) | |
| getTableScheme () | |
| storeRelations ($only_these=null) | |
| deleteRelations () | |
| initializeContent () | |
| applyCallbacks ($type) | |
| registerCallback ($types, $cb) | |
| unregisterCallback ($types, $cb) | |
| cbAutoIncrementColumn ($type) | |
| cbAutoKeyCreation () | |
| cbNotificationMapper ($cb_type) | |
| cbAfterInitialize ($cb_type) | |
| setSerializedValue ($field, $value) | |
| setI18nValue ($field, $value) | |
| cbI18N ($type) | |
Protected Attributes inherited from SimpleORMap | |
| $content = array() | |
| $content_db = array() | |
| $is_new = true | |
| $is_deleted = false | |
| $db_table = '' | |
| $db_fields = null | |
| $pk = null | |
| $default_values = array() | |
| $serialized_fields = array() | |
| $alias_fields = array() | |
| $i18n_fields = array() | |
| $additional_fields = array() | |
| $relations = array() | |
| $has_many = array() | |
| $has_one = array() | |
| $belongs_to = array() | |
| $has_and_belongs_to_many = array() | |
| $registered_callbacks | |
| $known_slots = array() | |
| $notification_map = array() | |
| $additional_data = array() | |
| $getter_setter_map = array() | |
Static Protected Attributes inherited from SimpleORMap | |
| static | $config = array() |
| static | $reserved_slots = array('value','newid','iterator','tablemetadata', 'relationvalue','wherequery','relationoptions','data','new','id') |
This model represents an abstract widget.
|
staticprotected |
| connectWithElement | ( | Element | $element | ) |
Connect this widget with an actual element of a container.
Implements WidgetInterface.
Creates a widget by id.
| int | $id | Id of the widgtet |
| mixed | $range | Optional range to check suitability for |
| Exception | when widget is not enabled and $allow_disabled is false |

|
static |
Return all available widgets.
| getActions | ( | Range | $range, |
| $scope | |||
| ) |
Returns a list of possible widget actions.
Implements WidgetInterface.
Reimplemented in LegacyWidget.
| getElement | ( | ) |
Returns the connected element of this widget.
Implements WidgetInterface.
| getOptions | ( | ) |
Returns the options for this widget instance. This might and should be overwritten by a subclass.
Implements WidgetInterface.

| getTemplate | ( | $name, | |
| array | $variables = [] |
||
| ) |
Opens and returns a template. Optionally, variables can be assigned.
| string | $name | Name of the template |
| array | $variables | Optional initial variables |

| getTitle | ( | ) |
Returns the title of the widgets. Defaults to specified name.
Implements WidgetInterface.
Reimplemented in MyPublicFilesWidget, and LegacyWidget.

| hasLayout | ( | ) |
Returns whether the widget should have a layout or not.
Implements WidgetInterface.
Reimplemented in LegacyWidget.
| mayBeDuplicated | ( | ) |
Returns whether this widget instance may be duplicated or used more than once in a container.
Implements WidgetInterface.
Reimplemented in LatestFilesWidget, MyPublicFilesWidget, and LegacyWidget.
| mayBeRemoved | ( | ) |
Returns whether this widget instance may be removed from a container.
Implements WidgetInterface.
Reimplemented in LatestFilesWidget, and MyPublicFilesWidget.
|
static |
| 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 |
Implements WidgetInterface.

Returns whether this widget is suitable for the given range and scope.
Implements WidgetInterface.
| url_for | ( | $to, | |
$parameters = [] |
|||
| ) |
Returns a url for an action that is related to this widget. This method is variadic in such a way that you may pass as many strings as you like which will be concatenated to a valid url chunk. Only if the last passed parameter is an array, it will be used as the parameters for the generated url.
| String | $to | URL chunk to generate complete url for |
| array | $parameters | Additional url parameters |
Implements WidgetInterface.
Reimplemented in LegacyWidget.


| const EXECUTION_BASE_URL = 'dispatch.php/widgets/execute' |