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_Paypal_Adminhtml_Paypal_ReportsController
  • Mage_Paypal_Block_Adminhtml_Settlement_Details
  • Mage_Paypal_Block_Adminhtml_Settlement_Details_Form
  • Mage_Paypal_Block_Adminhtml_Settlement_Report
  • Mage_Paypal_Block_Adminhtml_Settlement_Report_Grid
  • Mage_Paypal_Block_Adminhtml_System_Config_ApiWizard
  • Mage_Paypal_Block_Adminhtml_System_Config_Field_Country
  • Mage_Paypal_Block_Adminhtml_System_Config_Field_Hidden
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Expanded
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Group
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Hint
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Location
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Payment
  • Mage_Paypal_Block_Adminhtml_System_Config_Fieldset_Store
  • Mage_Paypal_Block_Adminhtml_System_Config_Payflowlink_Advanced
  • Mage_Paypal_Block_Adminhtml_System_Config_Payflowlink_Info
  • Mage_Paypal_Block_Express_Form
  • Mage_Paypal_Block_Express_Review
  • Mage_Paypal_Block_Express_Review_Billing
  • Mage_Paypal_Block_Express_Review_Details
  • Mage_Paypal_Block_Express_Review_Shipping
  • Mage_Paypal_Block_Express_Shortcut
  • Mage_Paypal_Block_Hosted_Pro_Form
  • Mage_Paypal_Block_Hosted_Pro_Iframe
  • Mage_Paypal_Block_Hosted_Pro_Info
  • Mage_Paypal_Block_Iframe
  • Mage_Paypal_Block_Logo
  • Mage_Paypal_Block_Payflow_Advanced_Form
  • Mage_Paypal_Block_Payflow_Advanced_Iframe
  • Mage_Paypal_Block_Payflow_Advanced_Info
  • Mage_Paypal_Block_Payflow_Link_Form
  • Mage_Paypal_Block_Payflow_Link_Iframe
  • Mage_Paypal_Block_Payflow_Link_Info
  • Mage_Paypal_Block_Payment_Info
  • Mage_Paypal_Block_Standard_Form
  • Mage_Paypal_Block_Standard_Redirect
  • Mage_Paypal_Controller_Express_Abstract
  • Mage_Paypal_ExpressController
  • Mage_Paypal_Helper_Data
  • Mage_Paypal_Helper_Hss
  • Mage_Paypal_HostedproController
  • Mage_Paypal_IpnController
  • Mage_Paypal_Model_Api_Abstract
  • Mage_Paypal_Model_Api_Nvp
  • Mage_Paypal_Model_Api_Standard
  • Mage_Paypal_Model_Cart
  • Mage_Paypal_Model_Cert
  • Mage_Paypal_Model_Config
  • Mage_Paypal_Model_Direct
  • Mage_Paypal_Model_Express
  • Mage_Paypal_Model_Express_Checkout
  • Mage_Paypal_Model_Hostedpro
  • Mage_Paypal_Model_Hostedpro_Request
  • Mage_Paypal_Model_Info
  • Mage_Paypal_Model_Ipn
  • Mage_Paypal_Model_Method_Agreement
  • Mage_Paypal_Model_Mysql4_Cert
  • Mage_Paypal_Model_Mysql4_Report_Settlement
  • Mage_Paypal_Model_Mysql4_Report_Settlement_Row
  • Mage_Paypal_Model_Mysql4_Report_Settlement_Row_Collection
  • Mage_Paypal_Model_Mysql4_Setup
  • Mage_Paypal_Model_Observer
  • Mage_Paypal_Model_Payflow_Request
  • Mage_Paypal_Model_Payflowadvanced
  • Mage_Paypal_Model_Payflowlink
  • Mage_Paypal_Model_Payflowpro
  • Mage_Paypal_Model_Payment_Transaction
  • Mage_Paypal_Model_Pro
  • Mage_Paypal_Model_Report_Settlement
  • Mage_Paypal_Model_Report_Settlement_Row
  • Mage_Paypal_Model_Resource_Cert
  • Mage_Paypal_Model_Resource_Report_Settlement
  • Mage_Paypal_Model_Resource_Report_Settlement_Row
  • Mage_Paypal_Model_Resource_Report_Settlement_Row_Collection
  • Mage_Paypal_Model_Resource_Setup
  • Mage_Paypal_Model_Session
  • Mage_Paypal_Model_Standard
  • Mage_Paypal_Model_System_Config_Backend_Cert
  • Mage_Paypal_Model_System_Config_Backend_Cron
  • Mage_Paypal_Model_System_Config_Backend_MerchantCountry
  • Mage_Paypal_Model_System_Config_Source_BuyerCountry
  • Mage_Paypal_Model_System_Config_Source_FetchingSchedule
  • Mage_Paypal_Model_System_Config_Source_Logo
  • Mage_Paypal_Model_System_Config_Source_MerchantCountry
  • Mage_Paypal_Model_System_Config_Source_PaymentActions
  • Mage_Paypal_Model_System_Config_Source_PaymentActions_Express
  • Mage_Paypal_Model_System_Config_Source_RequireBillingAddress
  • Mage_Paypal_Model_System_Config_Source_UrlMethod
  • Mage_Paypal_PayflowadvancedController
  • Mage_Paypal_PayflowController
  • Mage_Paypal_StandardController

