Contao\Theme::addTableTlLayout PHP Метод

addTableTlLayout() защищенный Метод

Add the table tl_layout
protected addTableTlLayout ( DOMDocument $xml, DOMNode $tables, Result $objTheme )
$xml DOMDocument
$tables DOMNode
$objTheme Contao\Database\Result
    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);
        }
    }