当前位置: 首页>>代码示例>>PHP>>正文


PHP Auth_OpenID_getDefaultNegotiator函数代码示例

本文整理汇总了PHP中Auth_OpenID_getDefaultNegotiator函数的典型用法代码示例。如果您正苦于以下问题:PHP Auth_OpenID_getDefaultNegotiator函数的具体用法?PHP Auth_OpenID_getDefaultNegotiator怎么用?PHP Auth_OpenID_getDefaultNegotiator使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了Auth_OpenID_getDefaultNegotiator函数的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Auth_OpenID_GenericConsumer

 /**
  * This method initializes a new {@link Auth_OpenID_Consumer}
  * instance to access the library.
  *
  * @param Auth_OpenID_OpenIDStore $store This must be an object
  * that implements the interface in {@link Auth_OpenID_OpenIDStore}.
  * Several concrete implementations are provided, to cover most common use
  * cases.  For stores backed by MySQL, PostgreSQL, or SQLite, see
  * the {@link Auth_OpenID_SQLStore} class and its sublcasses.  For a
  * filesystem-backed store, see the {@link Auth_OpenID_FileStore} module.
  * As a last resort, if it isn't possible for the server to store
  * state at all, an instance of {@link Auth_OpenID_DumbStore} can be used.
  *
  * @param bool $immediate This is an optional boolean value.  It
  * controls whether the library uses immediate mode, as explained
  * in the module description.  The default value is False, which
  * disables immediate mode.
  */
 function Auth_OpenID_GenericConsumer($store)
 {
     $this->store = $store;
     $this->negotiator = Auth_OpenID_getDefaultNegotiator();
     $this->_use_assocs = is_null($this->store) ? false : true;
     $this->fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
     $this->session_types = Auth_OpenID_getAvailableSessionTypes();
 }
开发者ID:raphox,项目名称:php-openid,代码行数:26,代码来源:Consumer.php

示例2: Auth_OpenID_Server

	function Auth_OpenID_Server(&$store, $op_endpoint=null)
	{
		$this->store =& $store;
		$this->signatory =& new Auth_OpenID_Signatory($this->store);
		$this->encoder =& new Auth_OpenID_SigningEncoder($this->signatory);
		$this->decoder =& new Auth_OpenID_Decoder($this);
		$this->op_endpoint = $op_endpoint;
		$this->negotiator =& Auth_OpenID_getDefaultNegotiator();
	}
开发者ID:hoalangoc,项目名称:ftf,代码行数:9,代码来源:Server.php

示例3: Auth_OpenID_Server

 function Auth_OpenID_Server(&$store, $op_endpoint = null)
 {
     /*
      * Keyboard Monkeys modification:
      * Assigning the return value of new by reference is deprecated
      */
     $this->store = $store;
     $this->signatory = new Auth_OpenID_Signatory($this->store);
     $this->encoder = new Auth_OpenID_SigningEncoder($this->signatory);
     $this->decoder = new Auth_OpenID_Decoder($this);
     $this->op_endpoint = $op_endpoint;
     $this->negotiator = Auth_OpenID_getDefaultNegotiator();
 }
开发者ID:sdgdsffdsfff,项目名称:auth-center,代码行数:13,代码来源:Server.php

示例4: __construct

 function __construct($store, $op_endpoint = null)
 {
     $this->store = $store;
     $this->signatory = new Auth_OpenID_Signatory($this->store);
     $this->encoder = new Auth_OpenID_SigningEncoder($this->signatory);
     $this->decoder = new Auth_OpenID_Decoder($this);
     $this->op_endpoint = $op_endpoint;
     $this->negotiator = Auth_OpenID_getDefaultNegotiator();
 }
开发者ID:openid,项目名称:php-openid,代码行数:9,代码来源:Server.php

