当前位置: 首页>>代码示例>>PHP>>正文


PHP Vtiger_Module::syncfile方法代码示例

本文整理汇总了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());
开发者ID:gitter-badger,项目名称:openshift-salesplatform,代码行数:31,代码来源:540_to_600RC.php


注:本文中的Vtiger_Module::syncfile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。