<?php
namespace App\EntityList;

/**
 * The class can manage and export a list of systems from imported documents.
 * @author cristiana.matache
 */
class ImportedDocuments extends \App\EntityList\GeneralAbstract
{

	/**
	 * (non-PHPdoc)
	 * @see \App\EntityList\GeneralAbstract::loadDbTablesCfgs()
	 */
	protected function loadDbTablesCfgs(): void
	{
		// store the table name
		global $DBTImportedDocuments_documents, $DBTImportedDocuments_documentsData, $DBTImportedDocuments_documentsRemarks;
		$this->setMainTable($DBTImportedDocuments_documents, 'importedDocument');
		$this->addAllowedTable($DBTImportedDocuments_documentsData, 'importedDocumentData', '`importedDocumentData`.`id`=`importedDocument`.`id`', 'INNER');
		$this->addAllowedTable($DBTImportedDocuments_documentsRemarks, 'importedDocumentRemarks', '`importedDocumentRemarks`.`idImportedDocument`=`importedDocument`.`id`', 'LEFT');
	}

	/**
	 * Disable the "deleted=0" filter
	 * @see \App\EntityList\GeneralAbstract::setDefaultFilters()
	 */
	public function setDefaultFilters(): void
	{
	}
}

