protected function _authCheck($ticket)
	{
		$errnum = 0;
		$errmsg = '';

		if ($arr = $this->_fetch($this->_query("
			SELECT
				quickbooks_ticket_id
			FROM
				" . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_TICKETTABLE) . "
			WHERE
				ticket = '" . $this->_escape($ticket) . "' AND
				touch_datetime > '" . date('Y-m-d H:i:s', time() - QUICKBOOKS_TIMEOUT) . "' ", $errnum, $errmsg, 0, 1)))
		{
			$this->_query("
				UPDATE
					" . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_TICKETTABLE) . "
				SET
					touch_datetime = '" . date('Y-m-d H:i:s') . "'
				WHERE
					quickbooks_ticket_id = " . $arr['quickbooks_ticket_id'], $errnum, $errmsg);

			return true;
		}

		return false;
	}
protected function _authCheck($ticket)
	{
		$errnum = 0;
		$errmsg = '';

		if ($arr = $this->_fetch($this->_query("
			SELECT
				quickbooks_ticket_id
			FROM
				" . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_TICKETTABLE) . "
			WHERE
				ticket = '" . $this->_escape($ticket) . "' AND
				touch_datetime > '" . date('Y-m-d H:i:s', time() - QUICKBOOKS_TIMEOUT) . "' ", $errnum, $errmsg, 0, 1)))
		{
			$this->_query("
				UPDATE
					" . $this->_mapTableName(QUICKBOOKS_DRIVER_SQL_TICKETTABLE) . "
				SET
					touch_datetime = '" . date('Y-m-d H:i:s') . "'
				WHERE
					quickbooks_ticket_id = " . $arr['quickbooks_ticket_id'], $errnum, $errmsg);

			return true;
		}

		return false;
	}
protected function _authCheck ( $ ticket ) { $ errnum = 0 ; $ errmsg = '' ; if ( $ arr = $ this -> _fetch ( $ this -> _query ( "
			SELECT
				quickbooks_ticket_id
			FROM
				" . $ this -> _mapTableName ( QUICKBOOKS_DRIVER_SQL_TICKETTABLE ) . "
			WHERE
				ticket = '" . $ this -> _escape ( $ ticket ) . "' AND
				touch_datetime > '" . date ( 'Y-m-d H:i:s' , time ( ) - QUICKBOOKS_TIMEOUT ) . "' " , $ errnum , $ errmsg , 0 , 1 ) ) ) { $ this -> _query ( "
				UPDATE
					" . $ this -> _mapTableName ( QUICKBOOKS_DRIVER_SQL_TICKETTABLE ) . "
				SET
					touch_datetime = '" . date ( 'Y-m-d H:i:s' ) . "'
				WHERE
					quickbooks_ticket_id = " . $ arr [ 'quickbooks_ticket_id' ] , $ errnum , $ errmsg ) ; return true ; } return false ; }
Check to see if a log in session is valid

@param string $ticket
@return boolean
Check to see if a log in session is valid