/**
  * Конструктор класса
  */
 public function __construct()
 {
     $this->basket = SimpleBasketOrder::create();
     $this->basketURL = get_option('simple_basket_order_page');
     $this->deliveryType = 0;
     $this->orderId = '';
 }
示例#2
0
 /**
  * Конструктор класса
  */
 public function __construct()
 {
     if (is_admin()) {
         add_action('wp_ajax_nopriv_getTime', array(&$this, 'getTime'));
         add_action('wp_ajax_getTime', array(&$this, 'getTime'));
         add_action('wp_ajax_nopriv_getData', array(&$this, 'getData'));
         add_action('wp_ajax_getData', array(&$this, 'getData'));
         add_action('wp_ajax_nopriv_add', array(&$this, 'add'));
         add_action('wp_ajax_add', array(&$this, 'add'));
     }
     add_action('init', array(&$this, 'init'));
     $this->basket = SimpleBasketOrder::create();
 }