Exceptions

  • Mage_Paypal_Exception
  • 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_Paypal
 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 paypal settlement reports grid block
 29:  *
 30:  * @category    Mage
 31:  * @package     Mage_Paypal
 32:  * @author      Magento Core Team <core@magentocommerce.com>
 33:  */
 34: class Mage_Paypal_Block_Adminhtml_Settlement_Report_Grid extends Mage_Adminhtml_Block_Widget_Grid
 35: {
 36:     /**
 37:      * Retain filter parameters in session
 38:      *
 39:      * @var bool
 40:      */
 41:     protected $_saveParametersInSession = true;
 42: 
 43:     /**
 44:      * Constructor
 45:      * Set main configuration of grid
 46:      */
 47:     public function __construct()
 48:     {
 49:         parent::__construct();
 50:         $this->setId('settlementGrid');
 51:         $this->setUseAjax(true);
 52:     }
 53: 
 54:     /**
 55:      * Prepare collection for grid
 56:      * @return Mage_Paypal_Block_Adminhtml_Settlement_Grid
 57:      */
 58:     protected function _prepareCollection()
 59:     {
 60:         $collection = Mage::getResourceModel('paypal/report_settlement_row_collection');
 61:         $this->setCollection($collection);
 62:         if (!$this->getParam($this->getVarNameSort())) {
 63:             $collection->setOrder('row_id', 'desc');
 64:         }
 65:         return parent::_prepareCollection();
 66:     }
 67: 
 68:     /**
 69:      * Prepare grid columns
 70:      * @return Mage_Paypal_Block_Adminhtml_Settlement_Grid
 71:      */
 72:     protected function _prepareColumns()
 73:     {
 74:         $settlement = Mage::getSingleton('paypal/report_settlement');
 75:         $this->addColumn('report_date', array(
 76:             'header'    => $settlement->getFieldLabel('report_date'),
 77:             'index'     => 'report_date',
 78:             'type'     => 'date'
 79:         ));
 80:         $this->addColumn('account_id', array(
 81:             'header'    => $settlement->getFieldLabel('account_id'),
 82:             'index'     => 'account_id'
 83:         ));
 84:         $this->addColumn('transaction_id', array(
 85:             'header'    => $settlement->getFieldLabel('transaction_id'),
 86:             'index'     => 'transaction_id'
 87:         ));
 88:         $this->addColumn('invoice_id', array(
 89:             'header'    => $settlement->getFieldLabel('invoice_id'),
 90:             'index'     => 'invoice_id'
 91:         ));
 92:         $this->addColumn('paypal_reference_id', array(
 93:             'header'    => $settlement->getFieldLabel('paypal_reference_id'),
 94:             'index'     => 'paypal_reference_id'
 95:         ));
 96:         $this->addColumn('transaction_event_code', array(
 97:             'header'    => $settlement->getFieldLabel('transaction_event'),
 98:             'index'     => 'transaction_event_code',
 99:             'type'      => 'options',
100:             'options'   => Mage::getModel('paypal/report_settlement_row')->getTransactionEvents()
101:         ));
102:         $this->addColumn('transaction_initiation_date', array(
103:             'header'    => $settlement->getFieldLabel('transaction_initiation_date'),
104:             'index'     => 'transaction_initiation_date',
105:             'type'      => 'datetime'
106:         ));
107:         $this->addColumn('transaction_completion_date', array(
108:             'header'    => $settlement->getFieldLabel('transaction_completion_date'),
109:             'index'     => 'transaction_completion_date',
110:             'type'      => 'datetime'
111:         ));
112:         $this->addColumn('gross_transaction_amount', array(
113:             'header'    => $settlement->getFieldLabel('gross_transaction_amount'),
114:             'index'     => 'gross_transaction_amount',
115:             'type'      => 'currency',
116:             'currency'  => 'gross_transaction_currency',
117:         ));
118:         $this->addColumn('fee_amount', array(
119:             'header'    => $settlement->getFieldLabel('fee_amount'),
120:             'index'     => 'fee_amount',
121:             'type'      => 'currency',
122:             'currency'  => 'gross_transaction_currency',
123:         ));
124:         return parent::_prepareColumns();
125:     }
126: 
127:     /**
128:      * Return grid URL
129:      * @return string
130:      */
131:     public function getGridUrl()
132:     {
133:          return $this->getUrl('*/*/grid');
134:     }
135: 
136:     /**
137:      * Return item view URL
138:      * @return string
139:      */
140:     public function getRowUrl($item)
141:     {
142:         return $this->getUrl('*/*/details', array('id' => $item->getId()));
143:     }
144: }
145: 
Magento 1.7.0.2 API documentation generated by ApiGen 2.8.0