1 | <?php |
||
7 | class PageBreakpoint { |
||
8 | |||
9 | const BREAKPOINT_FILE = 'breakpoints.tpl'; |
||
10 | const BREAKPOINT_DIR = 'breakpoints'; |
||
11 | |||
12 | protected $idPage; |
||
13 | protected $hash; |
||
14 | protected $templateHash; |
||
15 | protected $images; |
||
16 | protected $path; |
||
17 | protected $extraData; |
||
18 | protected $imageGroupsSizes; |
||
19 | |||
20 | /** |
||
21 | * Returns the images array |
||
22 | * |
||
23 | * @return array |
||
24 | */ |
||
25 | public function getImages() { |
||
28 | |||
29 | /** |
||
30 | * Returns the imagegroups sizes groups array |
||
31 | * |
||
32 | * @return array |
||
33 | */ |
||
34 | public function getImageGroupsSizes() { |
||
37 | |||
38 | /** |
||
39 | * Returns page id |
||
40 | * |
||
41 | * @return int |
||
42 | */ |
||
43 | public function getIdPage() { |
||
46 | |||
47 | /** |
||
48 | * Returns breakpoints hash |
||
49 | * |
||
50 | * @return string |
||
51 | */ |
||
52 | public function getHash() { |
||
55 | |||
56 | /** |
||
57 | * Return the path of breakpoint file |
||
58 | * @return string |
||
59 | */ |
||
60 | public function getPath() { |
||
63 | |||
64 | /** |
||
65 | * Returns Extra data |
||
66 | * @return array |
||
67 | */ |
||
68 | public function getExtraData() { |
||
71 | |||
72 | /** |
||
73 | * Returns template hash |
||
74 | * |
||
75 | * @return string |
||
76 | */ |
||
77 | public function getTemplateHash() { |
||
80 | |||
81 | /** |
||
82 | * Sets templaet hash |
||
83 | * |
||
84 | * @param string $templateHash |
||
85 | */ |
||
86 | public function setTemplateHash($templateHash) { |
||
89 | |||
90 | /** |
||
91 | * Sets extra data |
||
92 | * @param array $extraData |
||
93 | */ |
||
94 | public function setExtraData($extraData) { |
||
97 | |||
98 | /** |
||
99 | * Sets the page id |
||
100 | * |
||
101 | * @param int $idPage |
||
102 | */ |
||
103 | public function setIdPage($idPage) { |
||
106 | |||
107 | /** |
||
108 | * Sets the breackpoint hash |
||
109 | * |
||
110 | * @param string $hash |
||
111 | */ |
||
112 | public function setHash($hash) { |
||
115 | |||
116 | /** |
||
117 | * Sets the path of the breakpoint file |
||
118 | * |
||
119 | * @param string $path |
||
120 | * @throws PathNotFoundException |
||
121 | */ |
||
122 | public function setPath($path) { |
||
132 | |||
133 | /** |
||
134 | * Sets the images array |
||
135 | * @param array $images |
||
136 | */ |
||
137 | public function setImages($images) { |
||
140 | |||
141 | /** |
||
142 | * Sets the imagegroups sizes array |
||
143 | * @param array $imageGroupsSizes |
||
144 | * |
||
145 | */ |
||
146 | public function setImageGroupsSizes($imageGroupsSizes) { |
||
149 | |||
150 | /** |
||
151 | * Returns breakpoint file name |
||
152 | * @return string |
||
153 | */ |
||
154 | public function getFileName() { |
||
158 | |||
159 | /** |
||
160 | * Returns breakpoint full path |
||
161 | * @return string |
||
162 | */ |
||
163 | public function getFullPath() { |
||
166 | |||
167 | /** |
||
168 | * Return an array with the util data |
||
169 | * |
||
170 | * @return array |
||
171 | */ |
||
172 | public function getData() { |
||
181 | |||
182 | /** |
||
183 | * Returns breakpoint full file name |
||
184 | * @return string |
||
185 | */ |
||
186 | public function getFullFileName() { |
||
189 | } |
||
190 | |||
191 | ?> |
||
|
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.