1 | <?php |
||
29 | final class route extends base_entity |
||
30 | { |
||
31 | /** @var integer */ |
||
32 | protected $route_id; |
||
33 | |||
34 | /** @var string */ |
||
35 | protected $ext_name = ''; |
||
36 | |||
37 | /** @var string */ |
||
38 | protected $route = ''; |
||
39 | |||
40 | /** @var integer */ |
||
41 | protected $style = 0; |
||
42 | |||
43 | /** @var boolean */ |
||
44 | protected $hide_blocks = false; |
||
45 | |||
46 | /** @var boolean */ |
||
47 | protected $has_blocks = false; |
||
48 | |||
49 | /** @var string */ |
||
50 | protected $ex_positions = ''; |
||
51 | |||
52 | /** @var \blitze\sitemaker\model\collections\blocks */ |
||
53 | protected $blocks = array(); |
||
54 | |||
55 | /** @var array */ |
||
56 | protected $required_fields = array('route', 'style'); |
||
57 | |||
58 | /** @var array */ |
||
59 | protected $db_fields = array( |
||
60 | 'ext_name', |
||
61 | 'route', |
||
62 | 'style', |
||
63 | 'hide_blocks', |
||
64 | 'has_blocks', |
||
65 | 'ex_positions', |
||
66 | ); |
||
67 | |||
68 | /** |
||
69 | * Set route ID |
||
70 | * @param int $route_id |
||
71 | * @return $this |
||
72 | */ |
||
73 | 52 | public function set_route_id($route_id) |
|
81 | |||
82 | /** |
||
83 | * Set excluded positions |
||
84 | * @param array|string $ex_positions |
||
85 | * @return $this |
||
86 | */ |
||
87 | 48 | public function set_ex_positions($ex_positions) |
|
92 | |||
93 | /** |
||
94 | * Get excluded positions |
||
95 | * @return array |
||
96 | */ |
||
97 | 36 | public function get_ex_positions() |
|
101 | |||
102 | /** |
||
103 | * |
||
104 | */ |
||
105 | 6 | public function __clone() |
|
109 | } |
||
110 |