private static function addBackendCSS($objLayout)
	{
		$arrCSS = \StringUtil::deserialize($objLayout->backendCSS);
		
		if (!empty($arrCSS) && is_array($arrCSS))
		{
			// Consider the sorting order (see #5038)
			if ($objLayout->orderBackendCSS != '')
			{
				$tmp = \StringUtil::deserialize($objLayout->orderBackendCSS);
				
				if (!empty($tmp) && is_array($tmp))
				{
					// Remove all values
					$arrOrder = array_map(function(){}, array_flip($tmp));
					
					// Move the matching elements to their position in $arrOrder
					foreach ($arrCSS as $k=>$v)
					{
						if (array_key_exists($v, $arrOrder))
						{
							$arrOrder[$v] = $v;
							unset($arrCSS[$k]);
						}
					}
					
					// Append the left-over style sheets at the end
					if (!empty($arrCSS))
					{
						$arrOrder = array_merge($arrOrder, array_values($arrCSS));
					}
					
					// Remove empty (unreplaced) entries
					$arrCSS = array_values(array_filter($arrOrder));
					unset($arrOrder);
				}
			}
			
			// Get the file entries from the database
			$objFiles = \FilesModel::findMultipleByUuids($arrCSS);
			
			if ($objFiles !== null)
			{
				while ($objFiles->next())
				{
					if (file_exists(TL_ROOT . '/' . $objFiles->path))
					{
						$GLOBALS['TL_USER_CSS'][] = $objFiles->path . '|static';
					}
				}
			}

			unset($objFiles);
		}
	}
private static function addBackendCSS($objLayout)
	{
		$arrCSS = \StringUtil::deserialize($objLayout->backendCSS);
		
		if (!empty($arrCSS) && is_array($arrCSS))
		{
			// Consider the sorting order (see #5038)
			if ($objLayout->orderBackendCSS != '')
			{
				$tmp = \StringUtil::deserialize($objLayout->orderBackendCSS);
				
				if (!empty($tmp) && is_array($tmp))
				{
					// Remove all values
					$arrOrder = array_map(function(){}, array_flip($tmp));
					
					// Move the matching elements to their position in $arrOrder
					foreach ($arrCSS as $k=>$v)
					{
						if (array_key_exists($v, $arrOrder))
						{
							$arrOrder[$v] = $v;
							unset($arrCSS[$k]);
						}
					}
					
					// Append the left-over style sheets at the end
					if (!empty($arrCSS))
					{
						$arrOrder = array_merge($arrOrder, array_values($arrCSS));
					}
					
					// Remove empty (unreplaced) entries
					$arrCSS = array_values(array_filter($arrOrder));
					unset($arrOrder);
				}
			}
			
			// Get the file entries from the database
			$objFiles = \FilesModel::findMultipleByUuids($arrCSS);
			
			if ($objFiles !== null)
			{
				while ($objFiles->next())
				{
					if (file_exists(TL_ROOT . '/' . $objFiles->path))
					{
						$GLOBALS['TL_USER_CSS'][] = $objFiles->path . '|static';
					}
				}
			}

			unset($objFiles);
		}
	}
private static function addBackendCSS ( $ objLayout ) { $ arrCSS = \ StringUtil :: deserialize ( $ objLayout -> backendCSS ) ; if ( ! empty ( $ arrCSS ) && is_array ( $ arrCSS ) ) { // Consider the sorting order (see #5038) if ( $ objLayout -> orderBackendCSS != '' ) { $ tmp = \ StringUtil :: deserialize ( $ objLayout -> orderBackendCSS ) ; if ( ! empty ( $ tmp ) && is_array ( $ tmp ) ) { // Remove all values $ arrOrder = array_map ( function ( ) { } , array_flip ( $ tmp ) ) ; // Move the matching elements to their position in $arrOrder foreach ( $ arrCSS as $ k => $ v ) { if ( array_key_exists ( $ v , $ arrOrder ) ) { $ arrOrder [ $ v ] = $ v ; unset ( $ arrCSS [ $ k ] ) ; } } // Append the left-over style sheets at the end if ( ! empty ( $ arrCSS ) ) { $ arrOrder = array_merge ( $ arrOrder , array_values ( $ arrCSS ) ) ; } // Remove empty (unreplaced) entries $ arrCSS = array_values ( array_filter ( $ arrOrder ) ) ; unset ( $ arrOrder ) ; } } // Get the file entries from the database $ objFiles = \ FilesModel :: findMultipleByUuids ( $ arrCSS ) ; if ( $ objFiles !== null ) { while ( $ objFiles -> next ( ) ) { if ( file_exists ( TL_ROOT . '/' . $ objFiles -> path ) ) { $ GLOBALS [ 'TL_USER_CSS' ] [ ] = $ objFiles -> path . '|static' ; } } } unset ( $ objFiles ) ; } }
Adds the backend CSS of the layout to the backend template

@param LayoutModel $objLayout The layout object
Adds the backend CSS of the layout to the backend template