示例#1
0
 /**
  * Constructor magic method.
  * Private because this class should not be called on its own.
  */
 public function __construct($args = array())
 {
     parent::__construct();
     $this->labels = $this->get_labels();
     $this->item = new WPIMItem();
     $this->set_query_args($args);
     $this->set_single();
     $this->use_currency_formats = array('price', 'amount', 'inventory_price', 'inventory_amount');
     $this->use_currency_formats = apply_filters('wpim_use_currency_formats', $this->use_currency_formats);
     $this->use_date_formats = array('date_updated', 'date_added', 'inventory_date_updated', 'inventory_date_added');
     $this->use_date_formats = apply_filters('wpim_use_date_formats', $this->use_date_formats);
 }
 /**
  * Constructor magic method.
  * Private because this class should not be called on its own.
  */
 public function __construct()
 {
     parent::__construct();
     self::$template = new WPIMTemplate();
 }