add empik module
This commit is contained in:
60
modules/empikmarketplace/classes/EmpikAction.php
Normal file
60
modules/empikmarketplace/classes/EmpikAction.php
Normal file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
|
||||
|
||||
class EmpikAction extends ObjectModel
|
||||
{
|
||||
const ACTION_OTHER = 'OTHER';
|
||||
const ACTION_PRODUCT_EXPORT = 'PRODUCT_EXPORT';
|
||||
const ACTION_OFFER_EXPORT = 'OFFER_EXPORT';
|
||||
const ACTION_PRODUCT_EXPORT_INCLUDE = 'PRODUCT_EXPORT_INCLUDE';
|
||||
const ACTION_PRODUCT_EXPORT_EXCLUDE = 'PRODUCT_EXPORT_EXCLUDE';
|
||||
|
||||
const STATUS_NEW = 'NEW';
|
||||
const STATUS_COMPLETED = 'COMPLETE';
|
||||
|
||||
public $id_shop;
|
||||
public $action = self::ACTION_OTHER;
|
||||
public $status = self::STATUS_NEW;
|
||||
public $id_import;
|
||||
public $import_count;
|
||||
public $date_start;
|
||||
public $date_end;
|
||||
|
||||
public static $definition = [
|
||||
'table' => 'empik_action',
|
||||
'primary' => 'id_empik_action',
|
||||
'fields' => [
|
||||
'id_shop' => [
|
||||
'type' => self::TYPE_INT,
|
||||
'validate' => 'isUnsignedInt',
|
||||
'required' => true,
|
||||
],
|
||||
'action' => [
|
||||
'type' => self::TYPE_STRING,
|
||||
'validate' => 'isCleanHtml',
|
||||
],
|
||||
'status' => [
|
||||
'type' => self::TYPE_STRING,
|
||||
'validate' => 'isCleanHtml',
|
||||
],
|
||||
'id_import' => [
|
||||
'type' => self::TYPE_INT,
|
||||
'validate' => 'isCleanHtml',
|
||||
],
|
||||
'import_count' => [
|
||||
'type' => self::TYPE_INT,
|
||||
'validate' => 'isCleanHtml',
|
||||
],
|
||||
'date_start' => [
|
||||
'type' => self::TYPE_DATE,
|
||||
'validate' => 'isDate',
|
||||
'required' => true,
|
||||
],
|
||||
'date_end' => [
|
||||
'type' => self::TYPE_DATE,
|
||||
'validate' => 'isDate',
|
||||
'required' => true,
|
||||
],
|
||||
],
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user