src/snac/server/ServerExecutor.php
/**
     * List User Messages
     *
     * Returns a list of messages sent to a given user.
     *
     * @param string[] $input Input array from the Server object
     * @return string[] The response to send to the client
     */
List User Messages
Returns a list of messages sent to a given user.

@param string[] $input Input array from the Server object
@return string[] The response to send to the client
List User Messages Returns a list of messages sent to a given user . @param string [] $input Input array from the Server object @return string [] The response to send to the client
public function userMessages($input = null) {
        $response["messages"] = array();
        $messages = $this->uStore->listMessagesToUser($this->user, false);
        foreach ($messages as $message) {
            array_push($response["messages"], $message->toArray());
        }
        $response["result"] = "success";
        return $response;
    }
public function userMessages ( $ input = null ) { $ response [ " messages " ] = array ( ) ; $ messages = $ this -> uStore -> listMessagesToUser ( $ this -> user , false ) ; foreach ( $ messages as $ message ) { array_push ( $ response [ " messages " ] , $ message -> toArray ( ) ) ; } $ response [ " result " ] = " success " ; return $ response ; }
List User Messages
 Returns a list of messages sent to a given user.
List User Messages Returns a list of messages sent to a given user .
/*
         * Get the list of Messages for the user
         */