src/UI/Image/Graph/Components.php
public static function setGrid( $object, $config )
	{
		$showMajor	= self::getConfigValue( $config, "show.major", FALSE );
		$showMinor	= self::getConfigValue( $config, "show.minor", FALSE );
		$object->show( $showMajor, $showMinor );
		$object->setWeight( self::getConfigValue( $config, "weight", 1 ) );
		$object->setLineStyle( self::getConfigValue( $config, "line.style", 'solid' ) );
		if( $showMajor || $showMinor )
		{
			$color1	= self::getConfigValue( $config, "color.1", FALSE );
			$color2	= self::getConfigValue( $config, "color.2", FALSE );
			$object->setColor( $color1, $color2 );
			$fill	= self::getConfigValue( $config, "fill.show", FALSE );
			if( $fill )
			{
				$color1	= self::getConfigValue( $config, "fill.color.1" );
				$color2	= self::getConfigValue( $config, "fill.color.2" );
				$object->setFill( $fill, $color1, $color2 );
			}
		}
	}
public static function setGrid( $object, $config )
	{
		$showMajor	= self::getConfigValue( $config, "show.major", FALSE );
		$showMinor	= self::getConfigValue( $config, "show.minor", FALSE );
		$object->show( $showMajor, $showMinor );
		$object->setWeight( self::getConfigValue( $config, "weight", 1 ) );
		$object->setLineStyle( self::getConfigValue( $config, "line.style", 'solid' ) );
		if( $showMajor || $showMinor )
		{
			$color1	= self::getConfigValue( $config, "color.1", FALSE );
			$color2	= self::getConfigValue( $config, "color.2", FALSE );
			$object->setColor( $color1, $color2 );
			$fill	= self::getConfigValue( $config, "fill.show", FALSE );
			if( $fill )
			{
				$color1	= self::getConfigValue( $config, "fill.color.1" );
				$color2	= self::getConfigValue( $config, "fill.color.2" );
				$object->setFill( $fill, $color1, $color2 );
			}
		}
	}
public static function setGrid ( $ object , $ config ) { $ showMajor = self :: getConfigValue ( $ config , "show.major" , FALSE ) ; $ showMinor = self :: getConfigValue ( $ config , "show.minor" , FALSE ) ; $ object -> show ( $ showMajor , $ showMinor ) ; $ object -> setWeight ( self :: getConfigValue ( $ config , "weight" , 1 ) ) ; $ object -> setLineStyle ( self :: getConfigValue ( $ config , "line.style" , 'solid' ) ) ; if ( $ showMajor || $ showMinor ) { $ color1 = self :: getConfigValue ( $ config , "color.1" , FALSE ) ; $ color2 = self :: getConfigValue ( $ config , "color.2" , FALSE ) ; $ object -> setColor ( $ color1 , $ color2 ) ; $ fill = self :: getConfigValue ( $ config , "fill.show" , FALSE ) ; if ( $ fill ) { $ color1 = self :: getConfigValue ( $ config , "fill.color.1" ) ; $ color2 = self :: getConfigValue ( $ config , "fill.color.2" ) ; $ object -> setFill ( $ fill , $ color1 , $ color2 ) ; } } }
Sets the Grid of a JpGraph Grid Object.
@access		public
@static
@param		Grid		$object			JpGraph Grid Object
@param		array		$config			Configuration Data
@return		void
Sets the Grid of a JpGraph Grid Object .