◆ __construct()
ilDidacticTemplateSettingsTableFilter::__construct |
( |
string |
$target_url | ) |
|
◆ filter()
ilDidacticTemplateSettingsTableFilter::filter |
( |
array |
$settings | ) |
|
◆ getFilterValue()
ilDidacticTemplateSettingsTableFilter::getFilterValue |
( |
string |
$name | ) |
|
|
protected |
◆ init()
ilDidacticTemplateSettingsTableFilter::init |
( |
| ) |
|
Init Filter.
Definition at line 79 of file class.ilDidacticTemplateSettingsTableFilter.php.
References $type, filter(), and ilDidacticTemplateSettings\lookupAssignedObjectTypes().
Referenced by ilDidacticTemplateSettingsGUI\overview().
81 $inputs[self::FILTER_NAME_ICON] = $this->ui_factory->input()->field()->select(
82 $this->lng->txt(
'icon'),
84 self::FILTER_ON => $this->lng->txt(
'didactic_filter_with_icon'),
85 self::FILTER_OFF => $this->lng->txt(
'didactic_filter_without_icon')
89 $inputs[self::FILTER_NAME_TITLE] = $this->ui_factory->input()->field()->text(
90 $this->lng->txt(
'title')
95 $options[
$type] = $this->lng->txt(
'objs_' .
$type);
98 $inputs[self::FILTER_NAME_TYPE] = $this->ui_factory->input()->field()->select(
99 $this->lng->txt(
'type'),
103 $inputs[self::FILTER_NAME_SCOPE] = $this->ui_factory->input()->field()->select(
104 $this->lng->txt(
'didactic_scope'),
106 self::FILTER_GLOBAL => $this->lng->txt(
'didactic_global'),
107 self::FILTER_LOCAL => $this->lng->txt(
'didactic_local')
111 $inputs[self::FILTER_NAME_ACTIVE] = $this->ui_factory->input()->field()->select(
112 $this->lng->txt(
'status'),
114 self::FILTER_ON => $this->lng->txt(
'active'),
115 self::FILTER_OFF => $this->lng->txt(
'inactive')
119 $this->
filter = $this->ui_service->filter()->standard(
123 $this->input_activation_config,
static lookupAssignedObjectTypes()
◆ isFiltered()
- Parameters
-
- Returns
- bool
Definition at line 163 of file class.ilDidacticTemplateSettingsTableFilter.php.
References filter(), ilDidacticTemplateSetting\getAssignments(), ilDidacticTemplateSetting\getEffectiveFrom(), getFilterValue(), ilDidacticTemplateSetting\getIconHandler(), ilDidacticTemplateSetting\getInfo(), ilDidacticTemplateSetting\getPresentationDescription(), ilDidacticTemplateSetting\getPresentationTitle(), ilDidacticTemplateSetting\isEnabled(), and ilStr\strIPos().
Referenced by filter().
165 if (!$this->
filter->isActivated()) {
171 if ($value == self::FILTER_ON && !strlen($setting->
getIconHandler()->getAbsolutePath())) {
174 if ($value == self::FILTER_OFF && strlen($setting->
getIconHandler()->getAbsolutePath())) {
180 if (strlen($value)) {
182 $title_string .= (
' ' . $setting->
getInfo());
189 if (strlen($value)) {
191 if (!in_array($value, $assigned)) {
201 if ($value == self::FILTER_GLOBAL && $is_local) {
204 if ($value == self::FILTER_LOCAL && !$is_local) {
211 if ($value == self::FILTER_ON && !$setting->
isEnabled()) {
214 if ($value == self::FILTER_OFF && $setting->
isEnabled()) {
isEnabled()
Check if template is enabled.
getAssignments()
Get object assignemnts.
getFilterValue(string $name)
static strIPos($a_haystack, $a_needle, $a_offset=null)
getPresentationDescription($a_lng="")
getPresentationTitle($a_lng="")
getInfo()
Get installation info text.
◆ loadFilterValues()
ilDidacticTemplateSettingsTableFilter::loadFilterValues |
( |
| ) |
|
|
protected |
◆ render()
ilDidacticTemplateSettingsTableFilter::render |
( |
| ) |
|
◆ $filter
ilDidacticTemplateSettingsTableFilter::$filter |
|
private |
◆ $filter_values
ilDidacticTemplateSettingsTableFilter::$filter_values = [] |
|
private |
◆ $input_activation_config
ilDidacticTemplateSettingsTableFilter::$input_activation_config |
|
private |
◆ $lng
ilDidacticTemplateSettingsTableFilter::$lng |
|
private |
◆ $target_url
ilDidacticTemplateSettingsTableFilter::$target_url |
|
private |
◆ $ui_factory
ilDidacticTemplateSettingsTableFilter::$ui_factory |
|
private |
◆ $ui_renderer
ilDidacticTemplateSettingsTableFilter::$ui_renderer |
|
private |
◆ $ui_service
ilDidacticTemplateSettingsTableFilter::$ui_service |
|
private |
◆ FILTER_GLOBAL
const ilDidacticTemplateSettingsTableFilter::FILTER_GLOBAL = 1 |
|
protected |
◆ FILTER_ID
const ilDidacticTemplateSettingsTableFilter::FILTER_ID = 'otpl_templates_table' |
|
protected |
◆ FILTER_LOCAL
const ilDidacticTemplateSettingsTableFilter::FILTER_LOCAL = 2 |
|
protected |
◆ FILTER_NAME_ACTIVE
const ilDidacticTemplateSettingsTableFilter::FILTER_NAME_ACTIVE = 'active' |
|
protected |
◆ FILTER_NAME_ICON
const ilDidacticTemplateSettingsTableFilter::FILTER_NAME_ICON = 'icon' |
|
protected |
◆ FILTER_NAME_SCOPE
const ilDidacticTemplateSettingsTableFilter::FILTER_NAME_SCOPE = 'scope' |
|
protected |
◆ FILTER_NAME_TITLE
const ilDidacticTemplateSettingsTableFilter::FILTER_NAME_TITLE = 'title' |
|
protected |
◆ FILTER_NAME_TYPE
const ilDidacticTemplateSettingsTableFilter::FILTER_NAME_TYPE = 'type' |
|
protected |
◆ FILTER_OFF
const ilDidacticTemplateSettingsTableFilter::FILTER_OFF = 2 |
|
protected |
◆ FILTER_ON
const ilDidacticTemplateSettingsTableFilter::FILTER_ON = 1 |
|
protected |
The documentation for this class was generated from the following file: