src/snac/server/ServerExecutor.php
/**
     * Get Group Information
     *
     * Gets the group information, including the group information from the database as well
     * as the list of users in this group
     *
     * @param string[]|null $input The input from the client
     * @return string[] The response to send to the client
     */
Get Group Information
Gets the group information, including the group information from the database as well
as the list of users in this group

@param string[]|null $input The input from the client
@return string[] The response to send to the client
Get Group Information Gets the group information including the group information from the database as well as the list of users in this group @param string [] |null $input The input from the client @return string [] The response to send to the client
public function groupInformation($input = null) {
        $response = array();
        $group = null;
        if (isset($input["group"])) {
            $group = new \snac\data\Group($input["group"]);
            $group = $this->uStore->readGroup($group);
        } else {
            return array (
                "result" => "failure"
            );
        }
        $response["group"] = $group->toArray();
        $users = $this->uStore->listUsersInGroup($group);
        $response["users"] = array();
        foreach ($users as $user) {
            array_push($response["users"], $user->toArray());
        }
        $response["result"] = "success";
        return $response;
    }
public function groupInformation ( $ input = null ) { $ response = array ( ) ; $ group = null ; if ( isset ( $ input [ " group " ] ) ) { $ group = new \ snac \ data \ Group ( $ input [ " group " ] ) ; $ group = $ this -> uStore -> readGroup ( $ group ) ; } else { return array ( " result " => " failure " ) ; } $ response [ " group " ] = $ group -> toArray ( ) ; $ users = $ this -> uStore -> listUsersInGroup ( $ group ) ; $ response [ " users " ] = array ( ) ; foreach ( $ users as $ user ) { array_push ( $ response [ " users " ] , $ user -> toArray ( ) ) ; } $ response [ " result " ] = " success " ; return $ response ; }
Get Group Information
 Gets the group information, including the group information from the database as well
 as the list of users in this group
Get Group Information Gets the group information including the group information from the database as well as the list of users in this group