Example #1
0
function file_type(&$row)
{
    global $current_File;
    // Instantiate a File object for this line:
    $current_File = new File($row->file_root_type, $row->file_root_ID, $row->file_path);
    // COPY (FUNC) needed for following columns
    // Flow meta data into File object:
    $current_File->load_meta(false, $row);
    return $current_File->get_preview_thumb('fulltype');
}
Example #2
0
function display_subtype(&$row)
{
    if (empty($row->file_ID)) {
        return '';
    }
    global $current_File;
    // Instantiate a File object for this line:
    $current_File = new File($row->file_root_type, $row->file_root_ID, $row->file_path);
    // COPY!
    // Flow meta data into File object:
    $current_File->load_meta(false, $row);
    return $current_File->get_preview_thumb('fulltype');
}