60 lines
1.5 KiB
PHP
60 lines
1.5 KiB
PHP
<?php
|
|
/*
|
|
* @version $Id: index.php 10381 2008-06-01 03:35:53Z $
|
|
* @package Carteasy
|
|
* @copyright Copyright (C) 2005 - 2011 Wlanium
|
|
* @license proprietary
|
|
* @author Thomas Bartelt
|
|
* Carteasy is a web shop system
|
|
*/
|
|
|
|
include_once './core/base/edit.class.php';
|
|
|
|
class ShippingAreaPaymentMethodCustomerGroups_Edit extends Base_Edit {
|
|
|
|
public function __construct($base_object, $id = false) {
|
|
parent::__construct($base_object, $id);
|
|
} // end __construct
|
|
|
|
public function get_data($id = false) {
|
|
if ($id) {
|
|
$this->set_id($id);
|
|
}
|
|
|
|
return $this->select_one('shipping_area_payment_method_customer_groups');
|
|
} // end get_data
|
|
|
|
public function delete_data($id = false) {
|
|
if ($id) {
|
|
$this->set_id($id);
|
|
}
|
|
|
|
return $this->delete_one('shipping_area_payment_method_customer_groups');
|
|
} // end delete
|
|
|
|
public function create($data) {
|
|
return $this->create_one('shipping_area_payment_method_customer_groups', $data);
|
|
} // end create
|
|
|
|
public function update($data, $id = false) {
|
|
if ($id) {
|
|
$this->set_id($id);
|
|
}
|
|
|
|
return $this->update_one('shipping_area_payment_method_customer_groups', $data);
|
|
} // end update
|
|
|
|
public function get_all() {
|
|
$result = $this->db->query("SELECT * FROM shipping_area_payment_method_customer_groups");
|
|
|
|
$data = array();
|
|
while ($obj = $result->fetch_object()) {
|
|
$data[$obj->shipping_area_payment_method_customer_group_id] = $obj;
|
|
}
|
|
|
|
return $data;
|
|
} // end get_all
|
|
|
|
}// end ItemTypeDefinition_Edit
|
|
|
|
/* EOF */ |