35 lines
1.1 KiB
PHP
35 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Creative Elements - live Theme & Page Builder
|
|
*
|
|
* @author WebshopWorks
|
|
* @copyright 2019-2022 WebshopWorks.com
|
|
* @license One domain support license
|
|
*/
|
|
|
|
defined('_PS_VERSION_') or die;
|
|
|
|
class CERevision extends ObjectModel
|
|
{
|
|
public $parent;
|
|
public $id_employee;
|
|
public $title;
|
|
public $content;
|
|
public $active;
|
|
public $date_upd;
|
|
|
|
public static $definition = [
|
|
'table' => 'ce_revision',
|
|
'primary' => 'id_ce_revision',
|
|
'fields' => [
|
|
'parent' => ['type' => self::TYPE_STRING, 'validate' => 'isIp2Long', 'required' => true],
|
|
'id_employee' => ['type' => self::TYPE_INT, 'validate' => 'isUnsignedId'],
|
|
'title' => ['type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'size' => 255],
|
|
'type' => ['type' => self::TYPE_STRING, 'validate' => 'isHookName', 'size' => 64],
|
|
'content' => ['type' => self::TYPE_HTML, 'validate' => 'isCleanHtml'],
|
|
'active' => ['type' => self::TYPE_INT, 'validate' => 'isBool'],
|
|
'date_upd' => ['type' => self::TYPE_DATE, 'validate' => 'isDate'],
|
|
],
|
|
];
|
|
}
|