33 lines
979 B
PHP
Raw Normal View History

2015-08-12 14:10:25 +02:00
<?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'),
),
);
}