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_nodes_from_keywords()

Description

Return an array of all node IDs where the node contains any of the keyword IDs passed

Parameters

ColumnTypeDefaultDescription
$keywords array array An array of keyword IDs for the indexed content

Return

array Matching node IDs

Location

include/node_functions.php lines 1580 to 1584

Definition

 
function get_nodes_from_keywords($keywords=array())
    {
    if(!
is_array($keywords)){$keywords=array($keywords);}
    return 
ps_array("select node value FROM node_keyword WHERE keyword in (" ps_param_insert(count($keywords)) . ")"ps_param_fill($keywords,"i")); 
    }

This article was last updated 23rd June 2022 16:05 Europe/London time based on the source file dated 8th June 2022 10:20 Europe/London time.