本文整理汇总了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);
}
示例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;
}
示例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);
}
示例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);
}
示例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());
}
示例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 {
示例7: getAllModuleList
/**
* Function to get all entity modules
* @return <array>
*/
public function getAllModuleList()
{
return parent::getEntityModules();
}