src/snac/client/webui/WebUIExecutor.php
/**
     * Perform Resource Search
     *
     * Requests the server to perform a search of resource URLs to display the results.
     *
     * @param string[] $input Post/Get inputs from the webui
     * @return string[] The web ui's response to the client (array ready for json_encode)
     */
Perform Resource Search
Requests the server to perform a search of resource URLs to display the results.

@param string[] $input Post/Get inputs from the webui
@return string[] The web ui's response to the client (array ready for json_encode)
Perform Resource Search Requests the server to perform a search of resource URLs to display the results . @param string [] $input Post / Get inputs from the webui @return string [] The web ui ' s response to the client ( array ready for json_encode )
public function performResourceSearch(&$input) {
        if (!isset($input["term"])) {
            return array ("total" => 0, "results" => array());
        }
        $request = array();
        $request["command"] = "resource_search";
        $request["term"] = $input["term"];
        if (isset($input["type"]))
            $request["type"] = $input["type"];
        if (isset($input["count"]))
            $request["count"] = $input["count"];
        if (isset($input["filters"]))
            $request["filters"] = $input["filters"];
        $serverResponse = $this->connect->query($request);
        return $serverResponse;
    }
public function performResourceSearch ( & $ input ) { if ( ! isset ( $ input [ " term " ] ) ) { return array ( " total " => 0 , " results " => array ( ) ) ; } $ request = array ( ) ; $ request [ " command " ] = " resource_search " ; $ request [ " term " ] = $ input [ " term " ] ; if ( isset ( $ input [ " type " ] ) ) $ request [ " type " ] = $ input [ " type " ] ; if ( isset ( $ input [ " count " ] ) ) $ request [ " count " ] = $ input [ " count " ] ; if ( isset ( $ input [ " filters " ] ) ) $ request [ " filters " ] = $ input [ " filters " ] ; $ serverResponse = $ this -> connect -> query ( $ request ) ; return $ serverResponse ; }
Perform Resource Search
 Requests the server to perform a search of resource URLs to display the results.
Perform Resource Search Requests the server to perform a search of resource URLs to display the results .
// Query the server for the elastic search results