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_GoogleBase_Adminhtml_Googlebase_ItemsController
  • Mage_GoogleBase_Adminhtml_Googlebase_SelectionController
  • Mage_GoogleBase_Adminhtml_Googlebase_TypesController
  • Mage_GoogleBase_Block_Adminhtml_Captcha
  • Mage_GoogleBase_Block_Adminhtml_Items
  • Mage_GoogleBase_Block_Adminhtml_Items_Item
  • Mage_GoogleBase_Block_Adminhtml_Items_Product
  • Mage_GoogleBase_Block_Adminhtml_Store_Switcher
  • Mage_GoogleBase_Block_Adminhtml_Types
  • Mage_GoogleBase_Block_Adminhtml_Types_Edit
  • Mage_GoogleBase_Block_Adminhtml_Types_Edit_Attributes
  • Mage_GoogleBase_Block_Adminhtml_Types_Edit_Form
  • Mage_GoogleBase_Block_Adminhtml_Types_Grid
  • Overview
  • Package
  • Class
  • Tree
 1: <?php
 2: /**
 3:  * Magento
 4:  *
 5:  * NOTICE OF LICENSE
 6:  *
 7:  * This source file is subject to the Open Software License (OSL 3.0)
 8:  * that is bundled with this package in the file LICENSE.txt.
 9:  * It is also available through the world-wide-web at this URL:
10:  * http://opensource.org/licenses/osl-3.0.php
11:  * If you did not receive a copy of the license and are unable to
12:  * obtain it through the world-wide-web, please send an email
13:  * to license@magentocommerce.com so we can send you a copy immediately.
14:  *
15:  * DISCLAIMER
16:  *
17:  * Do not edit or add to this file if you wish to upgrade Magento to newer
18:  * versions in the future. If you wish to customize Magento for your
19:  * needs please refer to http://www.magentocommerce.com for more information.
20:  *
21:  * @category    Mage
22:  * @package     Mage_GoogleBase
23:  * @copyright   Copyright (c) 2012 Magento Inc. (http://www.magentocommerce.com)
24:  * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
25:  */
26: 
27: /**
28:  * Adminhtml Google Base Item Types Mapping grid
29:  *
30:  * @category   Mage
31:  * @package    Mage_GoogleBase
32:  * @author     Magento Core Team <core@magentocommerce.com>
33:  */
34: class Mage_GoogleBase_Block_Adminhtml_Types_Grid extends Mage_Adminhtml_Block_Widget_Grid
35: {
36:     public function __construct()
37:     {
38:         parent::__construct();
39:         $this->setId('types_grid');
40:         $this->setSaveParametersInSession(true);
41:         $this->setUseAjax(true);
42:     }
43: 
44:     protected function _prepareCollection()
45:     {
46:         $collection = Mage::getResourceModel('googlebase/type_collection')->addItemsCount();
47:         $this->setCollection($collection);
48:         parent::_prepareCollection();
49:         return $this;
50:     }
51: 
52:     protected function _prepareColumns()
53:     {
54:         $this->addColumn('attribute_set_name',
55:             array(
56:                 'header'    => $this->__('Attributes Set'),
57:                 'index'     => 'attribute_set_name',
58:         ));
59: 
60:         $this->addColumn('gbase_itemtype',
61:             array(
62:                 'header'    => $this->__('Google Base Item type'),
63:                 'index'     => 'gbase_itemtype',
64:         ));
65: 
66:         $this->addColumn('target_country',
67:             array(
68:                 'header'    => $this->__('Target Country'),
69:                 'width'     => '150px',
70:                 'index'     => 'target_country',
71:                 'renderer'  => 'googlebase/adminhtml_types_renderer_country',
72:                 'filter'    => false
73:         ));
74: 
75:         $this->addColumn('items_total',
76:             array(
77:                 'header'    => Mage::helper('catalog')->__('Total Qty Base Items'),
78:                 'width'     => '150px',
79:                 'index'     => 'items_total',
80:                 'filter'    => false
81:         ));
82: 
83:         return parent::_prepareColumns();
84:     }
85: 
86:     public function getRowUrl($row)
87:     {
88:         return $this->getUrl('*/*/edit', array('id'=>$row->getId(), '_current'=>true));
89:     }
90: 
91:     public function getGridUrl()
92:     {
93:         return $this->getUrl('*/*/grid', array('_current'=>true));
94:     }
95: }
96: 
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0