Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
Asset_Attribute_OAuth Class Reference
Inheritance diagram for Asset_Attribute_OAuth:
Asset_Attribute_HTTP_Request Asset_Attribute_Serialise Asset_Attribute MySource_Object

Public Member Functions

 __construct ($attribute=0, $value=NULL)
 
 paint ($prefix, $read_only=FALSE)
 
 process ($prefix)
 
 getRequestToken ($consumer_key='', $consumer_secret='')
 
 authorizeRedirect ($request_token=Array())
 
 authorize ($request_token=Array())
 
 getAccessToken ($authorized_token, $verifier, $token_secret)
 
 getUserDataAuthHeader ($url='', $access_token='', $access_token_secret='', $url_encode=TRUE)
 
 getErrors ()
 
 getType ()
 
 setConfig ($config_name, $config_value)
 
- Public Member Functions inherited from Asset_Attribute_HTTP_Request
 __construct ($attribute=0, $value=NULL)
 
 paint ($prefix, $read_only=FALSE)
 
 process ($prefix)
 
 setKeywordReplacements ($replacements)
 
 run ()
 
- Public Member Functions inherited from Asset_Attribute_Serialise
 Asset_Attribute_Serialise ($attributeid=0, $value=null)
 
 validateValue (&$value)
 
 getContent ()
 
- Public Member Functions inherited from Asset_Attribute
 Asset_Attribute ($attributeid=0, $value=NULL, $default_params=Array())
 
loadAttribute ($attributeid=0, $value=NULL, $default_params=Array())
 
 type ()
 
 paint ($prefix, $read_only=FALSE)
 
 paintEditParams ($prefix, $write_access=FALSE)
 
 processEditParams ($prefix)
 
 process ($prefix)
 
 validateValue (&$value)
 
 setValue (&$value)
 
 setEditParams (&$node)
 
 setEditParam ($field, $value)
 
 setParam ($field, $value)
 
 getContent ()
 
 getKeywordValue ($format='')
 
 exportToXML ()
 
 exportContentsToXML ()
 
- Public Member Functions inherited from MySource_Object
 MySource_Object ()
 
 __sleep ()
 
 __wakeup ()
 

Additional Inherited Members

- Data Fields inherited from Asset_Attribute
 $id = 0
 
 $name = ''
 
 $uniq = FALSE
 
 $description = ''
 
 $_params = Array()
 
 $_default_value = NULL
 
 $_edit_params = Array()
 
 $value = NULL
 
 $processed = FALSE
 
 $is_admin = FALSE
 
- Protected Member Functions inherited from Asset_Attribute_HTTP_Request
 _findDocumentEncoding ($response)
 
 _replaceKeywords (&$text)
 
 _performRequests ()
 
 _canCacheResponses ()
 
 _curlAddUrl ($url, $key)
 
 _curlExec ()
 
 _setCacheExpiry (&$response)
 
 _readCurlHeaders ($ch, $header)
 
- Protected Attributes inherited from Asset_Attribute_HTTP_Request
 $_res = Array()
 
 $_config = Array()
 

Detailed Description

Definition at line 32 of file oauth.inc.

Constructor & Destructor Documentation

__construct (   $attribute = 0,
  $value = NULL 
)

Constructor

Parameters
string$assetidthe asset id to be loaded

Definition at line 57 of file oauth.inc.

Member Function Documentation

authorize (   $request_token = Array())

get a request token authorized by service provider

Returns
Array public

Definition at line 644 of file oauth.inc.

authorizeRedirect (   $request_token = Array())

get a request token authorized by service provider redirecting user to the service provider's site

Parameters
String$request_tokenrequest token string
Returns
null public

Definition at line 626 of file oauth.inc.

getAccessToken (   $authorized_token,
  $verifier,
  $token_secret 
)

get an access token from service provider

Parameters
String$authorized_tokentoken authorized by service provider String $token_secret token secret provided by service provider
Returns
Array public

Definition at line 720 of file oauth.inc.

getErrors ( )

Get errors encountered during OAuth process

Parameters
none
Returns
Array public

Definition at line 914 of file oauth.inc.

getRequestToken (   $consumer_key = '',
  $consumer_secret = '' 
)

get request token from an oauth service provider

Parameters
String$consumer_keyconsumer key registered with the service provider String $consumer_secret consumer secret registered with the service provider
Returns
Array public

Definition at line 495 of file oauth.inc.

getType ( )

Get the type of this OAuth authentication - 2 legged or 3 legged

Parameters
none
Returns
String public

Definition at line 929 of file oauth.inc.

getUserDataAuthHeader (   $url = '',
  $access_token = '',
  $access_token_secret = '',
  $url_encode = TRUE 
)

Runs the remote requests.

Parameters
Boolean$url_encodewhether to url_encode the query part of the $url

public

Returns
void

Definition at line 852 of file oauth.inc.

paint (   $prefix,
  $read_only = FALSE 
)

Print the interface for filling in a value

Parameters
string$prefixprefix for the form elements
boolean$read_onlyare we just printing the value
Returns
void public

Definition at line 73 of file oauth.inc.

process (   $prefix)

Process the interface for filling in a value

Parameters
string$prefixprefix for the form elements
Returns
void public

Definition at line 254 of file oauth.inc.

setConfig (   $config_name,
  $config_value 
)

Set a config value

Parameters
String$config_namethe name of the config to set
mixed$config_valuethe value of the config to set

public

Definition at line 944 of file oauth.inc.


The documentation for this class was generated from the following file: