public function setLastVisit($timestamp = 'now')
	{
		$timestamp = new Date($timestamp);

		$query = $this->getQuery()
			->update($this->getTableName())
			->set(array('lastvisitDate' => $timestamp->toSql()))
			->whereEquals('id', $this->get('id'));

		return $query->execute();
	}
public function setLastVisit($timestamp = 'now')
	{
		$timestamp = new Date($timestamp);

		$query = $this->getQuery()
			->update($this->getTableName())
			->set(array('lastvisitDate' => $timestamp->toSql()))
			->whereEquals('id', $this->get('id'));

		return $query->execute();
	}
public function setLastVisit ( $ timestamp = 'now' ) { $ timestamp = new Date ( $ timestamp ) ; $ query = $ this -> getQuery ( ) -> update ( $ this -> getTableName ( ) ) -> set ( array ( 'lastvisitDate' => $ timestamp -> toSql ( ) ) ) -> whereEquals ( 'id' , $ this -> get ( 'id' ) ) ; return $ query -> execute ( ) ; }
Pass through method to the table for setting the last visit date

@param   integer  $timestamp  The timestamp, defaults to 'now'.
@return  boolean  True on success.
@since   2.1.0
Pass through method to the table for setting the last visit date