示例5: Auth_OpenID_GenericConsumer

 /**
  * This method initializes a new {@link Auth_OpenID_Consumer}
  * instance to access the library.
  *
  * @param Auth_OpenID_Store_OpenIDStore $store This must be an object
  * that implements the interface in {@link Auth_OpenID_Store_OpenIDStore}.
  * Several concrete implementations are provided, to cover most common use
  * cases.  For stores backed by MySQL, PostgreSQL, or SQLite, see
  * the {@link Auth_OpenID_Store_SQLStore} class and its sublcasses.  For a
  * filesystem-backed store, see the {@link Auth_OpenID_Store_FileStore} module.
  * As a last resort, if it isn't possible for the server to store
  * state at all, an instance of {@link Auth_OpenID_Store_DumbStore} can be used.
  *
  * @param bool $immediate This is an optional boolean value.  It
  * controls whether the library uses immediate mode, as explained
  * in the module description.  The default value is False, which
  * disables immediate mode.
  */
 function Auth_OpenID_GenericConsumer($store)
 {
     $this->store = $store;
     $this->negotiator = Auth_OpenID_getDefaultNegotiator();
     $this->_use_assocs = true;
     if (is_null($this->store) || is_a($this->store, 'Auth_OpenID_Store_DumbStore')) {
         $this->_use_assocs = false;
     }
     $this->fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
     $this->session_types = Auth_OpenID_getAvailableSessionTypes();
 }
开发者ID:hudx,项目名称:paypal-identity-demo,代码行数:29,代码来源:Consumer.php

示例6: __construct

 /**
  * This method initializes a new {@link Auth_OpenID_Consumer}
  * instance to access the library.
  *
  * @param Auth_OpenID_OpenIDStore $store This must be an object
  * that implements the interface in {@link Auth_OpenID_OpenIDStore}.
  * Several concrete implementations are provided, to cover most common use
  * cases.  For stores backed by MySQL, PostgreSQL, or SQLite, see
  * the {@link Auth_OpenID_SQLStore} class and its sublcasses.  For a
  * filesystem-backed store, see the {@link Auth_OpenID_FileStore} module.
  * As a last resort, if it isn't possible for the server to store
  * state at all, an instance of {@link Auth_OpenID_DumbStore} can be used.
  *
  * @param bool $immediate This is an optional boolean value.  It
  * controls whether the library uses immediate mode, as explained
  * in the module description.  The default value is False, which
  * disables immediate mode.
  */
 function __construct(&$store)
 {
     $this->store =& $store;
     $this->negotiator =& Auth_OpenID_getDefaultNegotiator();
     $this->_use_assocs = $this->store ? true : false;
     $this->fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
     $this->session_types = Auth_OpenID_getAvailableSessionTypes();
 }
开发者ID:korelstar,项目名称:vanilla,代码行数:26,代码来源:Consumer.php

示例7: __construct

 /**
  * This method initializes a new {@link Auth_OpenID_Consumer}
  * instance to access the library.
  *
  * @param Auth_OpenID_OpenIDStore $store This must be an object
  * that implements the interface in {@link Auth_OpenID_OpenIDStore}.
  * Several concrete implementations are provided, to cover most common use
  * cases.  For stores backed by MySQL, PostgreSQL, or SQLite, see
  * the {@link Auth_OpenID_SQLStore} class and its sublcasses.  For a
  * filesystem-backed store, see the {@link Auth_OpenID_FileStore} module.
  * As a last resort, if it isn't possible for the server to store
  * state at all, an instance of {@link Auth_OpenID_DumbStore} can be used.
  *
  * @param bool $immediate This is an optional boolean value.  It
  * controls whether the library uses immediate mode, as explained
  * in the module description.  The default value is False, which
  * disables immediate mode.
  */
 public function __construct($store)
 {
     $this->store = $store;
     $this->negotiator = Auth_OpenID_getDefaultNegotiator();
     $this->_use_assocs = is_null($this->store) ? false : true;
     if (get_class($this->store) == "Auth_OpenID_DumbStore") {
         $this->_use_assocs = false;
     }
     $this->fetcher = Auth_Yadis_Yadis::getHTTPFetcher();
     $this->session_types = Auth_OpenID_getAvailableSessionTypes();
 }
开发者ID:FreezyBee,项目名称:php-openid,代码行数:29,代码来源:Consumer.php


注:本文中的Auth_OpenID_getDefaultNegotiator函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。