protected function addTableTlLayout(\DOMDocument $xml, \DOMNode $tables, Database\Result $objTheme)
{
// Add the table
$table = $xml->createElement('table');
$table->setAttribute('name', 'tl_layout');
$table = $tables->appendChild($table);
// Load the DCA
$this->loadDataContainer('tl_layout');
// Get the order fields
$objDcaExtractor = \DcaExtractor::getInstance('tl_layout');
$arrOrder = $objDcaExtractor->getOrderFields();
// Get all layouts
$objLayout = $this->Database->prepare("SELECT * FROM tl_layout WHERE pid=? ORDER BY name")->execute($objTheme->id);
// Add the rows
while ($objLayout->next()) {
$this->addDataRow($xml, $table, $objLayout->row(), $arrOrder);
}
}