public function createCall($method, $params = array())
	{
		$params = array_values($params);

		if ($this->isAsync())
		{
			$output = "_gaq.push(['{$method}',";
			$output .= substr(json_encode($params), 1, -1);
			$output .= ']);';
		}
		else
		{
			$output = "pageTracker.{$method}(";
			$output .= substr(json_encode($params), 1, -1);
			$output .= ');';
		}

		return $output;
	}
public function createCall($method, $params = array())
	{
		$params = array_values($params);

		if ($this->isAsync())
		{
			$output = "_gaq.push(['{$method}',";
			$output .= substr(json_encode($params), 1, -1);
			$output .= ']);';
		}
		else
		{
			$output = "pageTracker.{$method}(";
			$output .= substr(json_encode($params), 1, -1);
			$output .= ');';
		}

		return $output;
	}
public function createCall ( $ method , $ params = array ( ) ) { $ params = array_values ( $ params ) ; if ( $ this -> isAsync ( ) ) { $ output = "_gaq.push(['{$method}'," ; $ output .= substr ( json_encode ( $ params ) , 1 , - 1 ) ; $ output .= ']);' ; } else { $ output = "pageTracker.{$method}(" ; $ output .= substr ( json_encode ( $ params ) , 1 , - 1 ) ; $ output .= ');' ; } return $ output ; }
Create a javascript function from the call parameters

@param   string  $method  The name of the function
@param   array   $params  The parameters for the call

@return  string  The created call

@since   1.0
Create a javascript function from the call parameters