src/system/modules/subcolumns_bootstrap_customizable/classes/Netzmacht/ColumnSet/ColumnSet.php
public static function prepareContainer($id)
	{
		// use array key exists so non existing column will researched
		if(array_key_exists('id', self::$container)) {
			return static::$container[$id];
		}

		$model = ColumnsetModel::findByPk($id);

		if($model === null)
		{
			static::$container[$id] = null;
			return null;
		}

		$sizes = deserialize($model->sizes, true);
		$container = array();

		foreach($sizes as $size)
		{
			$key = 'columnset_' . $size;
			$columns = deserialize($model->{$key}, true);

			foreach($columns as $index => $column) {
				if(isset($container[$index][0])) {
					$container[$index][0] .= ' ' . self::prepareSize($size, deserialize($column, true));
				}
				else {
					$container[$index][0] .= self::prepareSize($size, deserialize($column, true));
				}
			}
		}

		static::$container[$id] = $container;

		return $container;
	}
public static function prepareContainer($id)
	{
		// use array key exists so non existing column will researched
		if(array_key_exists('id', self::$container)) {
			return static::$container[$id];
		}

		$model = ColumnsetModel::findByPk($id);

		if($model === null)
		{
			static::$container[$id] = null;
			return null;
		}

		$sizes = deserialize($model->sizes, true);
		$container = array();

		foreach($sizes as $size)
		{
			$key = 'columnset_' . $size;
			$columns = deserialize($model->{$key}, true);

			foreach($columns as $index => $column) {
				if(isset($container[$index][0])) {
					$container[$index][0] .= ' ' . self::prepareSize($size, deserialize($column, true));
				}
				else {
					$container[$index][0] .= self::prepareSize($size, deserialize($column, true));
				}
			}
		}

		static::$container[$id] = $container;

		return $container;
	}
public static function prepareContainer ( $ id ) { // use array key exists so non existing column will researched if ( array_key_exists ( 'id' , self :: $ container ) ) { return static :: $ container [ $ id ] ; } $ model = ColumnsetModel :: findByPk ( $ id ) ; if ( $ model === null ) { static :: $ container [ $ id ] = null ; return null ; } $ sizes = deserialize ( $ model -> sizes , true ) ; $ container = array ( ) ; foreach ( $ sizes as $ size ) { $ key = 'columnset_' . $ size ; $ columns = deserialize ( $ model -> { $ key } , true ) ; foreach ( $ columns as $ index => $ column ) { if ( isset ( $ container [ $ index ] [ 0 ] ) ) { $ container [ $ index ] [ 0 ] .= ' ' . self :: prepareSize ( $ size , deserialize ( $ column , true ) ) ; } else { $ container [ $ index ] [ 0 ] .= self :: prepareSize ( $ size , deserialize ( $ column , true ) ) ; } } } static :: $ container [ $ id ] = $ container ; return $ container ; }
prepare the container which sub columns expects

@param int $id id of the columnset
@return array
prepare the container which sub columns expects