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


PHP BaseFacebook::__construct方法代码示例

本文整理汇总了PHP中BaseFacebook::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP BaseFacebook::__construct方法的具体用法?PHP BaseFacebook::__construct怎么用?PHP BaseFacebook::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BaseFacebook的用法示例。


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

示例1: __construct

 /**
  * Identical to the parent constructor, except that
  * we start a PHP session to store the user ID and
  * access token if during the course of execution
  * we discover them.
  *
  * @param Array $config the application configuration. Additionally
  * accepts "sharedSession" as a boolean to turn on a secondary
  * cookie for environments with a shared session (that is, your app
  * shares the domain with other apps).
  * @see BaseFacebook::__construct in facebook.php
  */
 public function __construct($config)
 {
     parent::__construct($config);
     if (!empty($config['sharedSession'])) {
         $this->initSharedSession();
     }
 }
开发者ID:m-godefroid76,项目名称:devrestofactory,代码行数:19,代码来源:facebook.php

示例2: __construct

 /**
  * Identical to the parent constructor, except that
  * we start a PHP session to store the user ID and
  * access token if during the course of execution
  * we discover them.
  *
  * @param Array $config the application configuration.
  * @see BaseFacebook::__construct in facebook.php
  */
 public function __construct($config)
 {
     if (!session_id()) {
         session_start();
     }
     parent::__construct($config);
 }
开发者ID:VLabsInc,项目名称:WordPressPlatforms,代码行数:16,代码来源:facebook.php

示例3: __construct

 /**
  * Constructor
  */
 public function __construct(array $parameters = array(), Session $session, $logger = null)
 {
     $this->session = $session;
     $this->logger = $logger;
     $this->parameters = array_merge($this->getDefaultParameters(), $parameters);
     if (!$this->hasParameter('app_id')) {
         throw new \Exception('You need to set the "app_id" parameter');
     }
     if (!$this->hasParameter('secret')) {
         throw new \Exception('You need to set the "secret" parameter');
     }
     if ($this->hasParameter('timeout')) {
         self::$CURL_OPTS[CURLOPT_TIMEOUT] = $this->getParameter('timeout');
     }
     if ($this->hasParameter('connect_timeout')) {
         self::$CURL_OPTS[CURLOPT_CONNECTTIMEOUT] = $this->getParameter('connect_timeout');
     }
     if ($this->hasParameter('proxy')) {
         self::$CURL_OPTS[CURLOPT_PROXY] = $this->getParameter('proxy');
     }
     $baseParameters = array('appId' => isset($this->parameters['app_id']) ? $this->parameters['app_id'] : null, 'secret' => isset($this->parameters['secret']) ? $this->parameters['secret'] : null);
     $this->session->start();
     //we want to avoir the session_start in parent::__construct()
     \BaseFacebook::__construct($baseParameters);
 }
开发者ID:emgiezet,项目名称:faceboo,代码行数:28,代码来源:Facebook.php

示例4: __construct

 /**
  * @param array $config the application configuration.
  * @see BaseFacebook::__construct in facebook.php
  */
 public function __construct($config, Session $session, $prefix = self::PREFIX)
 {
     $this->session = $session;
     $this->prefix = $prefix;
     $this->session->start();
     parent::__construct($config);
 }
开发者ID:hykz,项目名称:Depot,代码行数:11,代码来源:FacebookSessionPersistence.php

示例5: __construct

 /**
  * Identical to the parent constructor, except that
  * we start a PHP session to store the user ID and
  * access token if during the course of execution
  * we discover them.
  *
  * @param Array $config the application configuration.
  * @see BaseFacebook::__construct in facebook.php
  */
 public function __construct($config)
 {
     if (!session_id()) {
         SessionCache::init();
     }
     parent::__construct($config);
 }
开发者ID:dgw,项目名称:ThinkUp,代码行数:16,代码来源:facebook.php

示例6: __construct

 /**
  * Identical to the parent constructor, except that
  * we start a PHP session to store the user ID and
  * access token if during the course of execution
  * we discover them.
  *
  * @param Array $config the application configuration.
  * @see BaseFacebook::__construct in facebook.php
  */
 public function __construct($config)
 {
     parent::__construct($config);
     if (!isset($_SESSION)) {
         session_start();
     }
 }
开发者ID:prabudiss,项目名称:knovid_v2,代码行数:16,代码来源:facebook.php

示例7: __construct

  /**
   * Identical to the parent constructor, except that
   * we start a PHP session to store the user ID and
   * access token if during the course of execution
   * we discover them.
   *
   * @param Array $config the application configuration.
   * @see BaseFacebook::__construct in facebook.php
   */
  public function __construct($config) {
    parent::__construct($config);
    if (!isset($_SESSION)) {
		session_name('TGP_Homework');
		session_set_cookie_params(31556926);
		session_start();
    }
  }
