views::viewed_p (public)

 views::viewed_p [ -object_id object_id ] [ -user_id user_id ] \
    [ -type type ]

Defined in packages/views/tcl/views-procs.tcl

Returns whether an object was viewed by specified user.

Switches:
-object_id (optional)
viewed object id
-user_id (optional, defaults to "0")
viewing user id
-type (optional)
filter results by type
Returns:
boolean value

Testcases:
view_api_test_without_type, view_api_test_with_type
[ show source ]
Show another procedure: