public function getResources(\core_kernel_classes_Class $rootClass, $format = 'list', $selectedUris = [], $search = '', $offset = 0, $limit = 30)
    {
        $propertyFilters = $this->getPropertyFilters($search);

        $result = [];

        $resourceLookup = $this->getResourceLookup($format);
        if (!is_null($resourceLookup)) {
            $result = $resourceLookup->getResources($rootClass, $selectedUris, $propertyFilters, $offset, $limit);
        }
        return $result;
    }
public function getResources(\core_kernel_classes_Class $rootClass, $format = 'list', $selectedUris = [], $search = '', $offset = 0, $limit = 30)
    {
        $propertyFilters = $this->getPropertyFilters($search);

        $result = [];

        $resourceLookup = $this->getResourceLookup($format);
        if (!is_null($resourceLookup)) {
            $result = $resourceLookup->getResources($rootClass, $selectedUris, $propertyFilters, $offset, $limit);
        }
        return $result;
    }
public function getResources ( \ core_kernel_classes_Class $ rootClass , $ format = 'list' , $ selectedUris = [ ] , $ search = '' , $ offset = 0 , $ limit = 30 ) { $ propertyFilters = $ this -> getPropertyFilters ( $ search ) ; $ result = [ ] ; $ resourceLookup = $ this -> getResourceLookup ( $ format ) ; if ( ! is_null ( $ resourceLookup ) ) { $ result = $ resourceLookup -> getResources ( $ rootClass , $ selectedUris , $ propertyFilters , $ offset , $ limit ) ; } return $ result ; }
Retrieve the resources for the given parameters
@param \core_kernel_classes_Class $resourceClass the resource class
@param string                     $format        the lookup format
@param string|array               $search        to filter by label if a string or provides the search filters
@param int                        $offset        for paging
@param int                        $limit         for paging
@return array the resources
Retrieve the resources for the given parameters