Documentation Menu

1.5 Template Project

The Joomla! Documentation Working Group is running a project to develop detailed reference and tutorial material on Joomla! 1.5 templates.  There is a project page on the documentation wiki where you can see the work in progress and help us by contributing your knowledge.

Who's Online

We have 12 guests online

Help Site License

The Joomla! Help Site content is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution NonCommercial ShareAlike 2.5. Some parts of this website may be subject to other licenses.
Home arrow Manual arrow 11. API Reference arrow [WORKING] mosDBTable->hit

[WORKING] mosDBTable->hit PDF Print E-mail

Last reviewed: Not reviewed


Generic hit count update. This method may be overloaded/supplemented by the child class as required.

This method increments the 'hit' column is a specified table row in the database.

If the $mosConfig_enable_log_items configuration variable is true then it also adds an entry to the jos_core_log_items database table.


void hit ( [ int $id ] )

is the primary key id for the record to be updated. This parameter is optional and if omitted will default to null.


Example: In this example the hit counter for a specific content record is incremented.

global $database;
// Declare an instance of the content class.
$content = new mosContent( $database );
// Increment the hit count for a content record.
$uid = 5;
$content->hit( $uid );

Please report any errors on this page to the Developer Documentation Forum.

Last Updated ( Monday, 25 December 2006 )
< Prev   Next >