本文整理汇总了PHP中Social::getConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP Social::getConfig方法的具体用法?PHP Social::getConfig怎么用?PHP Social::getConfig使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Social
的用法示例。
在下文中一共展示了Social::getConfig方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
public function init()
{
require_once _base_ . '/lib/lib.json.php';
$this->json = new Services_JSON();
//require_once(_base_.'/addons/social/config_docebo.php');
//require_once(_base_.'/addons/social/class.fblinkedtwit.php');
//$fblinkedtwit = new FbLinkedTwit();
//require_once(_base_.'/addons/social/functions.php');
$this->conf = Social::getConfig();
Social::includeTwitterLib();
}
示例2: Social
} else {
// user is already logged in, so connect the account with user
$social->connectAccount('twitter', $userInfo->screen_name);
Util::jump_to('index.php?r=lms/elearning/show');
die;
}
} else {
Util::jump_to('index.php?access_fail=3');
}
break;
case "linkedin_login":
$social = new Social();
$social->includeLinkedinLib();
require_once _base_ . '/lib/lib.preference.php';
$preference = new UserPreferences(getLogUserId());
$conf = $social->getConfig();
$user_pref = array();
if (Docebo::user()->isAnonymous()) {
$user_pref['linkedin_key'] = '';
$user_pref['linkedin_secret'] = '';
} else {
$user_pref['linkedin_key'] = $preference->getPreference('social.linkedin_key');
$user_pref['linkedin_secret'] = $preference->getPreference('social.linkedin_secret');
}
$already_auth = $social->checkLinkedinAuth($conf['linkedin_key'], $conf['linkedin_secret'], $user_pref['linkedin_key'], $user_pref['linkedin_secret']);
$sign_in = false;
if ($already_auth) {
$sign_in = true;
} else {
if (!isset($_GET['back'])) {
$social->linkedinRequestToken($conf['linkedin_key'], $conf['linkedin_secret']);