17 lines
724 B
PHP
17 lines
724 B
PHP
<?php
|
||
|
||
class Attribute extends Item {
|
||
public string $title = "Атрибуты товара";
|
||
public string $description = "Управление атрибутами товаров на сайте.";
|
||
public string $icon = "bookmark";
|
||
public bool $visible_content = false;
|
||
public function __construct($item_id)
|
||
{
|
||
parent::__construct($item_id);
|
||
$this->props = array(
|
||
"visible" => new Prop($this, "visible", "1", "Видимость", true, "plain_text"),
|
||
"open" => new Prop($this, "open", "0", "Открыт по умолчанию", true, "plain_text"),
|
||
"weight" => new Prop($this, "weight", "1000", "Вес", true, "plain_text"),
|
||
);
|
||
}
|
||
} |