Skip to content
perrym5 edited this page Apr 23, 2011 · 1 revision

Description

This function inserts a new entry into the database for this user and the given url.

Prototype

void User->add_click( string $url [, date $date] )

Parameters

url: The URL of the article that the user clicked on.

date optional: The time at which the user clicked. Defaults to now.

Return Value

None

Examples

Code:

<?php
$u = User::find( "abcde" );
$u->add_click( "http://www.google.com/" );
?>
Clone this wiki locally