/**
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_rating_reviews', 'tsmart_rating_review_id', $db);
     $this->setPrimaryKey('tsmart_rating_review_id');
     $this->setObligatoryKeys('comment');
     $this->setLoggable();
 }
Beispiel #2
0
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_calcs', 'tsmart_calc_id', $db);
     $this->setObligatoryKeys('calc_name');
     $this->setObligatoryKeys('calc_kind');
     $this->setLoggable();
 }
Beispiel #3
0
 /**
  *
  * @author Max Milbers
  * @param $db Class constructor; connect to the database
  *
  */
 function __construct($db)
 {
     parent::__construct('#__tsmart_invoices', 'tsmart_invoice_id', $db);
     $this->setUniqueName('invoice_number');
     $this->setLoggable();
     $this->setTableShortCut('inv');
 }
Beispiel #4
0
 function __construct($db)
 {
     parent::__construct('#__tsmart_products', 'tsmart_product_id', $db);
     $this->setUniqueName('product_name');
     $this->setTranslatable(array('product_name'));
     $this->setLoggable();
     $this->setOrderable();
 }
 /**
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_manufacturercategories', 'tsmart_manufacturercategories_id', $db);
     $this->setUniqueName('mf_category_name');
     $this->setLoggable();
     $this->setTranslatable(array('mf_category_name', 'mf_category_desc'));
     $this->setSlug('mf_category_name');
 }
Beispiel #6
0
 /**
  * @param $db Class constructor; connect to the database
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_orderstates', 'tsmart_orderstate_id', $db);
     $this->setObligatoryKeys('order_status_code');
     $this->setObligatoryKeys('order_status_name');
     $this->setObligatoryKeys('order_stock_handle');
     $this->setLoggable();
 }
 /**
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_product_customfields', 'tsmart_customfield_id', $db);
     $this->setPrimaryKey('tsmart_product_id');
     // $this->setSecondaryKey('tsmart_customfield_id');
     $this->setLoggable();
     $this->setOrderable();
 }
Beispiel #8
0
 /**
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_medias', 'tsmart_media_id', $db);
     //In a VmTable the primary key is the same as the _tbl_key and therefore not needed
     // 		$this->setPrimaryKey('tsmart_media_id');
     //		$this->setUniqueName('file_title');
     $this->setLoggable();
 }
Beispiel #9
0
 /**
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_ratings', 'tsmart_rating_id', $db);
     //In a VmTable the primary key is the same as the _tbl_key and therefore not needed
     $this->setPrimaryKey('tsmart_rating_id');
     //		$this->setObligatoryKeys('tsmart_product_id');
     $this->setLoggable();
     $this->setTableShortCut('r');
 }
 /**
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_manufacturers', 'tsmart_manufacturer_id', $db);
     $this->setUniqueName('mf_name');
     $this->setLoggable();
     $this->setTranslatable(array('mf_name', 'mf_email', 'mf_desc', 'mf_url'));
     $this->setSlug('mf_name');
     $this->setTableShortCut('m');
 }
 /**
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_paymentmethods', 'tsmart_paymentmethod_id', $db);
     $this->setObligatoryKeys('payment_jplugin_id');
     $this->setObligatoryKeys('payment_name');
     $this->setLoggable();
     $this->setTranslatable(array('payment_name', 'payment_desc'));
     $this->setSlug('payment_name');
     // 	$this->setUniqueName('ordering');
 }
Beispiel #12
0
 /**
  * @author  Patrick Kohl
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_customs', 'tsmart_custom_id', $db);
     $this->_cidName = 'tsmart_custom_id';
     $this->setUniqueName('custom_title');
     $this->setObligatoryKeys('field_type');
     $this->setLoggable();
     $this->setOrderable('ordering', false);
     $this->setParameterable('custom_params', array());
 }
Beispiel #13
0
 /**
  * @param $db Class constructor; connect to the database
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_userfields', 'tsmart_userfield_id', $db);
     parent::showFullColumns();
     $this->setPrimaryKey('tsmart_userfield_id');
     $this->setUniqueName('name');
     $this->setObligatoryKeys('title');
     $this->setLoggable();
     $this->setOrderable('ordering', false);
     $this->_xParams = 'userfield_params';
 }
Beispiel #14
0
 /**
  * Class contructor
  *
  * @author Max Milbers
  * @param $db database connector object
  */
 public function __construct($db)
 {
     parent::__construct('#__tsmart_categories', 'tsmart_category_id', $db);
     //In a VmTable the primary key is the same as the _tbl_key and therefore not needed
     // 		$this->setPrimaryKey('tsmart_category_id');
     $this->setObligatoryKeys('category_name');
     $this->setLoggable();
     $this->setTranslatable(array('category_name', 'category_description', 'metadesc', 'metakey', 'customtitle'));
     $this->setSlug('category_name');
     $this->setTableShortCut('c');
 }
 /**
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_shipmentmethods', 'tsmart_shipmentmethod_id', $db);
     // we can have several time the same shipment name. It is the vendor problem to set up correctly his shipment rate.
     // $this->setUniqueName('shipment_name');
     $this->setObligatoryKeys('shipment_jplugin_id');
     $this->setObligatoryKeys('shipment_name');
     $this->setLoggable();
     $this->setTranslatable(array('shipment_name', 'shipment_desc'));
     $this->setSlug('shipment_name');
 }
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_shoppergroups', 'tsmart_shoppergroup_id', $db);
     $this->setUniqueName('shopper_group_name');
     $this->setLoggable();
     $this->setTableShortCut('sg');
     $myfields = array('basePrice', 'variantModification', 'basePriceVariant', 'basePriceWithTax', 'basePriceWithTax', 'discountedPriceWithoutTax', 'salesPrice', 'priceWithoutTax', 'salesPriceWithDiscount', 'discountAmount', 'taxAmount', 'unitPrice');
     $varsToPushParam = array('show_prices' => array(0, 'int'));
     foreach ($myfields as $field) {
         $varsToPushParam[$field] = array(1, 'int');
         $varsToPushParam[$field . 'Text'] = array(1, 'int');
         $varsToPushParam[$field . 'Rounding'] = array(-1, 'int');
     }
     $this->setParameterable('price_display', $varsToPushParam);
 }
 /**
  * @param $db Class constructor; connect to the database
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_userfield_values', 'tsmart_userfield_value_id', $db);
     $this->setPrimaryKey('tsmart_userfield_id');
 }
 /**
  * @param $db Class constructor; connect to the database
  */
 function __construct($db)
 {
     parent::__construct('#__tsmart_order_histories', 'tsmart_order_history_id', $db);
     $this->setObligatoryKeys('tsmart_order_id');
     $this->setLoggable();
 }
