| Server IP : 87.98.231.4 / Your IP : 216.73.217.178 [ Web Server : Apache System : Linux webm007.cluster103.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : grupmartgn ( 667608) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/grupmartgn/elanartcrafts/administrator/components/com_virtuemart/tables/ |
Upload File : |
<?php
/**
*
* State table
*
* @package VirtueMart
* @subpackage Country
* @author RickG
* @link https://virtuemart.net
* @copyright Copyright (c) 2004 - 2010 VirtueMart Team. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* VirtueMart is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* @version $Id: states.php 10691 2022-08-30 12:14:18Z Milbo $
*/
// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');
/**
* State table class
* The class is is used to manage the states in a country
*
* @package VirtueMart
* @author RickG
*/
class TableStates extends VmTable {
/** @var int Primary key */
var $virtuemart_state_id = 0;
/** @var integer Country id */
var $virtuemart_country_id = 0;
/** @var integer Zone id */
var $virtuemart_worldzone_id = 0;
/** @var string State name */
var $state_name = '';
/** @var char 3 character state code */
var $state_3_code = '';
/** @var char 2 character state code */
var $state_2_code = '';
/** @var int published or unpublished */
var $published = 1;
/**
* @author RickG
* @author Max Milbers
* @param JDataBase $db
*/
function __construct(&$db)
{
parent::__construct('#__virtuemart_states', 'virtuemart_state_id', $db);
$this->setUniqueName('state_name');
$this->setObligatoryKeys('state_2_code');
$this->setObligatoryKeys('state_3_code');
$this->setLoggable();
$this->setLockable();
}
}
// pure php no closing tag