\SocialIntegrationControllerBaseClass
Synopsis
class SocialIntegrationControllerBaseClass
extends Controller
{
- // members
- private static String $default_avatar = "http://placeholder.it/32x32";
- // methods
- 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
Extends
- Controller
Members
private
- $default_avatar
—
String
default profile pic in case none is available
Methods
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
- __construct()
- 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()