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


PHP Vtiger_Module_Model::getEntityModules方法代码示例

本文整理汇总了PHP中Vtiger_Module_Model::getEntityModules方法的典型用法代码示例。如果您正苦于以下问题:PHP Vtiger_Module_Model::getEntityModules方法的具体用法?PHP Vtiger_Module_Model::getEntityModules怎么用?PHP Vtiger_Module_Model::getEntityModules使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Vtiger_Module_Model的用法示例。


在下文中一共展示了Vtiger_Module_Model::getEntityModules方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: process

 public function process(Vtiger_Request $request) {
     
     $viewer = $this->getViewer ($request); 
     $moduleName = $request->getModule();
     $qualifiedModuleName = $request->getModule(false);
     
     $viewer->assign('ALL_MODULES', Vtiger_Module_Model::getEntityModules());
     $viewer->assign('MODULENAME', $moduleName);
     echo $viewer->view('List.tpl', $qualifiedModuleName,true);        
 }
开发者ID:Wasage,项目名称:werpa,代码行数:10,代码来源:List.php

示例2: getAllModuleList

 /**
  * Function to get all entity modules
  * @return <array>
  */
 public function getAllModuleList()
 {
     $moduleModels = parent::getEntityModules();
     $restrictedModules = array('Emails', 'ProjectMilestone', 'ModComments', 'Rss', 'Portal', 'Integration', 'PBXManager', 'Dashboard', 'Home');
     foreach ($moduleModels as $key => $moduleModel) {
         if (in_array($moduleModel->getName(), $restrictedModules) || $moduleModel->get('isentitytype') != 1) {
             unset($moduleModels[$key]);
         }
     }
     return $moduleModels;
 }
开发者ID:cannking,项目名称:vtigercrm-debug,代码行数:15,代码来源:Module.php

示例3: process

 function process(Vtiger_Request $request)
 {
     $mode = $request->getMode();
     if (!empty($mode) && method_exists($this, $mode)) {
         $this->invokeExposedMethod($mode, $request);
         return;
     }
     $qualifiedModule = $request->getModule(true);
     $viewer = $this->getViewer($request);
     $moduleModels = Vtiger_Module_Model::getEntityModules();
     $viewer->assign('MODULES', $moduleModels);
     echo $viewer->view('AddDependency.tpl', $qualifiedModule);
 }
开发者ID:Bergdahls,项目名称:YetiForceCRM,代码行数:13,代码来源:AddDependency.php

示例4: process

 public function process(Vtiger_Request $request)
 {
     $viewer = $this->getViewer($request);
     $moduleName = $request->getModule();
     $qualifiedModuleName = $request->getModule(false);
     $settings_block = $request->get('block');
     $settings_fieldid = $request->get('fieldid');
     $viewer->assign('LANGUAGES', Vtiger_Language_Handler::getAllLanguages());
     $viewer->assign('ALL_MODULES', Vtiger_Module_Model::getEntityModules());
     $viewer->assign('MODULE', $moduleName);
     $viewer->assign('SETTINGS_BLOCK', $settings_block);
     $viewer->assign('SETTINGS_FIELDID', $settings_fieldid);
     echo $viewer->view('List.tpl', $qualifiedModuleName, true);
 }
开发者ID:cin-system,项目名称:cinrepo,代码行数:14,代码来源:List.php

示例5: process

    public function process(Vtiger_Request $request) {

        $viewer = $this->getViewer($request);
        
        $entityModules = Vtiger_Module_Model::getEntityModules();
        $restrictedModules = array('Emails','Documents','Campaigns', 'Calendar','Faq','Events','Webmails','ModComments', 'SMSNotifier', 'PBXManager', 'Users'); //Modules where related fields do not work as expected

        $modules = array();
        foreach ($entityModules as $entityModule) {
            if(!in_array($entityModule->name, $restrictedModules)){
                array_push($modules, $entityModule->name);
            }
        }

        $viewer->assign('ENTITY_MODULES', $modules);

        $viewer->view('VGSDupAddNew.tpl', $request->getModule());
    }
开发者ID:Wasage,项目名称:werpa,代码行数:18,代码来源:VGSDupAddNew.php

示例6: foreach

    for ($i = 0; $i < $numRows; $i++) {
        $row = $adb->query_result_rowdata($queryResult, $i);
        $activityIds[$row['id']] = $row['defaultcolor'];
    }
    $allUsers = Users_Record_Model::getAll(true);
    foreach ($allUsers as $userId => $userModel) {
        foreach ($activityIds as $activityId => $color) {
            Migration_Index_View::ExecuteQuery('INSERT INTO vtiger_calendar_user_activitytypes (id, defaultid, userid, color) VALUES (?,?,?,?)', array($adb->getUniqueID('vtiger_calendar_user_activitytypes'), $activityId, $userId, $color));
        }
    }
    echo '<br>Default Calendar view types added to the table for all existing users';
}
Migration_Index_View::ExecuteQuery("UPDATE vtiger_field SET quickcreate = ? WHERE tabid = 8 AND (fieldname = ? OR fieldname = ?);", array(0, "filename", "filelocationtype"));
//95 ends
//96 starts
$entityModulesModels = Vtiger_Module_Model::getEntityModules();
$fieldNameToDelete = 'created_user_id';
if ($entityModulesModels) {
    foreach ($entityModulesModels as $moduleInstance) {
        if ($moduleInstance) {
            $module = $moduleInstance->name;
            $fieldInstance = Vtiger_Field::getInstance($fieldNameToDelete, $moduleInstance);
            if ($fieldInstance) {
                $fieldInstance->delete();
                echo "<br>";
                echo "For {$module} created by is removed";
            } else {
                echo "<br>";
                echo "For {$module} created by is not there";
            }
        } else {
开发者ID:lsmonki,项目名称:vtigercrm,代码行数:31,代码来源:600_to_610.php

示例7: getAllModuleList

 /**
  * Function to get all entity modules
  * @return <array>
  */
 public function getAllModuleList()
 {
     return parent::getEntityModules();
 }
开发者ID:nouphet,项目名称:vtigercrm-6.0.0-ja,代码行数:8,代码来源:Module.php


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