public function getCurrentUserStructureAction(Request $request)
    {
        $ret = [
          "meta_fields" => $this->listUserAuthorizedMetadataFields($this->getAuthenticatedUser()),
          "aggregable_fields" => $this->buildUserFieldList(ElasticsearchOptions::getAggregableTechnicalFields(), ['choices']),
          "technical_fields" => $this->buildUserFieldList(media_subdef::getTechnicalFieldsList()),
        ];

        return Result::create($request, $ret)->createResponse();
    }
public function getCurrentUserStructureAction(Request $request)
    {
        $ret = [
          "meta_fields" => $this->listUserAuthorizedMetadataFields($this->getAuthenticatedUser()),
          "aggregable_fields" => $this->buildUserFieldList(ElasticsearchOptions::getAggregableTechnicalFields(), ['choices']),
          "technical_fields" => $this->buildUserFieldList(media_subdef::getTechnicalFieldsList()),
        ];

        return Result::create($request, $ret)->createResponse();
    }
public function getCurrentUserStructureAction ( Request $ request ) { $ ret = [ "meta_fields" => $ this -> listUserAuthorizedMetadataFields ( $ this -> getAuthenticatedUser ( ) ) , "aggregable_fields" => $ this -> buildUserFieldList ( ElasticsearchOptions :: getAggregableTechnicalFields ( ) , [ 'choices' ] ) , "technical_fields" => $ this -> buildUserFieldList ( media_subdef :: getTechnicalFieldsList ( ) ) , ] ; return Result :: create ( $ request , $ ret ) -> createResponse ( ) ; }
Returns all documentary fields available for user
@param Request $request
@return Response
Returns all documentary fields available for user