public function getPattern($dc)
	{
		$pattern = array();
		
		foreach ($GLOBALS['TL_CTP'] as $k=>$v)
		{
			foreach ($v as $kk=>$vv)
			{
					if (!$vv['unique'])
					{
						$pattern[$k][] = $kk;
					}
					
					elseif (\PatternModel::countByPidAndType($dc->activeRecord->pid, $kk) < 1 || $dc->activeRecord->type == $kk)
					{
						$pattern[$k][] = $kk;
					}
			}
		}
	
		return $pattern;
	}
public function getPattern($dc)
	{
		$pattern = array();
		
		foreach ($GLOBALS['TL_CTP'] as $k=>$v)
		{
			foreach ($v as $kk=>$vv)
			{
					if (!$vv['unique'])
					{
						$pattern[$k][] = $kk;
					}
					
					elseif (\PatternModel::countByPidAndType($dc->activeRecord->pid, $kk) < 1 || $dc->activeRecord->type == $kk)
					{
						$pattern[$k][] = $kk;
					}
			}
		}
	
		return $pattern;
	}
public function getPattern ( $ dc ) { $ pattern = array ( ) ; foreach ( $ GLOBALS [ 'TL_CTP' ] as $ k => $ v ) { foreach ( $ v as $ kk => $ vv ) { if ( ! $ vv [ 'unique' ] ) { $ pattern [ $ k ] [ ] = $ kk ; } elseif ( \ PatternModel :: countByPidAndType ( $ dc -> activeRecord -> pid , $ kk ) < 1 || $ dc -> activeRecord -> type == $ kk ) { $ pattern [ $ k ] [ ] = $ kk ; } } } return $ pattern ; }
Return content pattern as array

@param DataContainer $dc

@return array
Return content pattern as array