2 require_once(dirname(__FILE__) .
'/../../Connector/class.arConnectorDB.php');
33 $tpl =
new ilTemplate(dirname(__FILE__) .
'/templates/dbupdate.txt',
true,
true);
36 $tpl->setVariable(
'TABLE_NAME',
$ar->getConnectorContainerName());
37 $tpl->setVariable(
'TABLE_NAME2',
$ar->getConnectorContainerName());
38 $tpl->setVariable(
'TABLE_NAME3',
$ar->getConnectorContainerName());
40 $tpl->setVariable(
'PRIMARY', $this->
getAr()->getArFieldList()->getPrimaryFieldName());
42 foreach ($this->
getAr()->getArFieldList()->getFields() as $field) {
43 $tpl->touchBlock(
'field');
44 $tpl->setVariable(
'FIELD_NAME', $field->getName());
45 foreach ($field->getAttributesForConnector() as $name => $value) {
46 $tpl->setCurrentBlock(
'attribute');
48 $tpl->setVariable(
'VALUE', $value);
49 $tpl->parseCurrentBlock();
54 $tpl->setCurrentBlock(
'attribute');
55 $tpl->setVariable(
'TABLE_NAME4',
$ar->getConnectorContainerName());
56 $tpl->parseCurrentBlock();
59 header(
'Content-type: application/x-httpd-php');
60 header(
"Content-Disposition: attachment; filename=\"dbupdate.php\"");