| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
}
/**
- * Add log to civicrm_log table
+ * Add log to civicrm_log table.
*
* @param array $params
* Array of name-value pairs of log table.
*
- * @static
*/
public static function add(&$params) {
* @param int $tableID
* @param int $userID
*/
- static function register($contactID,
+ public static function register(
+ $contactID,
$tableName,
$tableID,
$userID = NULL
$logData = "$tableName,$tableID";
if (!$log->id) {
- $log->entity_table = 'civicrm_contact';
- $log->entity_id = $contactID;
- $log->modified_id = $userID;
+ $log->entity_table = 'civicrm_contact';
+ $log->entity_id = $contactID;
+ $log->modified_id = $userID;
$log->modified_date = date("YmdHis");
- $log->data = $logData;
+ $log->data = $logData;
$log->save();
}
else {
}
/**
- * Get log record count for a Contact
+ * Get log record count for a Contact.
*
* @param int $contactID
*
- * @return int count of log records
- * @static
+ * @return int
+ * count of log records
*/
public static function getContactLogCount($contactID) {
$query = "SELECT count(*) FROM civicrm_log
}
/**
- * Function for find out whether to use logging schema entries for contact
+ * Function for find out whether to use logging schema entries for contact.
* summary, instead of normal log entries.
*
- * @return int report id of Contact Logging Report (Summary) / false
- * @static
+ * @return int
+ * report id of Contact Logging Report (Summary) / false
*/
public static function useLoggingReport() {
// first check if logging is enabled
return FALSE;
}
+
}