About Last Access

Allows to check when a page has been access the last time by a specific user.

Category 1Development Tools
Modules that have more to do with assisting development of a site rather than managing its content.
Category 2Other Modules
Modules that have a unique purpose not covered by existing categories.
Release StateStable
Should be safe for use in production environments. *
Authorphilipp
Module Version1.0.0
Class NamePageLastAccess
Compatibility2.5, 2.6, 2.7
Date AddedOctober 10, 2014
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/PageLastAccess/
How to install or uninstall modules

README

Last Access

This module adds the property $page->lastAccess, which returns the timestamp, the user has visited the page the last time.

It also adds the property $user->accessedPages, that returns an array of all pages, the user has visited, plus the timestamps of the last access.

Examples

$page->lastAccess; // => 1412969969
$accesses = $user->accessedPages; // => array
$accesses[0]->timestamp; // => 1412969969
$accesses[0]->page; // => Page

Comments

  • netcarver

    netcarver 5 years ago 00

    Could you please open a thread on the PW forums that you link to on this page - it allows people a more centralised place to discuss your module.

    Thank you!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.