开发者ID:nbcutech,项目名称:o3drupal,代码行数:17,代码来源:facebook.php

示例8: __construct

 /**
  * Identical to the parent constructor, except that
  * we start a PHP session to store the user ID and
  * access token if during the course of execution
  * we discover them.
  *
  * @param Array $config the application configuration. Additionally
  * accepts "sharedSession" as a boolean to turn on a secondary
  * cookie for environments with a shared session (that is, your app
  * shares the domain with other apps).
  * @see BaseFacebook::__construct in base_facebook.php
  */
 public function __construct(array $config, &$ssp_state)
 {
     $this->ssp_state =& $ssp_state;
     parent::__construct($config);
     if (!empty($config['sharedSession'])) {
         $this->initSharedSession();
     }
 }
开发者ID:tractorcow,项目名称:simplesamlphp,代码行数:20,代码来源:Facebook.php

示例9: __construct

 public function __construct($config, $logCallback = null)
 {
     if (is_callable($logCallback)) {
         $this->logCallback = $logCallback;
     }
     parent::__construct($config);
     // TODO: Change the autogenerated stub
 }
开发者ID:NaszvadiG,项目名称:ImageCMS,代码行数:8,代码来源:Facebook.php

示例10: __construct

 /**
  * Sets default application parameters - FB application ID,
  * secure key and cookie support.
  *
  * @return null
  */
 public function __construct()
 {
     $oConfig = oxRegistry::getConfig();
     $aFbConfig["appId"] = $oConfig->getConfigParam("sFbAppId");
     $aFbConfig["secret"] = $oConfig->getConfigParam("sFbSecretKey");
     $aFbConfig["cookie"] = true;
     BaseFacebook::__construct($aFbConfig);
 }
开发者ID:Crease29,项目名称:oxideshop_ce,代码行数:14,代码来源:oxfb.php

示例11: __construct

 /**
  * Identical to the parent constructor, except that
  * we start a PHP session to store the user ID and
  * access token if during the course of execution
  * we discover them.
  *
  * @param Array $config the application configuration.
  * @see BaseFacebook::__construct in facebook.php
  */
 public function __construct($config)
 {
     if (!session_id()) {
         //  		session_start();
         //need this for Zend Framework
         Zend_Session::start();
     }
     parent::__construct($config);
 }
开发者ID:hongtien510,项目名称:appsdaugia,代码行数:18,代码来源:Facebook.php

示例12: __construct

 /**
  * Identical to the parent constructor, except that
  * we start a PHP session to store the user ID and
  * access token if during the course of execution
  * we discover them.
  *
  * @param Array $config the application configuration.
  * @see BaseFacebook::__construct in facebook.php
  */
 public function __construct($config)
 {
     if (!session_id()) {
         session_start();
     }
     $config['appId'] = '416398375038503';
     $config['secret'] = 'f707a5d557ddb60205a5b8f535e56bac';
     parent::__construct($config);
 }
开发者ID:anjaneyareddy,项目名称:oet,代码行数:18,代码来源:Facebook.php

示例13: __construct

 /**
  * @param Request                      $request
  * @param FacebookPersistenceInterface $persistence
  * @param array                        $config
  */
 public function __construct(Request $request, FacebookPersistenceInterface $persistence = null, $config)
 {
     $this->setAppId($config['appId']);
     if ($persistence) {
         $this->persistence = $persistence;
         $this->persistence->init($this);
     }
     parent::__construct($request, $config);
 }
开发者ID:znanylekarz,项目名称:facebook-php-sdk,代码行数:14,代码来源:facebook.php

示例14: __construct

 /**
  * Identical to the parent constructor, except that
  * we start a PHP session to store the user ID and
  * access token if during the course of execution
  * we discover them.
  *
  * @param Array              $config the application configuration.
  * @param \OperaCore\Session Session object
  *
  * @see BaseFacebook::__construct in facebook.php
  */
 public function __construct($config)
 {
     if (isset($config['session_container'])) {
         $this->session = $config['session_container'];
     } else {
         $this->session =& $_SESSION;
     }
     parent::__construct($config);
 }
开发者ID:natxet,项目名称:operacore,代码行数:20,代码来源:Facebook.php

示例15: __construct

 public function __construct($config)
 {
     if (!session_id()) {
         session_start();
     }
     $this->client_id = $config['appId'];
     $this->client_secret = $config['secret'];
     $this->callback_url = $config['callback_url'];
     parent::__construct($config);
 }
开发者ID:kissthink,项目名称:ym_oauth,代码行数:10,代码来源:Facebook_oauth.php


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