本文整理汇总了PHP中Vtiger_Utils::ModuleLog方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_Utils::ModuleLog方法的具体用法?PHP Vtiger_Utils::ModuleLog怎么用?PHP Vtiger_Utils::ModuleLog使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vtiger_Utils
的用法示例。
在下文中一共展示了Vtiger_Utils::ModuleLog方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: runScheduledReports
public static function runScheduledReports()
{
vimport('~~modules/com_vtiger_workflow/VTWorkflowUtils.php');
$util = new VTWorkflowUtils();
$util->adminUser();
$currentModule = vglobal('currentModule');
$current_language = vglobal('current_language');
if (empty($currentModule)) {
$currentModule = 'Reports';
}
if (empty($current_language)) {
vglobal('current_language', 'en_us');
}
$scheduledReports = self::getScheduledReports();
foreach ($scheduledReports as $scheduledReport) {
$status = $scheduledReport->sendEmail();
Vtiger_Utils::ModuleLog('ScheduleReprot Send Mail Status ', $status);
if ($status) {
$scheduledReport->updateNextTriggerTime();
}
}
$util->revertUser();
return $status;
}
示例2: session_regenerate_id
$focus->load_user($user_password);
$successURL = 'vtigerui.php';
if (file_exists(dirname(__FILE__) . '/../../vtigerui-deferred.php')) {
/* Ondemand Customization:
* Authenticate done via iFrame and Parent invokes index.php explicitly
* so lets instruct redirection page to wait for few seconds and then act.
*/
$successURL = 'vtigerui-deferred.php';
}
if ($focus->is_authenticated()) {
session_regenerate_id();
// Ondemand Customization
if (file_exists('modules/Ondemand/VAS.php')) {
include_once 'modules/Ondemand/VAS.php';
$response = VAS_Client::auditLogin(array('user_name' => vtlib_purify($_REQUEST['user_name'])), 'WebUI5');
Vtiger_Utils::ModuleLog('Ondemand', 'User Aduit Login', $response);
}
// END
//Inserting entries for audit trail during login
// Ondemand : disable audit trial
$audit_trail = 'false';
if ($audit_trail == 'true') {
if ($record == '') {
$auditrecord = '';
} else {
$auditrecord = $record;
}
$date_var = $adb->formatDate(date('Y-m-d H:i:s'), true);
$query = "insert into vtiger_audit_trial values(?,?,?,?,?,?)";
$params = array($adb->getUniqueID('vtiger_audit_trial'), $focus->id, 'Users', 'Authenticate', '', $date_var);
$adb->pquery($query, $params);