|
int const | THEME_IS_NOT_USED = 0 |
| The theme is not used in context.
|
|
int const | THEME_IS_USED = 1 |
| The theme is used in context.
|
|
string const | THEME_USAGE_TYPE_ALL = 'all' |
| The theme usage type for all.
|
|
string const | THEME_USAGE_TYPE_CATEGORY = 'category' |
| The theme usage type for categories.
|
|
string const | THEME_USAGE_TYPE_COHORT = 'cohort' |
| The theme usage type for cohorts.
|
|
string const | THEME_USAGE_TYPE_COURSE = 'course' |
| The theme usage type for courses.
|
|
string const | THEME_USAGE_TYPE_USER = 'user' |
| The theme usage type for users.
|
|
◆ is_theme_used_in_any_context()
static core\output\theme_usage::is_theme_used_in_any_context |
( |
string | $themename | ) |
|
|
static |
Check if the theme is used in any context (e.g.
user, course, cohort, category).
This query is cached.
- Parameters
-
string | $themename | The theme to check. |
- Return values
-
int | Return 1 if at least one record was found, 0 if none. |
The documentation for this class was generated from the following file:
- lib/classes/output/theme_usage.php