2require_once(dirname(__FILE__) . 
'/../../Connector/class.arConnectorDB.php');
 
   36        $tpl = 
new ilTemplate(dirname(__FILE__) . 
'/templates/dbupdate.txt', 
true, 
true);
 
   39        $tpl->setVariable(
'TABLE_NAME', 
$ar->getConnectorContainerName());
 
   40        $tpl->setVariable(
'TABLE_NAME2', 
$ar->getConnectorContainerName());
 
   41        $tpl->setVariable(
'TABLE_NAME3', 
$ar->getConnectorContainerName());
 
   43        $tpl->setVariable(
'PRIMARY', $this->
getAr()->getArFieldList()->getPrimaryFieldName());
 
   45        foreach ($this->
getAr()->getArFieldList()->getFields() as $field) {
 
   46            $tpl->touchBlock(
'field');
 
   47            $tpl->setVariable(
'FIELD_NAME', $field->getName());
 
   48            foreach ($field->getAttributesForConnector() as 
$name => $value) {
 
   49                $tpl->setCurrentBlock(
'attribute');
 
   51                $tpl->setVariable(
'VALUE', $value);
 
   52                $tpl->parseCurrentBlock();
 
   57            $tpl->setCurrentBlock(
'attribute');
 
   58            $tpl->setVariable(
'TABLE_NAME4', 
$ar->getConnectorContainerName());
 
   59            $tpl->parseCurrentBlock();
 
   62        header(
'Content-type: application/x-httpd-php');
 
   63        header(
"Content-Disposition: attachment; filename=\"dbupdate.php\"");
 
An exception for terminatinating execution or to throw for unit testing.
generateDBUpdateForInstallation()
__construct(ActiveRecord $ar, $step=1)
special template class to simplify handling of ITX/PEAR