/** * Returns ticket status. * * Result is cached until the end of script. * * @param bool $reload True to reload data from server. False to use the cached value (if present). * @return kyTicketStatus */ public function getStatus($reload = false) { if ($this->status !== null && !$reload) { return $this->status; } if ($this->status_id === null) { return null; } $this->status = kyTicketStatus::get($this->status_id); return $this->status; }
?> </td> <td><?php echo $list->getLastReplier(); ?> </td> <td><?php echo kyDepartment::get($list->getDepartmentId())->getTitle(); ?> </td> <td><?php echo kyTicketType::get($list->getTypeId())->getTitle(); ?> </td> <td><?php echo kyTicketStatus::get($list->getStatusId())->getTitle(); ?> </td> <td style=" background-color: <?php echo kyTicketPriority::get($list->getPriorityId())->getBackgroundColor(); ?> ;"> <span style="color: <?php echo kyTicketPriority::get($list->getPriorityId())->getForegroundColor(); ?> ;"> <?php echo kyTicketPriority::get($list->getPriorityId())->getTitle(); ?> </span> </td>