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 public
boolean
|
#
canDisplay( Mage_Sales_Model_Order $order )
Decides whether the button can be displayed for the 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, ); |
public
|
|
public
integer
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
protected
string
|
protected
integer
|
$_position |
|
#
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 |
protected
mixed
|
$_label |
|
|
protected
mixed
|
$_onClick |
|
|
protected
mixed
|
$_longOnClick |
|
|
protected
mixed
|
$_cssClass |
|