How to

Discussion in 'Installation' started by fmagusto, Jan 30, 2015.

Thread Status:
Not open for further replies.
  1. fmagusto

    fmagusto Member

    Joined:
    Nov 30, 2011
    Messages:
    245
    Hi
    What is the STATUS possible to Insert Ticket

    $ticket->status = HelpdeskTicket::STATUS_XXXX;




    Am_Di::getInstance()->hook->add(Am_Event::USER_AFTER_INSERT, 'onUserAfterInsert');
    function onUserAfterInsert(Am_Event $event){
    $user = $event->getUser();
    $di = Am_Di::getInstance();
    $ticket = $di->helpdeskTicketRecord;
    $ticket->user_id = $user->user_id;
    $ticket->status = HelpdeskTicket::STATUS_XXXXXX;
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    1,659
    Here you are
    PHP:
    HelpdeskTicket::STATUS_NEW
    HelpdeskTicket
    ::STATUS_AWAITING_USER_RESPONSE
    HelpdeskTicket
    ::STATUS_AWAITING_ADMIN_RESPONSE
    HelpdeskTicket
    ::STATUS_CLOSED
  3. fmagusto

    fmagusto Member

    Joined:
    Nov 30, 2011
    Messages:
    245
    Ok, Thank.
    Frédéric
Thread Status:
Not open for further replies.

Share This Page