Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_alternative_file()

Parameters

ColumnTypeDefaultDescription
$resource
$ref

Location

include/resource_functions.php lines 5143 to 5148

Definition

 
function get_alternative_file($resource,$ref)
    {
    
# Returns the row for the requested alternative file
    
$return=ps_query("select ref,name,description,file_name,file_extension,file_size,creation_date,alt_type from resource_alt_files where resource=? and ref=?",array("i",$resource,"i",$ref));
    if (
count($return)==0) {return false;} else {return $return[0];}
    }

This article was last updated 21st May 2024 21:35 Europe/London time based on the source file dated 20th May 2024 14:55 Europe/London time.