當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。