\TwitterCallback
Synopsis
class TwitterCallback
extends SocialIntegrationControllerBaseClass
implements
SocialIntegrationAPIInterface
{
- // members
- private static Int $number_of_friends_that_can_be_retrieved = 1200;
- public static Array $allowed_actions = ;
- protected static String $consumer_secret = NULL;
- protected static String $consumer_key = NULL;
- protected static $zend_oauth_consumer_class = NULL;
- protected static Array $zend_oauth_consumer_class_config = NULL;
- private static Twitter $twitter_class = NULL;
- // 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_secret()
- public static void get_consumer_secret()
- public static void set_consumer_key()
- public static void get_consumer_key()
- private static Zend_Oauth_Consumer get_zend_oauth_consumer_class()
- private static Twitter get_twitter_class()
- public static void get_current_user()
- public static boolean send_message()
- public static Array get_list_of_friends()
- public false user_lookup()
- public static void is_valid_user()
- public static void get_updates()
- public void __construct()
- public void TwitterConnect()
- public void connectUser()
- public void Connect()
- public void FinishTwitter()
- public void loginUser()
- public void Login()
- public void remove()
- public void RemoveTwitter()
- protected Member updateUserFromTwitterData()
- public void meondatabase()
- // 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
- $number_of_friends_that_can_be_retrieved
—
Int
Maximum number of followers that can be retrieved - $twitter_class
—
Twitter
used to hold the twitter class
protected
- $consumer_key
—
String
Get from Twitter - $consumer_secret
—
String
Get from Twitter - $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
private
- get_twitter_class() — holds an instance of the Twitter Connect Class
- get_zend_oauth_consumer_class() — holds an instance of the Zend_Oauth_Consumer class
protected
- updateUserFromTwitterData() — Saves the Twitter data to the member and logs in the member if that has not been done yet.
public
- __construct()
- Connect() — Connects the current user.
- FinishTwitter() — cleans up the twitter connection Do we really need this?
- Login() — works with the login form
- RemoveTwitter()
- TwitterConnect() — easy access to the connection
- connectUser() — STEP 1 of the connecting process
- get_consumer_key()
- get_consumer_secret()
- get_current_user()
- get_list_of_friends() — If we can not find enough followers, we add any user.
- get_number_of_friends_that_can_be_retrieved()
- get_updates()
- is_valid_user() — checks if a user exists
- loginUser()
- meondatabase()
- remove()
- send_message() — returns true on success Message + Link can not be more than 140 characters! TODO: check how that works with "link making small techniques".
- set_consumer_key()
- set_consumer_secret()
- set_number_of_friends_that_can_be_retrieved()
- user_lookup() — checks if a user exists and returns an array of friend details if they exist.
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()