Definition at line 25 of file class.ilAssQuestionType.php.
◆ __construct()
ilAssQuestionType::__construct |
( |
| ) |
|
◆ completeMissingPluginName()
static ilAssQuestionType::completeMissingPluginName |
( |
array |
$question_type_data | ) |
|
|
static |
◆ getId()
ilAssQuestionType::getId |
( |
| ) |
|
◆ getTag()
ilAssQuestionType::getTag |
( |
| ) |
|
◆ isImportable()
ilAssQuestionType::isImportable |
( |
| ) |
|
- Returns
- bool
Definition at line 73 of file class.ilAssQuestionType.php.
73 : bool
74 {
75 if (!$this->is_plugin) {
76 return true;
77 }
78
79 if (!isset($this->plugin_name)) {
80 return false;
81 }
82
83
84 if (!$this->component_repository->getComponentByTypeAndName(
86 'TestQuestionPool'
87 )->getPluginSlotById('qst')->hasPluginName($this->plugin_name)) {
88 return false;
89 }
90
91 return $this->component_repository
92 ->getComponentByTypeAndName(
94 'TestQuestionPool'
95 )
96 ->getPluginSlotById(
97 'qst'
98 )
99 ->getPluginByName(
100 $this->plugin_name
101 )->isActive();
102 }
References ilComponentInfo\TYPE_COMPONENT.
◆ setId()
ilAssQuestionType::setId |
( |
int |
$id | ) |
|
◆ setPlugin()
ilAssQuestionType::setPlugin |
( |
bool |
$is_plugin | ) |
|
◆ setPluginName()
ilAssQuestionType::setPluginName |
( |
?string |
$plugin_name | ) |
|
◆ setTag()
ilAssQuestionType::setTag |
( |
string |
$tag | ) |
|
◆ $component_repository
◆ $id
int ilAssQuestionType::$id |
|
protected |
◆ $is_plugin
bool ilAssQuestionType::$is_plugin |
|
protected |
◆ $plugin_name
string ilAssQuestionType::$plugin_name = null |
|
protected |
◆ $tag
string ilAssQuestionType::$tag = '' |
|
protected |
The documentation for this class was generated from the following file: