private function getPageData(Request $request) {

        $publicDMQL = '(L_UpdateDate=' . date('Y-m-d', (strtotime('-1 day', time()))) . '-' . date('Y-m-d') . ')';

        $data = [
            "isPublic" => ExampleController::IS_PUBLIC,
            "disableCache" => !empty($request->disableCache),
            "keywords" => $request->keywords ? : ExampleController::EXAMPLE_ADDRESS,
            "extra" => $request->extra,
            "maxPrice" => $request->maxPrice,
            "minPrice" => $request->minPrice,
            "beds" => $request->beds,
            "baths" => $request->baths,
            "includeResidential" => $request->includeResidential,
            "includeLand" => $request->includeLand,
            "includeCommercial" => $request->includeCommercial,
            "sortBy" => $request->sortBy ? : "rawListPrice",
            "reverseSort" => !empty($request->reverseSort),
            // Only let the public search the last days worth of modified residential listings (to prevent abusive queries)
            "dmql" => (!empty($request->dmql) && !$data["isPublic"]) ? $request->dmql : $publicDMQL,
            "listings" => null,
            "detail" => null,
            "rawData" => null,
            "allInput" => $request->all(),
        ];

        if ($request->isMethod('POST')) {
            $this->handleAction($request, $data);
        }

        // Listing Details
        if ($request->has("source") && $request->has("type") && $request->has("id")) {
            $data["detail"] = $this->listingController($data)->details($request->source, $request->type, $request->id);
        }

        return $data;
    }
private function getPageData(Request $request) {

        $publicDMQL = '(L_UpdateDate=' . date('Y-m-d', (strtotime('-1 day', time()))) . '-' . date('Y-m-d') . ')';

        $data = [
            "isPublic" => ExampleController::IS_PUBLIC,
            "disableCache" => !empty($request->disableCache),
            "keywords" => $request->keywords ? : ExampleController::EXAMPLE_ADDRESS,
            "extra" => $request->extra,
            "maxPrice" => $request->maxPrice,
            "minPrice" => $request->minPrice,
            "beds" => $request->beds,
            "baths" => $request->baths,
            "includeResidential" => $request->includeResidential,
            "includeLand" => $request->includeLand,
            "includeCommercial" => $request->includeCommercial,
            "sortBy" => $request->sortBy ? : "rawListPrice",
            "reverseSort" => !empty($request->reverseSort),
            // Only let the public search the last days worth of modified residential listings (to prevent abusive queries)
            "dmql" => (!empty($request->dmql) && !$data["isPublic"]) ? $request->dmql : $publicDMQL,
            "listings" => null,
            "detail" => null,
            "rawData" => null,
            "allInput" => $request->all(),
        ];

        if ($request->isMethod('POST')) {
            $this->handleAction($request, $data);
        }

        // Listing Details
        if ($request->has("source") && $request->has("type") && $request->has("id")) {
            $data["detail"] = $this->listingController($data)->details($request->source, $request->type, $request->id);
        }

        return $data;
    }
private function getPageData ( Request $ request ) { $ publicDMQL = '(L_UpdateDate=' . date ( 'Y-m-d' , ( strtotime ( '-1 day' , time ( ) ) ) ) . '-' . date ( 'Y-m-d' ) . ')' ; $ data = [ "isPublic" => ExampleController :: IS_PUBLIC , "disableCache" => ! empty ( $ request -> disableCache ) , "keywords" => $ request -> keywords ? : ExampleController :: EXAMPLE_ADDRESS , "extra" => $ request -> extra , "maxPrice" => $ request -> maxPrice , "minPrice" => $ request -> minPrice , "beds" => $ request -> beds , "baths" => $ request -> baths , "includeResidential" => $ request -> includeResidential , "includeLand" => $ request -> includeLand , "includeCommercial" => $ request -> includeCommercial , "sortBy" => $ request -> sortBy ? : "rawListPrice" , "reverseSort" => ! empty ( $ request -> reverseSort ) , // Only let the public search the last days worth of modified residential listings (to prevent abusive queries) "dmql" => ( ! empty ( $ request -> dmql ) && ! $ data [ "isPublic" ] ) ? $ request -> dmql : $ publicDMQL , "listings" => null , "detail" => null , "rawData" => null , "allInput" => $ request -> all ( ) , ] ; if ( $ request -> isMethod ( 'POST' ) ) { $ this -> handleAction ( $ request , $ data ) ; } // Listing Details if ( $ request -> has ( "source" ) && $ request -> has ( "type" ) && $ request -> has ( "id" ) ) { $ data [ "detail" ] = $ this -> listingController ( $ data ) -> details ( $ request -> source , $ request -> type , $ request -> id ) ; } return $ data ; }
Returns an array of data to be used in the view

@param Request $request
@return type
Returns an array of data to be used in the view