ot_total Class Reference

Inherits InterfaceModule, and InterfaceAcaOrderTotal.

List of all members.

Public Member Functions

Public Attributes


Detailed Description

Definition at line 11 of file ot_total.php.


Constructor & Destructor Documentation

ot_total::__construct (  ) 

Definition at line 15 of file ot_total.php.

00015                                 {
00016     $this->code = __CLASS__;
00017     $this->title = __('module order total total title');
00018     $this->description = __('module order total total description');
00019     $this->sort_order = (defined('MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER')) ? MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER : 5;
00020     $this->enabled = true;
00021 
00022     $this->output = array();
00023   }


Member Function Documentation

ot_total::check (  ) 

Definition at line 36 of file ot_total.php.

00036                           {
00037     if (!isset($this->_check)) {
00038       $check_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_ORDER_TOTAL_TOTAL_STATUS'");
00039       $this->_check = tep_db_num_rows($check_query);
00040     }
00041 
00042     return $this->_check;
00043   }

ot_total::install (  ) 

Definition at line 49 of file ot_total.php.

00049                             {
00050     tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Ordre de tri', 'MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER', '4', 'Ordre de tri pour l\'affichage (Le plus petit nombre est montré en premier).', '6', '2', now())");
00051   }

ot_total::keys (  ) 

Definition at line 45 of file ot_total.php.

Referenced by remove().

00045                          {
00046     return array('MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER');
00047   }

ot_total::process (  ) 

Definition at line 25 of file ot_total.php.

00025                             {
00026     global $order, $currencies;
00027 
00028     $this->output[] = array('title' => $this->title . ':',
00029                             'text_ht' => '<strong>' . $currencies->format($order->info['total_ht'], true, $order->info['currency'], $order->info['currency_value']) . '</strong>',
00030                             'text' => '<strong>' . $currencies->format($order->info['total'], true, $order->info['currency'], $order->info['currency_value']) . '</strong>',
00031                             'value_ht' => $order->info['total_ht'],
00032                             'value' => round($order->info['total'],2)
00033                             );
00034   }

ot_total::remove (  ) 

Definition at line 53 of file ot_total.php.

00053                            {
00054     tep_db_query("delete from " . TABLE_CONFIGURATION . " where configuration_key in ('" . implode("', '", $this->keys()) . "')");
00055   }


Member Data Documentation

ot_total::$output

Definition at line 13 of file ot_total.php.

ot_total::$title

Definition at line 13 of file ot_total.php.


The documentation for this class was generated from the following file: