\LinkedinCallback
Synopsis
class LinkedinCallback
extends SocialIntegrationControllerBaseClass
implements
SocialIntegrationAPIInterface
{
- // members
- private static Int $number_of_friends_that_can_be_retrieved = 1200;
- public static Array $allowed_actions = ;
- private static String $consumer_key = NULL;
- private static String $consumer_secret = NULL;
- private static Array $permission_scope = 'r_emailaddress,r_network,w_messages';
- private static $zend_oauth_consumer_class = NULL;
- private static Array $zend_oauth_consumer_class_config = NULL;
- private $options;
- private $consumer;
- private $client;
- private $token;
- // methods
- public static void set_number_of_friends_that_can_be_retrieved()
- public static void get_number_of_friends_that_can_be_retrieved()
- public static void set_consumer_key()
- public static void get_consumer_key()
- public static void set_consumer_secret()
- public static void get_consumer_secret()
- public static void set_permission_scope()
- public static void get_permission_scope()
- protected Zend_Oauth_Consumer getConsumer()
- public void getResponse()
- public static void get_current_user()
- public static void get_updates()
- public static boolean send_message()
- public static Array get_list_of_friends()
- public static void is_valid_user()
- public void __construct()
- public void LinkedinConnect()
- public void connectUser()
- public void Connect()
- public void FinishLinkedin()
- public void Login()
- public void remove()
- public void RemoveLinkedin()
- protected Member updateUserFromLinkedinData()
- public void meondatabase()
- public void basicconcept()
- // Inherited methods from SocialIntegrationControllerBaseClass
- public static void get_default_avatar()
- public static void set_default_avatar()
- public static Boolean is_social_integration_api_class()
- public static Object get_login_button()
- public static String login_url()
- public static String connect_url()
- public static REDIRECTS! redirect_to_login_prompt()
- protected static String my_class_name()
- protected static String my_service_name()
- protected String my_security_form()
- public String Title()
- public String AbsoluteLink()
- public String Link()
- public static void is_valid_user()
- public void __construct()
- public void index()
- protected String returnURL()
- public void Tests()
- public void menondatabase()
- public void test()
Hierarchy
Members
private
- $client
- $consumer
- $consumer_key
—
String
Get from Linkedin - $consumer_secret
—
String
Get from Linkedin - $number_of_friends_that_can_be_retrieved
—
Int
Maximum number of followers that can be retrieved - $options
- $permission_scope
—
Array
Get from Linkedin - $token
- $zend_oauth_consumer_class
—
array
used to hold the Zend_Oauth_Consumer we keep one for each callback the default callback is nocallback - $zend_oauth_consumer_class_config
—
Array
when creating a new Zend_Oauth_Consumer we also return the configs To access the standard config use: self::$zend_oauth_consumer_class_config["nocallback"];
public
- $allowed_actions
—
Array
Standard SS variable determining what this controller can do
Methods
protected
- getConsumer() — holds an instance of the Zend_Oauth_Consumer class
- updateUserFromLinkedinData() — Saves the Linkedin data to the member and logs in the member if that has not been done yet.
public
- __construct()
- Connect() — Connects the current user.
- FinishLinkedin()
- LinkedinConnect() — easy access to the connection
- Login() — Works with the login form
- RemoveLinkedin()
- basicconcept()
- connectUser() — STEP 1 of the connecting process
- getResponse()
- get_consumer_key()
- get_consumer_secret()
- get_current_user() — returns an array of data if there is anything and NULL if there is no information.
- get_list_of_friends() — If we can not find enough followers, we add any user.
- get_number_of_friends_that_can_be_retrieved()
- get_permission_scope()
- get_updates()
- is_valid_user() — checks if a user exists
- meondatabase()
- remove()
- send_message() — returns true on success
- set_consumer_key()
- set_consumer_secret()
- set_number_of_friends_that_can_be_retrieved()
- set_permission_scope()
Inherited from SocialIntegrationControllerBaseClass
protected
- my_class_name() — The class being called (e.g. FacebookCallback::my_class_name should return FacebookCallback)
- my_security_form() — The name of the security form.
- my_service_name() — The current ClassName without the "Callback" portion.
- returnURL() — works out best Return URL
public
- AbsoluteLink() — returns Absolute URL to a link within this controller, by default it is the "Connect" link, because this controller always needs an action.
- Link() — returns relative URL to a link within this controller, by default it is the "Connect" link, because this controller always needs an action.
- Tests()
- Title() — returns Absolute URL to a link within this controller, by default it is the "Connect" link, because this controller always needs an action.
- connect_url() — Link to login form
- get_default_avatar()
- index() — you need to add an action
- is_valid_user()
- login_url()
- menondatabase()
- redirect_to_login_prompt() — redirects to login prompt, lets the user log in and returns to the returnURL specified.
- set_default_avatar()
- test()