Class Services_Yadis_Discovery

Description

State management for discovery.

High-level usage pattern is to call .getNextService(discover) in order to find the next available service for this user for this session. Once a request completes, call .finish() to clean up the session state.

Located in /Yadis/Manager.php (line 159)


	
			
Method Summary
Services_Yadis_Discovery Services_Yadis_Discovery (Services_Yadis_PHPSession &$session, string $url, [string $session_key_suffix = null])
void cleanup ()
void getNextService (mixed $discover_cb, mixed &$fetcher)
Methods
Constructor Services_Yadis_Discovery (line 180)

Initialize a discovery object.

Services_Yadis_Discovery Services_Yadis_Discovery (Services_Yadis_PHPSession &$session, string $url, [string $session_key_suffix = null])
  • Services_Yadis_PHPSession $session: An object which implements the Services_Yadis_PHPSession API.
  • string $url: The URL on which to attempt discovery.
  • string $session_key_suffix: The optional session key suffix override.
cleanup (line 227)

Clean up Yadis-related services in the session and return the most-recently-attempted service from the manager, if one exists.

void cleanup ()
getNextService (line 198)

Return the next authentication service for the pair of user_input and session. This function handles fallback.

void getNextService (mixed $discover_cb, mixed &$fetcher)

Documentation generated on Mon, 07 Aug 2006 14:52:33 -0700 by phpDocumentor 1.2.3