54 $this->ext_consumer_id = $a_id;
64 $this->ref_id = $a_ref_id;
77 return $this->getRecordId();
134 $this->secret = $secret;
142 return $this->secret;
151 $this->
setSecret(\IMSGlobal\
LTI\ToolProvider\DataConnector\DataConnector::getRandomString(12));
159 $this->user_language =
$lang;
175 $this->active = $value;
183 return $this->active;
191 $this->role = $role_id;
205 $this->enabled = $a_status;
210 return $this->enabled;
227 $toolConsumer->initialize();
228 $toolConsumer->setRecordId($id);
229 if (!$dataConnector->loadToolConsumerILIAS($toolConsumer)) {
230 $toolConsumer->initialize();
232 $toolConsumer->setRecordId($id);
236 return $toolConsumer;
247 $toolConsumer->initialize();
248 $toolConsumer->setExtConsumerId($id);
249 if (!$dataConnector->loadGlobalToolConsumerSettings($toolConsumer)) {
250 $toolConsumer->initialize();
252 return $toolConsumer;
266 $toolConsumer->initialize();
267 $toolConsumer->setExtConsumerId($a_ext_consumer_id);
268 $toolConsumer->setRefId($a_ref_id);
272 return self::fromRecordId($consumer_pk, $a_data_connector);
274 $toolConsumer->initialize();
275 return $toolConsumer;
305 $ok = $dataConnector->saveToolConsumerILIAS($this);
Class to represent an LTI Data Connector for ILIAS.
deleteGlobalToolConsumerSettings(ilLTIToolConsumer $consumer)
Delete global tool consumer settings.
saveGlobalToolConsumerSettings(ilLTIToolConsumer $consumer)
Save lti_ext_consumer type $DIC.
lookupRecordIdByGlobalSettingsAndRefId(ilLTIToolConsumer $consumer)
Lookup record id for global settings and ref_id.
static getLogger($a_component_id)
Get component logger.