34 $tpl =
new ilTemplate(__DIR__ .
'/templates/dbupdate.txt',
true,
true);
41 $tpl->setVariable(
'PRIMARY', $this->
getAr()->getArFieldList()->getPrimaryFieldName());
43 foreach ($this->
getAr()->getArFieldList()->getFields() as $field) {
44 $tpl->touchBlock(
'field');
45 $tpl->setVariable(
'FIELD_NAME', $field->getName());
46 foreach ($field->getAttributesForConnector() as
$name => $value) {
47 $tpl->setCurrentBlock(
'attribute');
49 $tpl->setVariable(
'VALUE', $value);
50 $tpl->parseCurrentBlock();
55 $tpl->setCurrentBlock(
'attribute');
57 $tpl->parseCurrentBlock();
60 header(
'Content-type: application/x-httpd-php');
61 header(
"Content-Disposition: attachment; filename=\"dbupdate.php\"");
static mapKey(string $key)
__construct(ActiveRecord $ar, int $step=null)
getConnectorContainerName()
Return the Name of your Connector Table
generateDBUpdateForInstallation()
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl