33 lines
979 B
PHP
33 lines
979 B
PHP
<?php
|
|
|
|
class BlockAds extends ObjectModel
|
|
{
|
|
public $id;
|
|
|
|
public $id_block_ads;
|
|
|
|
public $hook_name;
|
|
public $label;
|
|
public $width;
|
|
public $height;
|
|
public $content;
|
|
public $date_add;
|
|
public $date_upd;
|
|
|
|
public static $definition = array(
|
|
'table' => 'ads',
|
|
'primary' => 'id_block_ads',
|
|
'multilang' => true,
|
|
'multilang_shop' => true,
|
|
'fields' => array(
|
|
'hook_name' => array('type' => self::TYPE_STRING, 'validate' => 'isHookName', 'copy_post' => false),
|
|
'label' => array('type' => self::TYPE_STRING, 'validate' => 'isString'),
|
|
'width' => array('type' => self::TYPE_INT, 'validate' => 'isInt'),
|
|
'height' => array('type' => self::TYPE_INT, 'validate' => 'isInt'),
|
|
'date_add' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
|
|
'date_upd' => array('type' => self::TYPE_DATE, 'validate' => 'isDate'),
|
|
'content' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isAnything'),
|
|
),
|
|
);
|
|
|
|
} |