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_Livehandler_Model_Action_Abstract

Base class for action buttons, which are displayed at Magento Administrators Sales Order Grid.

Buttons are shown when clicking on 'Show Order Info' button.

Buttons can have onclick handler and desired action bound to it, when it is clicked.

Direct known subclasses

Eabi_Livehandler_Model_Action_Postoffice_Print, Eabi_Livehandler_Model_Action_Postoffice_Send
Abstract
Author: Matis
Located at Eabi/Livehandler/Model/Action/Abstract.php
Methods summary
abstract public boolean
# canDisplay( Mage_Sales_Model_Order $order )

Decides whether the button can be displayed for the current order

Decides whether the button can be displayed for the current order

Returns

boolean
true, when this button can be displayed for current order.
abstract public boolean|array
# performDesiredAction( Mage_Sales_Model_Order $order, array $params )

This function is called when current button is clicked and data along with it is sent to server.

Returned data should be in following format:

$result = array(
'messages' => array of messages, which are displayed as success messages to the user,
'errors' => array of error, which are displayed as errors to the user,
'needs_reload' => when set to true, whole page is reloaded when Order Manager is closed,
'is_action_error' => when set to true whole page is reloaded immediately,
);

This function is called when current button is clicked and data along with it is sent to server.

Returned data should be in following format:

$result = array(
'messages' => array of messages, which are displayed as success messages to the user,
'errors' => array of error, which are displayed as errors to the user,
'needs_reload' => when set to true, whole page is reloaded when Order Manager is closed,
'is_action_error' => when set to true whole page is reloaded immediately,
);

Parameters

$order
Mage_Sales_Model_Order
$order current order that is being displayed
$params
array
$params assoc array of POST params

Returns

boolean|array
when action failed, return false, otherwise return array.
public
# setPosition( integer $position )

Buttons are sorted by position in ascending order

Parameters

$position
integer
$position desired position
public integer
# getPosition( )

Buttons are sorted by position in ascending order

Buttons are sorted by position in ascending order

Returns

integer
current position
public string
# getCode( )

name of the button relative to eabi_livehandler/action_<button-name> or full magento model name

name of the button relative to eabi_livehandler/action_<button-name> or full magento model name

Returns

string
public string
# getLabel( )

Label printed on the action button

Label printed on the action button

Returns

string
public string
# getOnClick( )

Gets the onclick parameter for the current action button

Gets the onclick parameter for the current action button

Returns

string
javascript
public string
# getCssClass( )

Gets the class parameter for the current action button

Gets the class parameter for the current action button

Returns

string
public string
# getLongOnClick( )

Gets the Event.observe('click') javascript for current action button.

Gets the Event.observe('click') javascript for current action button.

Returns

string
javascript
protected string
# _toJson( mixed $input )

Wrapper function for json_encode for usage in heredoc

Wrapper function for json_encode for usage in heredoc

Parameters

$input
mixed
$input

Returns

string
json encoded string
Properties summary
protected integer $_position
#

Buttons are sorted by position in ascending order

Buttons are sorted by position in ascending order

protected string $_code
#

name of the button relative to eabi_livehandler/action_<button-name> or full magento model name

name of the button relative to eabi_livehandler/action_<button-name> or full magento model name

protected mixed $_label
#
protected mixed $_onClick
#
protected mixed $_longOnClick
#
protected mixed $_cssClass
#
DPD Eesti - Pakivedu.ee Shipping module for Magento API documentation generated by ApiGen 2.8.0