Back to PhocacartDownload class

Method getDownloadFilePublic

public static
getDownloadFilePublic
(mixed $id)

Method getDownloadFilePublic - Source code

public static function getDownloadFilePublic($id)
{
    $db = Factory::getDBO();
    $query = ' SELECT a.public_download_file' . ' FROM #__phocacart_products AS a' . ' WHERE a.id = ' . (int) $id . ' ORDER BY a.id' . ' LIMIT 1';
    $db->setQuery($query);
    $file = $db->loadObject();
    return $file;
}