protected function createDcaMultiEdit($dc)
	{
		$session = \System::getContainer()->get('session')->all();
		if (empty($session['CURRENT']['IDS']) || !is_array($session['CURRENT']['IDS'])) {
			return;
		}
		$ids = $session['CURRENT']['IDS'];

		$types = \Database::getInstance()
			->prepare('
				SELECT type
				FROM ' . $dc->table . '
				WHERE id IN (' . implode(',', $ids) . ')
					AND type LIKE \'rsce_%\'
				GROUP BY type
			')
			->execute()
			->fetchEach('type');

		if (!$types) {
			return;
		}

		foreach ($types as $type) {

			$paletteFields = array();
			$config = static::getConfigByType($type);

			if (!$config) {
				continue;
			}

			$standardFields = is_array($config['standardFields']) ? $config['standardFields'] : array();

			foreach ($config['fields'] as $fieldName => $fieldConfig) {
				if (isset($fieldConfig['inputType']) && $fieldConfig['inputType'] !== 'list') {
					$this->createDcaItem($type . '_field_', $fieldName, $fieldConfig, $paletteFields, $dc, false, true);
				}
			}

			$GLOBALS['TL_DCA'][$dc->table]['palettes'][$type] = static::generatePalette(
				$dc->table,
				$paletteFields,
				$standardFields
			);

		}
	}
protected function createDcaMultiEdit($dc)
	{
		$session = \System::getContainer()->get('session')->all();
		if (empty($session['CURRENT']['IDS']) || !is_array($session['CURRENT']['IDS'])) {
			return;
		}
		$ids = $session['CURRENT']['IDS'];

		$types = \Database::getInstance()
			->prepare('
				SELECT type
				FROM ' . $dc->table . '
				WHERE id IN (' . implode(',', $ids) . ')
					AND type LIKE \'rsce_%\'
				GROUP BY type
			')
			->execute()
			->fetchEach('type');

		if (!$types) {
			return;
		}

		foreach ($types as $type) {

			$paletteFields = array();
			$config = static::getConfigByType($type);

			if (!$config) {
				continue;
			}

			$standardFields = is_array($config['standardFields']) ? $config['standardFields'] : array();

			foreach ($config['fields'] as $fieldName => $fieldConfig) {
				if (isset($fieldConfig['inputType']) && $fieldConfig['inputType'] !== 'list') {
					$this->createDcaItem($type . '_field_', $fieldName, $fieldConfig, $paletteFields, $dc, false, true);
				}
			}

			$GLOBALS['TL_DCA'][$dc->table]['palettes'][$type] = static::generatePalette(
				$dc->table,
				$paletteFields,
				$standardFields
			);

		}
	}
protected function createDcaMultiEdit ( $ dc ) { $ session = \ System :: getContainer ( ) -> get ( 'session' ) -> all ( ) ; if ( empty ( $ session [ 'CURRENT' ] [ 'IDS' ] ) || ! is_array ( $ session [ 'CURRENT' ] [ 'IDS' ] ) ) { return ; } $ ids = $ session [ 'CURRENT' ] [ 'IDS' ] ; $ types = \ Database :: getInstance ( ) -> prepare ( '
				SELECT type
				FROM ' . $ dc -> table . '
				WHERE id IN (' . implode ( ',' , $ ids ) . ')
					AND type LIKE \'rsce_%\'
				GROUP BY type
			' ) -> execute ( ) -> fetchEach ( 'type' ) ; if ( ! $ types ) { return ; } foreach ( $ types as $ type ) { $ paletteFields = array ( ) ; $ config = static :: getConfigByType ( $ type ) ; if ( ! $ config ) { continue ; } $ standardFields = is_array ( $ config [ 'standardFields' ] ) ? $ config [ 'standardFields' ] : array ( ) ; foreach ( $ config [ 'fields' ] as $ fieldName => $ fieldConfig ) { if ( isset ( $ fieldConfig [ 'inputType' ] ) && $ fieldConfig [ 'inputType' ] !== 'list' ) { $ this -> createDcaItem ( $ type . '_field_' , $ fieldName , $ fieldConfig , $ paletteFields , $ dc , false , true ) ; } } $ GLOBALS [ 'TL_DCA' ] [ $ dc -> table ] [ 'palettes' ] [ $ type ] = static :: generatePalette ( $ dc -> table , $ paletteFields , $ standardFields ) ; } }
Create all DCA standard fields for multi edit mode

@param  \DataContainer $dc Data container
@return void
Create all DCA standard fields for multi edit mode