content::type::content_type_p (public)

 content::type::content_type_p -content_type content_type \
    -mime_type mime_type

Defined in packages/acs-content-repository/tcl/content-type-procs.tcl

Checks if the mime_type is of the content_type, e.g. if application/pdf is of content_type "image" (which it should not...) Cached

Switches:
-content_type (required)
content type to check against
-mime_type (required)
mime type to check for

Partial Call Graph (max 5 caller/called nodes):
%3 fs::add_file fs::add_file (public) content::type::content_type_p content::type::content_type_p fs::add_file->content::type::content_type_p content::type::content_type_p_not_cached content::type::content_type_p_not_cached (private) content::type::content_type_p->content::type::content_type_p_not_cached util_memoize util_memoize (public) content::type::content_type_p->util_memoize

Testcases:
No testcase defined.
Source code:
    return [util_memoize [list content::type::content_type_p_not_cached -mime_type $mime_type -content_type $content_type]]
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-content-repository/tcl/content-type-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: