Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

get_resources_by_resource_data_value()

Description

Get all resources by resource_type_field and value

Parameters

ColumnTypeDefaultDescription
$resource_type_field string
$value string

Return

array

Location

include/resource_functions.php lines 7296 to 7305

Definition

 
function get_resources_by_resource_data_value($resource_type_field$value)
    {
    return 
sql_value("
        SELECT rd.resource AS `value`
          FROM resource_data AS rd
         WHERE rd.resource > 0
           AND resource_type_field = '
{$resource_type_field}'
           AND rd.`value` = '
$value'
    "
0);
    }

This article was last updated 8th July 2020 11:35 Europe/London time based on the source file dated 7th July 2020 16:18 Europe/London time.