Overview

Namespaces

  • None
  • PHP

Classes

  • Eabi_DpdEE_Block_Adminhtml_Config_Form_Field_Country
  • Eabi_DpdEE_Block_Info_Payment
  • Eabi_DpdEE_Block_Invoice
  • Eabi_DpdEE_Block_Order_Courier
  • Eabi_DpdEE_Helper_Data
  • Eabi_DpdEE_Model_Api
  • Eabi_DpdEE_Model_Button_Courier
  • Eabi_DpdEE_Model_Config
  • Eabi_DpdEE_Model_Flat
  • Eabi_DpdEE_Model_Observer
  • Eabi_DpdEE_Model_Payment_Processor
  • Eabi_DpdEE_Model_Post
  • Eabi_DpdEE_Model_Source_Label_Position
  • Eabi_DpdEE_Model_Source_Service
  • Eabi_Livehandler_Adminhtml_LivehandlerController
  • Eabi_Livehandler_Adminhtml_RemoveController
  • Eabi_Livehandler_Block_Adminhtml_Config_Form_Field_Button
  • Eabi_Livehandler_Block_Adminhtml_Config_Form_Field_Remove
  • Eabi_Livehandler_Block_Email
  • Eabi_LiveHandler_Block_Footer
  • Eabi_Livehandler_Helper_Data
  • Eabi_Livehandler_Helper_Keypair
  • Eabi_Livehandler_IndexController
  • Eabi_Livehandler_Model_Abstract
  • Eabi_Livehandler_Model_Action_Abstract
  • Eabi_Livehandler_Model_Action_Postoffice_Print
  • Eabi_Livehandler_Model_Action_Postoffice_Send
  • Eabi_Livehandler_Model_Adminhtml_Gridmanager
  • Eabi_Livehandler_Model_Directory_Collection
  • Eabi_Livehandler_Model_Entry
  • Eabi_Livehandler_Model_File_Object
  • Eabi_Livehandler_Model_Mysql4_Entry
  • Eabi_Livehandler_Model_Mysql4_Entry_Collection
  • Eabi_Livehandler_Model_Ordergrid
  • Eabi_Livehandler_Model_System_Config_Backend_Button
  • Eabi_Postoffice_Adminhtml_PostofficeController
  • Eabi_Postoffice_Block_Adminhtml_Config_Form_Field_License
  • Eabi_Postoffice_Block_Adminhtml_Config_Form_Field_Remove
  • Eabi_Postoffice_Block_Config_Rebuildbutton
  • Eabi_Postoffice_Helper_Countrycode
  • Eabi_Postoffice_Helper_Data
  • Eabi_Postoffice_IndexController
  • Eabi_Postoffice_Model_Carrier_Abstract
  • Eabi_Postoffice_Model_Carrier_Result
  • Eabi_Postoffice_Model_Carriermodule
  • Eabi_Postoffice_Model_Mysql4_Carriermodule
  • Eabi_Postoffice_Model_Mysql4_Carriermodule_Collection
  • Eabi_Postoffice_Model_Mysql4_Office
  • Eabi_Postoffice_Model_Mysql4_Office_Collection
  • Eabi_Postoffice_Model_Observer
  • Eabi_Postoffice_Model_Office
  • Eabi_Postoffice_Model_Orderview
  • Eabi_Postoffice_Model_Source_Sendevent
  • Eabi_Postoffice_Model_Updater
  • Overview
  • Namespace
  • Class
  • Tree

Class Eabi_DpdEE_Model_Button_Courier

Renders button at the Magento Administrators Sales Order Grid, which allows to call DPD courier.

Button is displayed when order shipping method is DPD and parcel data is sent to DPD server.

Mage_Core_Model_Abstract
Extended by Eabi_Livehandler_Model_Abstract
Extended by Eabi_Livehandler_Model_Adminhtml_Gridmanager
Extended by Eabi_DpdEE_Model_Button_Courier
Author: Matis
See: Eabi_DpdEE_Block_Order_Courier
Located at Eabi/DpdEE/Model/Button/Courier.php
Methods summary
public
# _construct( )

Overrides

Eabi_Livehandler_Model_Adminhtml_Gridmanager::_construct()
protected string
# _getAdditionalJs( string $currentJs )

Parameters

$currentJs
string
$currentJs

Returns

string

Overrides

Eabi_Livehandler_Model_Adminhtml_Gridmanager::_getAdditionalJs()
public boolean|array
# service( array $params )

Sends DPD courier call request from press of Call Courier Button to server and returns the result in following format:

<pre> $result = array( 'messages' => array of successmessages (optional), 'errors' => array of error messages (optional), 'html' => html to be replaced in Courier call infobox, 'needs_reload' => false (not used), 'is_action_error' => false (not used), );

Sends DPD courier call request from press of Call Courier Button to server and returns the result in following format:

$result = array(
'messages' => array of successmessages (optional),
'errors' => array of error messages (optional),
'html' => html to be replaced in Courier call infobox,
'needs_reload' => false (not used),
'is_action_error' => false (not used),
);

Parameters

$params
array
$params posted Parameters from request

Returns

boolean|array

Overrides

Eabi_Livehandler_Model_Adminhtml_Gridmanager::service()
protected string
# _getTimeFrom( string $input, boolean $removeMinutesIfZero = true )

Gets Time from from timefrom-timetill construct

Gets Time from from timefrom-timetill construct

Parameters

$input
string
$input
$removeMinutesIfZero
boolean
$removeMinutesIfZero when true 900 will be converted to 9

Returns

string
protected string
# _getTimeTil( string $input, boolean $removeMinutesIfZero = true )

Gets Time till from timefrom-timetill construct

Gets Time till from timefrom-timetill construct

Parameters

$input
string
$input
$removeMinutesIfZero
boolean
$removeMinutesIfZero when true 900 will be converted to 9

Returns

string
protected Eabi_DpdEE_Helper_Data
# _getDpdHelper( )

Returns

Eabi_DpdEE_Helper_Data
protected Eabi_Postoffice_Helper_Data
# _getOfficeHelper( )

Returns

Eabi_Postoffice_Helper_Data
protected string
# _toJson( mixed $input )

Wrapper json_encode in order to make it easier to use in heredoc syntax

Wrapper json_encode in order to make it easier to use in heredoc syntax

Parameters

$input
mixed
$input

Returns

string

Overrides

Eabi_Livehandler_Model_Abstract::_toJson()
protected Eabi_Livehandler_Helper_Data
# _getEabi( )

Returns

Eabi_Livehandler_Helper_Data
Methods inherited from Eabi_Livehandler_Model_Adminhtml_Gridmanager
_encode(), addActionButton(), getJs(), removeActionButton()
Methods inherited from Eabi_Livehandler_Model_Abstract
getCss(), getHtml(), process()
Properties summary
protected string $_id 'eabi_dpdee__button_courier'
#
protected mixed $_shippingMethodCode
#
Properties inherited from Eabi_Livehandler_Model_Adminhtml_Gridmanager
$_actionButtons
DPD Eesti - Pakivedu.ee Shipping module for Magento API documentation generated by ApiGen 2.8.0