src/snac/server/ServerExecutor.php
/**
     * List Groups
     *
     * Calls through to DBUser to ask for the list of groups
     *
     * @param  string[] $input Input array from the client
     * @return string[]        Response to send to the client including the list of Users
     */
List Groups
Calls through to DBUser to ask for the list of groups

@param  string[] $input Input array from the client
@return string[]        Response to send to the client including the list of Users
List Groups Calls through to DBUser to ask for the list of groups @param string [] $input Input array from the client @return string [] Response to send to the client including the list of Users
public function listGroups(&$input) {
        $allGroups = $this->uStore->listGroups();
        $response = array();
        if ($allGroups !== false) {
            $response["groups"] = array();
            foreach ($allGroups as $group) {
                array_push($response["groups"], $group->toArray());
            }
            $response["result"] = "success";
        } else {
            $response["result"] = "failure";
        }
        return $response;
    }
public function listGroups ( & $ input ) { $ allGroups = $ this -> uStore -> listGroups ( ) ; $ response = array ( ) ; if ( $ allGroups !== false ) { $ response [ " groups " ] = array ( ) ; foreach ( $ allGroups as $ group ) { array_push ( $ response [ " groups " ] , $ group -> toArray ( ) ) ; } $ response [ " result " ] = " success " ; } else { $ response [ " result " ] = " failure " ; } return $ response ; }
List Groups
 Calls through to DBUser to ask for the list of groups
List Groups Calls through to DBUser to ask for the list of groups