◆ addProvider()
addProvider |
( |
|
$class_name | ) |
|
|
protected |
Add a provider to this context
- Parameters
-
string | $provider | the name for the provider |
string | $class_name | the class that belongs to the provider |
◆ filterProvider()
filterProvider |
( |
|
$providers, |
|
|
Filter |
$filter |
|
) |
| |
|
protected |
Filter the passed the providers to match the passed filter
- Parameters
-
type | $providers | |
\Studip\Activity\Filter | $filter | |
- Returns
- type
◆ getActivities()
getActivities |
( |
Filter |
$filter | ) |
|
get list of activities as array for the current context
- Parameters
-
\Studip\Activity\Filter | $filter | |
- Returns
- array
◆ getContextFullname()
getContextFullname |
( |
|
$format = 'default' | ) |
|
|
abstract |
get type of context (f.e. user, system, course, institute, ...)
- Returns
- string
◆ getContextType()
get type of context (f.e. user, system, course, institute, ...)
- Returns
- string
◆ getObserver()
Return user for who wants to watch his and related activities
- Returns
- object a user object
◆ getProvider()
return array, listing all active providers in this context
- Returns
- array
◆ getRangeId()
get id denoting the context (user_id, course_id, institute_id, ...)
- Returns
- string
◆ $contexTypes
Initial value:= [
'system',
'course',
'institute',
'user'
]
◆ $objectTypes
Initial value:= [
'documents',
'message',
'news',
'participants',
'schedule',
'wiki',
'courseware',
'forum'
]
◆ $observer
◆ $provider
The documentation for this class was generated from the following file: