public function getToolSessionDataFromRequest(RequestInterface $request)
	{
		// get params via post vars
		$toolSessionId    = $request->request('sessionnum');
		$toolSessionToken = $request->request('sessiontoken');

		// use headers as backup method to post vars
		if (!$toolSessionId && !$toolSessionToken)
		{
			$toolSessionId    = $request->headers('sessionnum');
			$toolSessionToken = $request->headers('sessiontoken');
		}

		// return id & token
		return compact('toolSessionId', 'toolSessionToken');
	}
public function getToolSessionDataFromRequest(RequestInterface $request)
	{
		// get params via post vars
		$toolSessionId    = $request->request('sessionnum');
		$toolSessionToken = $request->request('sessiontoken');

		// use headers as backup method to post vars
		if (!$toolSessionId && !$toolSessionToken)
		{
			$toolSessionId    = $request->headers('sessionnum');
			$toolSessionToken = $request->headers('sessiontoken');
		}

		// return id & token
		return compact('toolSessionId', 'toolSessionToken');
	}
public function getToolSessionDataFromRequest ( RequestInterface $ request ) { // get params via post vars $ toolSessionId = $ request -> request ( 'sessionnum' ) ; $ toolSessionToken = $ request -> request ( 'sessiontoken' ) ; // use headers as backup method to post vars if ( ! $ toolSessionId && ! $ toolSessionToken ) { $ toolSessionId = $ request -> headers ( 'sessionnum' ) ; $ toolSessionToken = $ request -> headers ( 'sessiontoken' ) ; } // return id & token return compact ( 'toolSessionId' , 'toolSessionToken' ) ; }
Get tool data from request

@return  bool  Result of test
Get tool data from request