Class Mage_GoogleBase_Model_Service_Item

Description

Google Base Item Model

Located in /GoogleBase/Model/Service/Item.php (line 34)

Varien_Object
   |
   --Mage_GoogleBase_Model_Service
      |
      --Mage_GoogleBase_Model_Service_Item
Class Constant Summary
Variable Summary
Method Summary
Zend_Gdata_Gbase_ItemFeed delete ()
int gBaseDate2DateTime (string $gBaseDate)
Varien_Object getObject ()
Zend_Gdata_Gbase getService ([ $storeId = null])
Zend_Gdata_Gbase_ItemEntry insert ()
Zend_Gdata_Gbase_ItemEntry update ()
void _checkItem ()
string _cleanAtomAttribute (string $string)
string|null _getAttributeValue (string $attribute)
string _getItemType ()
string _normalizeString (string $string)
Mage_GoogleBase_Model_Service_Item _setAttribute (string $attribute, string $value, [string $type = 'text'])
Mage_GoogleBase_Model_Service_Item _setAttributePrice (string $attribute, mixed $value, [string $type = 'text'])
Variables
Mage_GoogleBase_Model_Item $_item = null (line 51)

Item instance to update entry data

  • access: protected
Varien_Object $_object = null (line 44)

Object instance to populate entry data

  • access: protected

Inherited Variables

Inherited from Mage_GoogleBase_Model_Service

Mage_GoogleBase_Model_Service::$_clientRegistryId
Methods
activate (line 183)

Publish item in Google Base

  • access: public
delete (line 158)

Delete Item from Google Base

  • access: public
Zend_Gdata_Gbase_ItemFeed delete ()
gBaseDate2DateTime (line 439)

Convert Google Base date format to unix timestamp Ex. 2008-12-08T16:57:23Z -> 2008-12-08 16:57:23

  • access: public
int gBaseDate2DateTime (string $gBaseDate)
  • string $gBaseDate: Google Base datetime
getItem (line 92)

$_item Getter

  • access: public
getObject (line 70)

$_object Getter

  • access: public
Varien_Object getObject ()
getService (line 102)

Return Store level Service Instance

  • access: public
Zend_Gdata_Gbase getService ([ $storeId = null])
  • $storeId

Redefinition of:
Mage_GoogleBase_Model_Service::getService()
Retutn Google Base Service Instance
hide (line 172)

Hide item in Google Base

  • access: public
insert (line 115)

Insert Item into Google Base

  • access: public
Zend_Gdata_Gbase_ItemEntry insert ()
setItem (line 81)

$_item Setter

  • access: public
setObject (line 59)

$_object Setter

  • access: public
Mage_GoogleBase_Model_Service_Item setObject (Varien_Object $object)
  • Varien_Object $object
update (line 142)

Update Item data in Google Base

  • access: public
Zend_Gdata_Gbase_ItemEntry update ()
_checkItem (line 410)

Check Item Instance

  • access: protected
void _checkItem ()
_cleanAtomAttribute (line 253)

Remove characters and words not allowed by Google Base in title and content (description).

(to avoid "Expected response code 200, got 400. Reason: There is a problem with the character encoding of this attribute")

  • access: protected
string _cleanAtomAttribute (string $string)
  • string $string
_getAttributeValue (line 385)

Return Google Base Item Attribute Value

  • return: Attribute value
  • access: protected
string|null _getAttributeValue (string $attribute)
  • string $attribute: Google Base attribute name
_getItemType (line 400)

Return assign item type or default item type

  • return: Google Base Item Type
  • access: protected
string _getItemType ()
_normalizeString (line 423)

Prepare Google Base attribute name before save

  • return: Normalized attribute name
  • access: protected
string _normalizeString (string $string)
  • string $string: Attribute name
_prepareEnrtyForSave (line 216)

Prepare Entry data and attributes before saving in Google Base

  • access: protected
Mage_GoogleBase_Model_Service_Item _prepareEnrtyForSave ()
_saveDraft (line 195)

Update item Control property

  • access: protected
Mage_GoogleBase_Model_Service_Item _saveDraft ([boolean $yes = true])
  • boolean $yes: Save as draft or not
_setAttribute (line 345)

Set Google Base Item Attribute

  • access: protected
Mage_GoogleBase_Model_Service_Item _setAttribute (string $attribute, string $value, [string $type = 'text'])
  • string $attribute: Google Base attribute name
  • string $value: Google Base attribute value
  • string $type: Google Base attribute type
_setAttributePrice (line 366)

Custom setter for 'price' attribute

  • access: protected
Mage_GoogleBase_Model_Service_Item _setAttributePrice (string $attribute, mixed $value, [string $type = 'text'])
  • string $attribute: Google Base attribute name
  • mixed $value: Fload price value
  • string $type: Google Base attribute type
_setUniversalData (line 263)

Assign values to universal attribute of entry

  • access: protected
Mage_GoogleBase_Model_Service_Item _setUniversalData ()

Inherited Methods

Inherited From Mage_GoogleBase_Model_Service

Mage_GoogleBase_Model_Service::getClient()
Mage_GoogleBase_Model_Service::getConfig()
Mage_GoogleBase_Model_Service::getDryRun()
Mage_GoogleBase_Model_Service::getGuestService()
Mage_GoogleBase_Model_Service::getService()
Mage_GoogleBase_Model_Service::_connect()
Class Constants
DEFAULT_ATTRIBUTE_TYPE = 'text' (line 37)
DEFAULT_ITEM_TYPE = 'products' (line 36)

Documentation generated on Fri, 11 Feb 2011 17:07:07 +0200 by phpDocumentor 1.4.3