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 /Services/Yadis/Manager.php (line 345)


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

Initialize a discovery object.

Services_Yadis_Discovery Services_Yadis_Discovery ( &$session, string $url, [string $session_key_suffix = null], Services_Yadis_PHPSession $session)
  • 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.
  • &$session
cleanup (line 414)

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 384)

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

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

Documentation generated on Mon, 10 Sep 2007 13:29:29 -0700 by phpDocumentor 1.3.2