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

add_saved_search()

Description

Add a saved search to a collection

Parameters

ColumnTypeDefaultDescription
$collection integer

Return

void

Location

include/collections_functions.php lines 2451 to 2454

Definition

 
function add_saved_search($collection)
    {
    
ps_query("insert into collection_savedsearch(collection,search,restypes,archive) values (?,?,?,?)",array("i",$collection,"s",getval("addsearch",""),"s",getval("restypes",""),"s",getval("archive","")));
    }

This article was last updated 27th April 2023 11:05 Europe/London time based on the source file dated 11th April 2023 18:25 Europe/London time.