fs::rss::lastUpdated (private)

 fs::rss::lastUpdated summary_context_id

Defined in packages/file-storage/tcl/file-storage-rss-procs.tcl

Returns the time that the last file was modified, in Unix time. Returns 0 otherwise.

Parameters:
summary_context_id
Author:
Andrew Grumet <aegrumet@alum.mit.edu>

Partial Call Graph (max 5 caller/called nodes):
%3 AcsSc.rssgenerationsubscriber.lastupdated.fs_rss AcsSc.rssgenerationsubscriber.lastupdated.fs_rss (private) fs::rss::lastUpdated fs::rss::lastUpdated AcsSc.rssgenerationsubscriber.lastupdated.fs_rss->fs::rss::lastUpdated fs::rss::create_rss_gen_subscr_impl fs::rss::create_rss_gen_subscr_impl (private) fs::rss::create_rss_gen_subscr_impl->fs::rss::lastUpdated db_1row db_1row (public) fs::rss::lastUpdated->db_1row

Testcases:
No testcase defined.
Source code:

    #result differs on whether we're including revisions

    db_1row select_last_updated {
    select (max(last_modified)-to_date('1970-01-01','YYYY-MM-DD'))*60*60*24 as last_update
        from fs_rss_subscrs s, fs_objects f
        where s.subscr_id = :summary_context_id
          and f.parent_id = s.folder_id
          and f.type != 'folder'
    }

    return $last_update
Generic XQL file:
packages/file-storage/tcl/file-storage-rss-procs.xql

PostgreSQL XQL file:
packages/file-storage/tcl/file-storage-rss-procs-postgresql.xql

Oracle XQL file:
packages/file-storage/tcl/file-storage-rss-procs-oracle.xql

[ hide source ]
Show another procedure: