Siteuser_Oauth_Twitter_Controller
extends Siteuser_Oauth_Controller
in package
Siteuser_Oauth_Twitter_Controller
Tags
Table of Contents
Properties
- $_allowedProperties : array<string|int, mixed>
- Allowed object properties
- $_config : array<string|int, mixed>
- Config
- $_propertiesValues : array<string|int, mixed>
- Properties values
- $_unlimitedProperties : bool
- Object has unlimited number of properties
Methods
- __construct() : mixed
- Constructor.
- addAllowedProperties() : self
- Add additional allowed properties
- addAllowedProperty() : self
- Add additional allowed property
- execute() : mixed
- Execute the business logic
- factory() : mixed
- Build oauth provider class by provider id
- set() : self
- Run when writing data to inaccessible properties
- setUnlimitedProperties() : self
- Set unlimitedProperties
Properties
$_allowedProperties
Allowed object properties
protected
array<string|int, mixed>
$_allowedProperties
= array('CONSUMER_KEY', 'CONSUMER_SECRET', 'REQUEST_TOKEN_URL', 'AUTHORIZE_URL', 'ACCESS_TOKEN_URL', 'CALLBACK_URL', 'ACCOUNT_DATA_URL', 'sUnauthorizedToken', 'sAccessToken', 'sVerifierCode', 'sAuthorizedRequestTokenSecret', 'oauth_token', 'oauth_verifier', 'oauth_token_secret')
$_config
Config
protected
array<string|int, mixed>
$_config
= array()
$_propertiesValues
Properties values
protected
array<string|int, mixed>
$_propertiesValues
= array()
$_unlimitedProperties
Object has unlimited number of properties
protected
bool
$_unlimitedProperties
= \FALSE
Methods
__construct()
Constructor.
public
__construct() : mixed
addAllowedProperties()
Add additional allowed properties
public
addAllowedProperties(array<string|int, mixed> $array) : self
Parameters
- $array : array<string|int, mixed>
-
array of properties' names
Return values
selfaddAllowedProperty()
Add additional allowed property
public
addAllowedProperty(string $property) : self
Parameters
- $property : string
-
property name
Return values
selfexecute()
Execute the business logic
public
execute() : mixed
factory()
Build oauth provider class by provider id
public
static factory([int $iOAuthProviderId = 0 ]) : mixed
Parameters
- $iOAuthProviderId : int = 0
-
provider id
set()
Run when writing data to inaccessible properties
public
set(string $property, string $value) : self
Parameters
- $property : string
-
property name
- $value : string
-
property value
Return values
selfsetUnlimitedProperties()
Set unlimitedProperties
public
setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
- $value : bool = TRUE
-
default TRUR