Overview

Packages

  • currencysymbol
  • MAbout
  • Mage
    • Admin
    • Adminhtml
    • AdminNotification
    • Api
    • Api2
    • Authorizenet
    • Backup
    • Bundle
    • Captcha
    • Catalog
    • CatalogIndex
    • CatalogInventory
    • CatalogRule
    • CatalogSearch
    • Centinel
    • Checkout
    • Cms
    • Compiler
    • Connect
    • Contacts
    • Core
    • Cron
    • CurrencySymbol
    • Customer
    • Dataflow
    • Directory
    • DirtectPost
    • Downloadable
    • Eav
    • GiftMessage
    • GoogleAnalytics
    • GoogleBase
    • GoogleCheckout
    • ImportExport
    • Index
    • Install
    • Log
    • Media
    • Newsletter
    • Oauth
    • Page
    • PageCache
    • Paygate
    • Payment
    • Paypal
    • PaypalUk
    • Persistent
    • Poll
    • ProductAlert
    • Rating
    • Reports
    • Review
    • Rss
    • Rule
    • Sales
    • SalesRule
    • Sedfriend
    • Sendfriend
    • Shipping
    • Sitemap
    • Tag
    • Tax
    • Usa
    • Weee
    • Widget
    • Wishlist
    • XmlConnect
  • None
  • Phoenix
    • Moneybookers
  • PHP
  • Zend
    • Date
    • Mime
    • XmlRpc

Classes

  • Mage_Oauth_Adminhtml_Oauth_Admin_TokenController
  • Mage_Oauth_Adminhtml_Oauth_AuthorizeController
  • Mage_Oauth_Adminhtml_Oauth_AuthorizedTokensController
  • Mage_Oauth_Adminhtml_Oauth_ConsumerController
  • Mage_Oauth_AuthorizeController
  • Mage_Oauth_Block_Adminhtml_Oauth_Admin_Token
  • Mage_Oauth_Block_Adminhtml_Oauth_Admin_Token_Grid
  • Mage_Oauth_Block_Adminhtml_Oauth_Authorize
  • Mage_Oauth_Block_Adminhtml_Oauth_Authorize_Button
  • Mage_Oauth_Block_Adminhtml_Oauth_AuthorizedTokens
  • Mage_Oauth_Block_Adminhtml_Oauth_AuthorizedTokens_Grid
  • Mage_Oauth_Block_Adminhtml_Oauth_Consumer
  • Mage_Oauth_Block_Adminhtml_Oauth_Consumer_Edit
  • Mage_Oauth_Block_Adminhtml_Oauth_Consumer_Edit_Form
  • Mage_Oauth_Block_Adminhtml_Oauth_Consumer_Grid
  • Mage_Oauth_Block_Authorize
  • Mage_Oauth_Block_Authorize_Abstract
  • Mage_Oauth_Block_Authorize_Button
  • Mage_Oauth_Block_Authorize_ButtonBaseAbstract
  • Mage_Oauth_Block_AuthorizeBaseAbstract
  • Mage_Oauth_Block_Customer_Token_List
  • Mage_Oauth_Customer_TokenController
  • Mage_Oauth_Exception
  • Mage_Oauth_Helper_Data
  • Mage_Oauth_InitiateController
  • Mage_Oauth_Model_Consumer
  • Mage_Oauth_Model_Consumer_Validator_KeyLength
  • Mage_Oauth_Model_Nonce
  • Mage_Oauth_Model_Observer
  • Mage_Oauth_Model_Resource_Consumer
  • Mage_Oauth_Model_Resource_Consumer_Collection
  • Mage_Oauth_Model_Resource_Nonce
  • Mage_Oauth_Model_Resource_Nonce_Collection
  • Mage_Oauth_Model_Resource_Setup
  • Mage_Oauth_Model_Resource_Token
  • Mage_Oauth_Model_Resource_Token_Collection
  • Mage_Oauth_Model_Server
  • Mage_Oauth_Model_Token
  • Mage_Oauth_TokenController
  • Overview
  • Package
  • Class
  • Tree

Class Mage_Oauth_Model_Token

oAuth token model

Varien_Object
Extended by Mage_Core_Model_Abstract
Extended by Mage_Oauth_Model_Token
Package: Mage\Oauth
Category: Mage
Copyright: Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
License: Open Software License (OSL 3.0)
Author: Magento Core Team <core@magentocommerce.com>
Located at code/core/Mage/Oauth/Model/Token.php
Methods summary
protected
# _construct( )

Initialize resource model

Initialize resource model

protected Mage_Oauth_Model_Token
# _afterSave( )

"After save" actions

"After save" actions

Returns

Mage_Oauth_Model_Token

Overrides

Mage_Core_Model_Abstract::_afterSave()
public Mage_Oauth_Model_Token
# authorize( integer $userId, string $userType )

Authorize token

Authorize token

Parameters

$userId
integer
$userId Authorization user identifier
$userType
string
$userType Authorization user type

Returns

Mage_Oauth_Model_Token
public Mage_Oauth_Model_Token
# convertToAccess( )

Convert token to access type

Convert token to access type

Returns

Mage_Oauth_Model_Token
public Mage_Oauth_Model_Token
# createRequestToken( integer $consumerId, string $callbackUrl )

Generate and save request token

Generate and save request token

Parameters

$consumerId
integer
$consumerId Consumer identifier
$callbackUrl
string
$callbackUrl Callback URL

Returns

Mage_Oauth_Model_Token
public string
# getUserType( )

Get OAuth user type

Get OAuth user type

Returns

string

Throws

Exception
public string
# toString( string $format = '' )

Get string representation of token

Get string representation of token

Parameters

$format
string
$format

Returns

string
protected Mage_Oauth_Model_Consumer
# _beforeSave( )

Before save actions

Before save actions

Returns

Mage_Oauth_Model_Consumer

Overrides

Mage_Core_Model_Abstract::_beforeSave()
public array|boolean
# validate( )

Validate data

Validate data

Returns

array|boolean

Throw

Mage_Core_Exception|Exception Throw exception on fail validation
public Mage_Oauth_Model_Consumer
# getConsumer( )

Get Token Consumer

Get Token Consumer

Returns

Mage_Oauth_Model_Consumer
Methods inherited from Mage_Core_Model_Abstract
_afterDelete(), _afterDeleteCommit(), _afterLoad(), _beforeDelete(), _beforeLoad(), _clearData(), _clearReferences(), _getEventData(), _getResource(), _hasModelChanged(), _init(), _protectFromNonAdmin(), _setResourceModel(), afterCommitCallback(), afterLoad(), cleanModelCache(), clearInstance(), delete(), getCacheIdTags(), getCacheTags(), getCollection(), getEntityId(), getId(), getIdFieldName(), getResource(), getResourceCollection(), getResourceName(), isObjectNew(), load(), save(), setId()
Constants summary
string TYPE_REQUEST 'request'
#

Token types

Token types

string TYPE_ACCESS 'access'
#
integer LENGTH_TOKEN 32
#

Lengths of token fields

Lengths of token fields

integer LENGTH_SECRET 32
#
integer LENGTH_VERIFIER 32
#
string USER_TYPE_ADMIN 'admin'
#

Customer types

Customer types

string USER_TYPE_CUSTOMER 'customer'
#
Properties inherited from Mage_Core_Model_Abstract
$_cacheTag, $_dataSaveAllowed, $_eventObject, $_eventPrefix, $_isObjectNew, $_resource, $_resourceCollectionName, $_resourceName
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0