45 lines
1.6 KiB
PHP
45 lines
1.6 KiB
PHP
<?php
|
|
|
|
class ConfigField extends \ObjectModel
|
|
{
|
|
public $id;
|
|
public $id_config_field;
|
|
public $id_config;
|
|
public $x;
|
|
public $y;
|
|
public $width;
|
|
public $height;
|
|
public $font;
|
|
public $fontsize;
|
|
public $rotation;
|
|
public $color;
|
|
public $text;
|
|
public $type;
|
|
public $textalign;
|
|
public $characters_limit;
|
|
|
|
/**
|
|
* @see ObjectModel::$definition
|
|
*/
|
|
public static $definition = [
|
|
'table' => 'config_field',
|
|
'primary' => 'id_config_field',
|
|
'fields' => [
|
|
'id_config_field' => ['type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'],
|
|
'id_config' => ['type' => self::TYPE_INT, 'validate' => 'isUnsignedInt'],
|
|
'x' => ['type' => self::TYPE_FLOAT, 'required' => false],
|
|
'y' => ['type' => self::TYPE_FLOAT, 'required' => false],
|
|
'width' => ['type' => self::TYPE_FLOAT, 'required' => false],
|
|
'height' => ['type' => self::TYPE_FLOAT, 'required' => false],
|
|
'font' => ['type' => self::TYPE_STRING, 'required' => false],
|
|
'fontsize' => ['type' => self::TYPE_INT, 'required' => false],
|
|
'characters_limit' => ['type' => self::TYPE_INT, 'required' => false],
|
|
'rotation' => ['type' => self::TYPE_INT, 'required' => false],
|
|
'color' => ['type' => self::TYPE_STRING, 'required' => false],
|
|
'text' => ['type' => self::TYPE_STRING, 'required' => false],
|
|
'type' => ['type' => self::TYPE_INT, 'required' => false],
|
|
'textalign' => ['type' => self::TYPE_STRING, 'required' => false],
|
|
],
|
|
];
|
|
}
|