Beispiel #19
0
 /**
  * Constructor for report table class
  * @param $db Database connector object
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_orders', 'tsmart_order_id', $db);
 }
 /**
  * @param $db Class constructor; connect to the database
  */
 function __construct($db)
 {
     parent::__construct('#__tsmart_order_calc_rules', 'tsmart_order_calc_rule_id', $db);
     $this->setLoggable();
 }
Beispiel #21
0
 /**
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_countries', 'tsmart_country_id', $db);
     $this->setLoggable();
     $this->setOrderable('ordering', false);
 }
Beispiel #22
0
 /**
  * @author RickG
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_states', 'tsmart_state_id', $db);
     $this->setUniqueName('state_name');
     $this->setLoggable();
 }
Beispiel #23
0
 /**
  * @author RickG, Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_coupons', 'tsmart_coupon_id', $db);
     $this->setObligatoryKeys('coupon_code');
     $this->setLoggable();
 }
Beispiel #24
0
 /**
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_rating_votes', 'tsmart_rating_vote_id', $db);
     $this->setPrimaryKey('tsmart_rating_vote_id');
     $this->setLoggable();
 }
Beispiel #25
0
 /**
  * @author Max Milbers
  * @param JDataBase $db
  */
 function __construct(&$db)
 {
     parent::__construct('#__tsmart_waitingusers', 'tsmart_waitinguser_id', $db);
     $this->setLoggable();
 }
Beispiel #26
0
 /**
  * @param $db Class constructor; connect to the database
  */
 function __construct($db)
 {
     parent::__construct('#__tsmart_order_items', 'tsmart_order_item_id', $db);
     $this->setLoggable();
 }