public function data($name, $options = null, $auth = null)
	{
		if ($this->options && !$options)
		{
			$options = $this->options;
		}

		if ($this->auth && !$auth)
		{
			$auth = $this->auth;
		}

		switch (strtolower($name))
		{
			case 'plus':
				return new Data\Plus($options, $auth);

			case 'picasa':
				return new Data\Picasa($options, $auth);

			case 'adsense':
				return new Data\Adsense($options, $auth);

			case 'calendar':
				return new Data\Calendar($options, $auth);

			default:
				return null;
		}
	}
public function data($name, $options = null, $auth = null)
	{
		if ($this->options && !$options)
		{
			$options = $this->options;
		}

		if ($this->auth && !$auth)
		{
			$auth = $this->auth;
		}

		switch (strtolower($name))
		{
			case 'plus':
				return new Data\Plus($options, $auth);

			case 'picasa':
				return new Data\Picasa($options, $auth);

			case 'adsense':
				return new Data\Adsense($options, $auth);

			case 'calendar':
				return new Data\Calendar($options, $auth);

			default:
				return null;
		}
	}
public function data ( $ name , $ options = null , $ auth = null ) { if ( $ this -> options && ! $ options ) { $ options = $ this -> options ; } if ( $ this -> auth && ! $ auth ) { $ auth = $ this -> auth ; } switch ( strtolower ( $ name ) ) { case 'plus' : return new Data \ Plus ( $ options , $ auth ) ; case 'picasa' : return new Data \ Picasa ( $ options , $ auth ) ; case 'adsense' : return new Data \ Adsense ( $ options , $ auth ) ; case 'calendar' : return new Data \ Calendar ( $ options , $ auth ) ; default : return null ; } }
Method to create Data objects

@param   string  $name     Name of property to retrieve
@param   array   $options  Google options object.
@param   Auth    $auth     The authentication client object.

@return  Data  Google data API object.

@since   1.0
Method to create Data objects