1 | <?php |
||
26 | class Page implements ModelInterface |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * @var Contents |
||
31 | */ |
||
32 | private $oContents; |
||
33 | |||
34 | /** |
||
35 | * @var SoftKey[] |
||
36 | */ |
||
37 | private $tSoftkeys = []; |
||
38 | |||
39 | /** |
||
40 | * @var boolean |
||
41 | */ |
||
42 | private $isVisibleStatusLine; |
||
43 | |||
44 | /** |
||
45 | * @var boolean |
||
46 | */ |
||
47 | private $ignoreCallUpdate; |
||
48 | |||
49 | /** |
||
50 | * Page constructor. |
||
51 | * |
||
52 | * @param Contents $oContents |
||
53 | */ |
||
54 | public function __construct(Contents $oContents) |
||
60 | |||
61 | /** |
||
62 | * @param Contents $oContents |
||
63 | * |
||
64 | * @return Page |
||
65 | */ |
||
66 | public function setContents(Contents $oContents) |
||
72 | |||
73 | /** |
||
74 | * It could use "true" or "false" as its text. |
||
75 | * "true": the line label on the left side will be always displayed during XML application. |
||
76 | * "false": the line label on the left side will not be displayed during XML application. |
||
77 | * So the XML application information could be shown in a full screen manner. |
||
78 | * Default is "true". |
||
79 | * |
||
80 | * @param bool $isVisible |
||
81 | * |
||
82 | * @return Page |
||
83 | */ |
||
84 | public function setVisibleStatusLine(bool $isVisible = true) |
||
90 | |||
91 | /** |
||
92 | * When it’s set to true, phone will not refresh the XML application screen to |
||
93 | * call screen for call status update (except the one triggered by pressing |
||
94 | * LINE key). Default value is false. |
||
95 | * |
||
96 | * @param bool $ignoreCallUpdate |
||
97 | * |
||
98 | * @return $this |
||
99 | */ |
||
100 | public function ignoreCallUpdate(bool $ignoreCallUpdate = false) |
||
106 | |||
107 | /** |
||
108 | * Defines softkey display and action |
||
109 | * |
||
110 | * @param SoftKey $oSoftkey |
||
111 | * |
||
112 | * @return Page |
||
113 | * |
||
114 | */ |
||
115 | public function addSoftkey(SoftKey $oSoftkey) |
||
121 | |||
122 | /** |
||
123 | * @return MyXML |
||
124 | */ |
||
125 | public function getXml(): MyXML |
||
143 | |||
144 | /** |
||
145 | * @return Contents |
||
146 | */ |
||
147 | public function getContents() |
||
151 | } |
||
152 |