[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/data/ -> Tracker.php (summary)

(no description)

File Size: 239 lines (9 kb)
Included or required: 7 times
Referenced: 0 times
Includes or requires: 5 files
 include/utils/UserInfoUtil.php
 include/logging.php
 include/database/PearDatabase.php
 config.php
 include/utils/utils.php

Defines 1 class

Tracker:: (6 methods):
  Tracker()
  track_view()
  get_recently_viewed()
  delete_history()
  delete_item_history()
  prune_history()


Class: Tracker  - X-Ref

Tracker()   X-Ref
No description

track_view($user_id, $current_module, $item_id, $item_summary)   X-Ref
Add this new item to the vtiger_tracker vtiger_table.  If there are too many items (global config for now)
then remove the oldest item.  If there is more than one extra item, log an error.
If the new item is the same as the most recent item then do not change the list
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


get_recently_viewed($user_id, $module_name = "")   X-Ref
param $user_id - The id of the user to retrive the history for
param $module_name - Filter the history to only return records from the specified module.  If not specified all records are returned
return - return the array of result set rows from the query.  All of the vtiger_table vtiger_fields are included
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


delete_history( $user_id, $item_id)   X-Ref
INTERNAL -- This method cleans out any entry for a record for a user.
It is used to remove old occurances of previously viewed items.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


delete_item_history($item_id)   X-Ref
INTERNAL -- This method cleans out any entry for a record.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..


prune_history($user_id)   X-Ref
INTERNAL -- This function will clean out old history records for this user if necessary.
Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
All Rights Reserved.
Contributor(s): ______________________________________..




Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1