Total Complexity | 1 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
6 | class TabsAsset extends Asset { |
||
7 | |||
8 | |||
9 | public $name = 'Tab Page'; |
||
10 | public $shortname = 'Tabs'; |
||
11 | |||
12 | public $children = TabAsset::class; |
||
13 | |||
14 | |||
15 | // map our value as equal to whatever the title property is set on save. |
||
16 | public $value_equals = 'title'; |
||
17 | public $status_equals = 'status'; |
||
18 | |||
19 | public $properties = array( |
||
20 | 'title' => array( |
||
21 | 'name' => 'Title', |
||
22 | 'type' => self::STRING |
||
23 | ), |
||
24 | 'content' => array( |
||
25 | 'name' => 'Introduction', |
||
26 | 'type' => self::HTML |
||
27 | ), |
||
28 | 'status' => array( |
||
29 | 'name' => 'Published', |
||
30 | 'type' => self::DROPDOWN, |
||
31 | 'options' => ['published' => 'Published', 'unpublished' => 'Unpublished'], |
||
32 | 'published' => ['published'] |
||
33 | ), |
||
34 | ); |
||
35 | |||
36 | public static function about() { |
||
41 |