public function UCXF_Pane::execute in Extra Fields Checkout Pane 6.2
Executes an operation
Parameters
string $op:
Return value
mixed
1 call to UCXF_Pane::execute()
- UCXF_AddressPane::execute in class/
UCXF_AddressPane.class.php - Executes an operation
1 method overrides UCXF_Pane::execute()
- UCXF_AddressPane::execute in class/
UCXF_AddressPane.class.php - Executes an operation
File
- class/
UCXF_Pane.class.php, line 95 - Contains the UCXF_Pane class.
Class
- UCXF_Pane
- Base class for checkout panes and order panes implemented by Extra Fields Pane.
Code
public function execute($op) {
try {
// Replace hyphens with underscores
$op = str_replace('-', '_', $op);
switch ($this->uc_pane_type) {
case self::PANE_CHECKOUT:
switch ($op) {
// Supported operations for checkout
case 'view':
case 'process':
case 'review':
return $this
->{$this->uc_pane_type . '_' . $op}();
}
break;
case self::PANE_ORDER:
switch ($op) {
// Supported operations for order
case 'customer':
case 'view':
case 'edit_form':
case 'edit_theme':
case 'edit_process':
return $this
->{$this->uc_pane_type . '_' . $op}();
}
break;
}
return NULL;
} catch (UCXF_Exception $e) {
$e
->printMessage();
$e
->logError();
}
}