public function loadCallbackMultiEdit($value, $dc)
	{
		if ($value !== null) {
			return $value;
		}

		$field = substr($dc->field, strlen($dc->activeRecord->type . '_field_'));

		$data = \Database::getInstance()
			->prepare("SELECT rsce_data FROM {$dc->table} WHERE id=?")
			->execute($dc->id)
			->rsce_data;
		$data = $data ? json_decode($data, true) : [];

		if (isset($data[$field])) {
			$value = $data[$field];
		}

		if ($value === null && isset($GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['default'])) {
			$value = $GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['default'];
		}

		if ($value && (
			$GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['inputType'] === 'fileTree'
			|| $GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['inputType'] === 'fineUploader'
		)) {
			$value = $this->uuidTextToBin($value);
		}

		return $value;
	}
public function loadCallbackMultiEdit($value, $dc)
	{
		if ($value !== null) {
			return $value;
		}

		$field = substr($dc->field, strlen($dc->activeRecord->type . '_field_'));

		$data = \Database::getInstance()
			->prepare("SELECT rsce_data FROM {$dc->table} WHERE id=?")
			->execute($dc->id)
			->rsce_data;
		$data = $data ? json_decode($data, true) : [];

		if (isset($data[$field])) {
			$value = $data[$field];
		}

		if ($value === null && isset($GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['default'])) {
			$value = $GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['default'];
		}

		if ($value && (
			$GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['inputType'] === 'fileTree'
			|| $GLOBALS['TL_DCA'][$dc->table]['fields'][$dc->field]['inputType'] === 'fineUploader'
		)) {
			$value = $this->uuidTextToBin($value);
		}

		return $value;
	}
public function loadCallbackMultiEdit ( $ value , $ dc ) { if ( $ value !== null ) { return $ value ; } $ field = substr ( $ dc -> field , strlen ( $ dc -> activeRecord -> type . '_field_' ) ) ; $ data = \ Database :: getInstance ( ) -> prepare ( "SELECT rsce_data FROM {$dc->table} WHERE id=?" ) -> execute ( $ dc -> id ) -> rsce_data ; $ data = $ data ? json_decode ( $ data , true ) : [ ] ; if ( isset ( $ data [ $ field ] ) ) { $ value = $ data [ $ field ] ; } if ( $ value === null && isset ( $ GLOBALS [ 'TL_DCA' ] [ $ dc -> table ] [ 'fields' ] [ $ dc -> field ] [ 'default' ] ) ) { $ value = $ GLOBALS [ 'TL_DCA' ] [ $ dc -> table ] [ 'fields' ] [ $ dc -> field ] [ 'default' ] ; } if ( $ value && ( $ GLOBALS [ 'TL_DCA' ] [ $ dc -> table ] [ 'fields' ] [ $ dc -> field ] [ 'inputType' ] === 'fileTree' || $ GLOBALS [ 'TL_DCA' ] [ $ dc -> table ] [ 'fields' ] [ $ dc -> field ] [ 'inputType' ] === 'fineUploader' ) ) { $ value = $ this -> uuidTextToBin ( $ value ) ; } return $ value ; }
Field load callback multi edit

Finds the current value for the field directly from the database

@param  string         $value Current value
@param  \DataContainer $dc    Data container
@return string                Current value for the field
Field load callback multi edit