Initial commit
This commit is contained in:
17
playarea/datatypes/datatype.attribute.php
Normal file
17
playarea/datatypes/datatype.attribute.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?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"),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user