Пример #1
0
 /**
  * Creates new note in this ticket.
  * WARNING: Data is not sent to Kayako unless you explicitly call create() on this method's result.
  *
  * @param kyStaff $creator Creator (staff) of new note.
  * @param string $contents Contents of new note.
  * @return kyTicketNote
  */
 public function newNote(kyStaff $creator, $contents)
 {
     return kyTicketNote::createNew($this, $creator, $contents);
 }
Пример #2
0
 /**
  * Creates new ticket note.
  * WARNING: Data is not sent to Kayako unless you explicitly call create() on this method's result.
  *
  * @param kyTicket $ticket Ticket in which to create the post.
  * @param kyStaff $creator Creator (staff) of new note.
  * @param string $contents Contents of new note.
  * @return kyTicketNote
  */
 public static function createNew(kyTicket $ticket, kyStaff $creator, $contents)
 {
     $new_ticket_note = new kyTicketNote();
     $new_ticket_note->setTicketId($ticket->getId());
     $new_ticket_note->setCreator($creator);
     $new_ticket_note->setContents($contents);
     return $new_ticket_note;
 }