<?php
namespace App\Config;

/**
 * This class is used only for update action
 * @author oana
 */
class UpdaterVars extends DbUniAssocVarsAbstract
{

	/**
	 * The vars prefix in systemVars db table.
	 * @var String
	 */
	protected $dbVarsPrefix = '';

	/**
	 * The primary key (the list of columns) for this table - in the correct order
	 * @var array
	 */
	protected $dbTablePkCol = 'var';

	/**
	 * The column that contains the actual value for this association.
	 * @var String
	 */
	protected $dbTableValueCol = 'value';

	/**
	 * The list of vars managed by this class - if the array is empty, anything is allowed; if set
	 * to a list of values, only these values are allowed.
	 * @var array
	 */
	protected $dbVarsList = [
		'status', 'processId', 'pid', 'message', 'keepAlive', 'addTime',
		'versionClosingDate', 'productVersionComments', 'productVersionPatchComments', 'requestTime',
		'nextBuild', 'nextVersion', 'currentBuild', 'currentIdInstanceKit', 'currentIdProductVersionPatch', 'newIdInstanceKit', 'newIdProductVersionPatch',
		'fileSize', 'fileFullName', 'md5File',
		'downloadStartingTime', 'downloadStartedTime', 'downloadConfirmedChunk', 'downloadConfirmedChunkTime',
	];


	/**
	 * {@inheritDoc}
	 * @see \App\Config\DbUniAssocVarsAbstract::getDbTableName()
	 */
	protected function getDbTableName()
	{
		global $DBTUpdaterVars;
		return $DBTUpdaterVars;
	}

}