/** * @param array &$aTables * @param array $aNames */ protected static function addTablesToArray(array &$aTables, array $aNames) { foreach ($aNames as $sName) { $oTable = CDbSchemaHelper::GetTable($sName); if ($oTable) { $aTables[] = $oTable; } } }