/** * @param $db Class constructor; connect to the database */ function __construct(&$db) { parent::__construct('#__virtuemart_vmusers', 'virtuemart_user_id', $db); $this->setPrimaryKey('virtuemart_user_id'); $this->setLoggable(); $this->setTableShortCut('vmu'); }
/** * @author Max Milbers * @param $db A database connector object */ function __construct(&$db) { parent::__construct('#__virtuemart_category_categories', 'id', $db); $this->setPrimaryKey('category_child_id'); $this->setOrderable(); $this->setTableShortCut('cx'); }
/** * @author Max Milbers * @param JDataBase $db */ function __construct(&$db) { parent::__construct('#__virtuemart_currencies', 'virtuemart_currency_id', $db); $this->setUniqueName('currency_name'); $this->setLoggable(); $this->setOrderable(); }
/** * @author RolandD * @param $db A database connector object */ function __construct(&$db) { parent::__construct('#__virtuemart_product_prices', 'virtuemart_product_price_id', $db); $this->setPrimaryKey('virtuemart_product_id'); $this->setLoggable(); $this->setTableShortCut('pp'); }
/** * @author RickG * @param $db A database connector object */ function __construct($db) { /* Make sure the custom fields are added */ parent::__construct('#__virtuemart_userinfos', 'virtuemart_userinfo_id', $db); parent::loadFields(); $this->setPrimaryKey('virtuemart_userinfo_id'); $this->setObligatoryKeys('address_type'); $this->setObligatoryKeys('virtuemart_user_id'); $this->setLoggable(); $this->setTableShortCut('ui'); }
/** @author RickG, Max Milbers * @param JDataBase $db */ function __construct(&$db) { parent::__construct('#__virtuemart_vendors', 'virtuemart_vendor_id', $db); $this->setPrimaryKey('virtuemart_vendor_id'); $this->setUniqueName('vendor_name'); $this->setSlug('vendor_store_name'); //Attention the slug autoname MUST be also in the translatable, if existing $this->setLoggable(); $this->setTranslatable(array('vendor_store_name', 'vendor_phone', 'vendor_store_desc', 'vendor_terms_of_service', 'vendor_legal_info', 'vendor_url', 'metadesc', 'metakey', 'customtitle', 'vendor_letter_css', 'vendor_letter_header_html', 'vendor_letter_footer_html')); $varsToPushParam = array('vendor_min_pov' => array(0.0, 'float'), 'vendor_min_poq' => array(1, 'int'), 'vendor_freeshipment' => array(0.0, 'float'), 'vendor_address_format' => array('', 'string'), 'vendor_date_format' => array('', 'string'), 'vendor_letter_format' => array('A4', 'string'), 'vendor_letter_orientation' => array('P', 'string'), 'vendor_letter_margin_top' => array(45, 'int'), 'vendor_letter_margin_left' => array(25, 'int'), 'vendor_letter_margin_right' => array(25, 'int'), 'vendor_letter_margin_bottom' => array(25, 'int'), 'vendor_letter_margin_header' => array(12, 'int'), 'vendor_letter_margin_footer' => array(20, 'int'), 'vendor_letter_font' => array('helvetica', 'string'), 'vendor_letter_font_size' => array(8, 'int'), 'vendor_letter_header_font_size' => array(7, 'int'), 'vendor_letter_footer_font_size' => array(6, 'int'), 'vendor_letter_header' => array(1, 'int'), 'vendor_letter_header_line' => array(1, 'int'), 'vendor_letter_header_line_color' => array("#000000", 'string'), 'vendor_letter_header_image' => array(1, 'int'), 'vendor_letter_header_imagesize' => array(60, 'int'), 'vendor_letter_header_cell_height_ratio' => array(1, 'float'), 'vendor_letter_footer' => array(1, 'int'), 'vendor_letter_footer_line' => array(1, 'int'), 'vendor_letter_footer_line_color' => array("#000000", 'string'), 'vendor_letter_footer_cell_height_ratio' => array(1, 'float'), 'vendor_letter_add_tos' => array(0, 'int'), 'vendor_letter_add_tos_newpage' => array(1, 'int')); $this->setParameterable('vendor_params', $varsToPushParam); $this->setTableShortCut('v'); }
function __construct(&$db) { parent::__construct('#__virtuemart_vendors', 'virtuemart_vendor_id', $db); $this->setPrimaryKey('virtuemart_vendor_id'); $this->setUniqueName('vendor_name'); $this->setSlug('vendor_store_name'); //Attention the slug autoname MUST be also in the translatable, if existing $this->setLoggable(); $this->setTranslatable(array('vendor_store_name', 'vendor_phone', 'vendor_store_desc', 'vendor_terms_of_service', 'vendor_legal_info', 'vendor_url')); $varsToPushParam = array('vendor_min_pov' => array(0.0, 'float'), 'vendor_min_poq' => array(1, 'int'), 'vendor_freeshipment' => array(0.0, 'float'), 'vendor_address_format' => array('', 'string'), 'vendor_date_format' => array('', 'string')); $this->setParameterable('vendor_params', $varsToPushParam); $this->setTableShortCut('v'); // vmdebug('myvendor table',$this); }
/** * @author Max Milbers * @param string $_db */ function __construct(&$_db) { parent::__construct('#__virtuemart_order_userinfos', 'virtuemart_order_userinfo_id', $_db); parent::showFullColumns(); $this->setLoggable(); }
/** * @author RickG * @param JDataBase $db */ function __construct(&$db) { parent::__construct('#__virtuemart_configs', 'virtuemart_config_id', $db); $this->setLoggable(); }
/** * * @author Max Milbers * @param $db Class constructor; connect to the database * */ function __construct($db) { parent::__construct('#__virtuemart_orders', 'virtuemart_order_id', $db); $this->setUniqueName('order_number'); $this->setLoggable(); $this->setTableShortCut('o'); }
/** * @author Max Milbers * @param string $_db */ function __construct(&$_db) { parent::__construct('#__virtuemart_order_userinfos', 'virtuemart_order_userinfo_id', $_db); parent::loadFields($_db); $this->setLoggable(); }