protected static function selectType($views, $type)
	{
		if(!is_array($views))
		{
			return $views;
		}

		if($type === FALSE)
		{
			return $views;
		}

		if(!$type)
		{
			return current($views);
		}

		if(!isset($views[$type]))
		{
			return null;
		}

		return $views[$type];
	}
protected static function selectType($views, $type)
	{
		if(!is_array($views))
		{
			return $views;
		}

		if($type === FALSE)
		{
			return $views;
		}

		if(!$type)
		{
			return current($views);
		}

		if(!isset($views[$type]))
		{
			return null;
		}

		return $views[$type];
	}
protected static function selectType ( $ views , $ type ) { if ( ! is_array ( $ views ) ) { return $ views ; } if ( $ type === FALSE ) { return $ views ; } if ( ! $ type ) { return current ( $ views ) ; } if ( ! isset ( $ views [ $ type ] ) ) { return null ; } return $ views [ $ type ] ; }
Selects view type when provided and available

@param array|object|bool $views List of views by type if available, single view class, or FALSE if no view found.
@param string $type Type of view to select.


@return object View object ready to be rendered..
Selects view type when provided and available