本文整理汇总了PHP中Vtiger_Module::syncfile方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_Module::syncfile方法的具体用法?PHP Vtiger_Module::syncfile怎么用?PHP Vtiger_Module::syncfile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Vtiger_Module
的用法示例。
在下文中一共展示了Vtiger_Module::syncfile方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$vendorAssignedToField->name = 'assigned_user_id';
$vendorAssignedToField->label = 'Assigned To';
$vendorAssignedToField->table = 'vtiger_crmentity';
$vendorAssignedToField->column = 'smownerid';
$vendorAssignedToField->uitype = 53;
$vendorAssignedToField->typeofdata = 'V~M';
$vendorBlock->addField($vendorAssignedToField);
$vendorAllFilter = Vtiger_Filter::getInstance('All', $vendorInstance);
$vendorAllFilter->addField($vendorAssignedToField, 5);
}
// Allow Sharing access and role-based security for Vendors
Vtiger_Access::deleteSharing($vendorInstance);
Vtiger_Access::initSharing($vendorInstance);
Vtiger_Access::allowSharing($vendorInstance);
Vtiger_Access::setDefaultSharing($vendorInstance);
Vtiger_Module::syncfile();
// Add Email Opt-out for Leads
$leadsInstance = Vtiger_Module::getInstance('Leads');
$leadsOptOutField = Vtiger_Field::getInstance('emailoptout', $leadsInstance);
if (!$leadsOptOutField) {
$leadsOptOutField = new Vtiger_Field();
$leadsOptOutField->name = 'emailoptout';
$leadsOptOutField->label = 'Email Opt Out';
$leadsOptOutField->table = 'vtiger_leaddetails';
$leadsOptOutField->column = $leadsOptOutField->name;
$leadsOptOutField->columntype = 'VARCHAR(3)';
$leadsOptOutField->uitype = 56;
$leadsOptOutField->typeofdata = 'C~O';
$leadsInformationBlock = Vtiger_Block::getInstance('LBL_LEAD_INFORMATION', $leadsInstance);
$leadsInformationBlock->addField($leadsOptOutField);
Migration_Index_View::ExecuteQuery('UPDATE vtiger_leaddetails SET emailoptout=0 WHERE emailoptout IS NULL', array());