roykin/override/classes/CategoryMerge.php
Thibault UBUNTU 7965ab1f95 push erp test
2016-03-18 10:53:04 +01:00

49 lines
1.4 KiB
PHP

<?php
/*
* 2012-2013 PrestaShop-OpenERP Bridge
*
* DISCLAIMER
*
* This file is a part of PrestaShop-OpenERP Bridge.
* Do not edit or add to this file.
* If you wish to customize PrestaShop-OpenERP Bridge for your
* needs please refer to http://www.webkul.com for more information.
*
* @author Webkul Software Pvt. Ltd. <vinayrks@webkul.com>
*/
class CategoryMergeCore extends ObjectModel
{
public $erp_category_id;
public $prestashop_category_id;
public $created_by ;
public $is_synch ;
public $translate_state ;
public $color;
public static $definition = array(
'table' => 'erp_category_merge',
'primary' => 'id',
'fields' => array(
'erp_category_id' => array('type' => self::TYPE_INT, 'required' => true),
'prestashop_category_id' => array('type' => self::TYPE_INT, 'required' => true),
'created_by' => array('type' => self::TYPE_STRING, 'required' => false, 'size' => 64),
'translate_state' => array('type' => self::TYPE_STRING, 'required' => false, 'size' => 64),
'color' => array('type' => self::TYPE_STRING, 'required' => false, 'size' => 64),
'is_synch' => array('type' => self::TYPE_BOOL),
),
);
protected $webserviceParameters = array(
'objectMethods' => array(
'add' => 'addWs',
),);
public function addWs($autodate = true, $null_values = false){
$this->color='DarkOrange';
$this->is_synch=1;
$this->translate_state='to_translate';
return $this->add($autodate, $null_values);
}
}