API15

JUser/setLastVisit

From Joomla! Documentation

< API15:JUser
Revision as of 17:17, 22 March 2010 by Doxiki (talk | contribs) (New page: ===Description=== Pass through method to the table for setting the last visit date <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>[[Description:JUser/setLastVisit...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The "API15" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Description[edit]

Pass through method to the table for setting the last visit date

[Edit Descripton]

Template:Description:JUser/setLastVisit

Syntax[edit]

setLastVisit($timestamp=null)
Parameter Name Default Value Description
$timestamp null $timestamp The timestamp, defaults to 'now'

Returns[edit]

boolean True on success

Defined in[edit]

libraries/joomla/user/user.php

Importing[edit]

jimport( 'joomla.user.user' );

Source Body[edit]

function setLastVisit($timestamp=null)
{
        // Create the user table object
        $table  =& $this->getTable();
        $table->load($this->id);

        return $table->setLastVisit($timestamp);
}

[Edit See Also] Template:SeeAlso:JUser/setLastVisit

Examples[edit]

<CodeExamplesForm />