Contao\DcaExtractor::__construct PHP Method

__construct() protected method

Load or create the extract
protected __construct ( string $strTable )
$strTable string The table name
    protected function __construct($strTable)
    {
        if ($strTable == '') {
            throw new \Exception('The table name must not be empty');
        }
        parent::__construct();
        $this->strTable = $strTable;
        $strFile = \System::getContainer()->getParameter('kernel.cache_dir') . '/contao/sql/' . $strTable . '.php';
        // Try to load from cache
        if (file_exists($strFile)) {
            include $strFile;
        } else {
            $this->createExtract();
        }
    }