@@ 255-266 (lines=12) @@ | ||
252 | return 1 == $int ? __('label_yes') : __('label_no'); |
|
253 | } |
|
254 | ||
255 | public function ticketNotificationEmails($id) { |
|
256 | $list = []; |
|
257 | ||
258 | $ccs = json_decode($this->getRepairTicket($id, 'notification_emails'), true); |
|
259 | if ($ccs) { |
|
260 | foreach ($ccs as $cc) { |
|
261 | array_push($list, get_user_var($cc, 'email')); |
|
262 | } |
|
263 | return $list; |
|
264 | } |
|
265 | return []; |
|
266 | } |
|
267 | ||
268 | public function ticketAttendees($id) { |
|
269 | $list = []; |
|
@@ 268-279 (lines=12) @@ | ||
265 | return []; |
|
266 | } |
|
267 | ||
268 | public function ticketAttendees($id) { |
|
269 | $list = []; |
|
270 | ||
271 | $atts = json_decode($this->getRepairTicket($id, 'appointment_attendees'), true); |
|
272 | if ($atts) { |
|
273 | foreach ($atts as $att) { |
|
274 | array_push($list, get_user_var($att, 'first_name')); |
|
275 | } |
|
276 | return $list; |
|
277 | } |
|
278 | return []; |
|
279 | } |
|
280 | ||
281 | public function getTicketAttachemnts($id) { |
|
282 | $list = []; |
|
@@ 281-292 (lines=12) @@ | ||
278 | return []; |
|
279 | } |
|
280 | ||
281 | public function getTicketAttachemnts($id) { |
|
282 | $list = []; |
|
283 | ||
284 | $atts = json_decode($this->getRepairTicket($id, 'attachments'), true); |
|
285 | if ($atts) { |
|
286 | foreach ($atts as $att) { |
|
287 | array_push($list, $att); |
|
288 | } |
|
289 | return $list; |
|
290 | } |
|
291 | return []; |
|
292 | } |
|
293 | ||
294 | public function implodeAddress($id = null, $context) { |
|
295 |