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

Description

Return an SQL statement to find all editable resources in $actions_notify_states.

Parameters

This function accepts no parameters.

Return

mixed

Location

include/action_functions.php lines 112 to 121

Definition

 
function get_editable_resource_sql()
    {
    global 
$actions_notify_states$actions_resource_types_hide$default_display$list_display_fields$search_all_workflow_states;
    
$default_display    $list_display_fields;
    
$search_all_workflow_states false;
    
$rtypes=get_resource_types();
    
$searchable_restypes=implode(",",array_diff(array_column($rtypes,"ref"),explode(",",$actions_resource_types_hide)));
    
    return 
do_search("",$searchable_restypes,'resourceid',$actions_notify_states,-1,'desc',false,0,false,false,'',false,false,false,true,true);
    }

This article was last updated 8th December 2024 20:35 Europe/London time based on the source file dated 6th March 2024 14:45 Europe/London time.