本文整理匯總了PHP中CRM_Core_PseudoConstant::getModuleExtensions方法的典型用法代碼示例。如果您正苦於以下問題:PHP CRM_Core_PseudoConstant::getModuleExtensions方法的具體用法?PHP CRM_Core_PseudoConstant::getModuleExtensions怎麽用?PHP CRM_Core_PseudoConstant::getModuleExtensions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CRM_Core_PseudoConstant
的用法示例。
在下文中一共展示了CRM_Core_PseudoConstant::getModuleExtensions方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: clearModuleList
/**
* Flush information about loaded modules.
*/
public function clearModuleList()
{
CRM_Extension_System::singleton()->getCache()->flush();
CRM_Utils_Hook::singleton(TRUE);
CRM_Core_PseudoConstant::getModuleExtensions(TRUE);
CRM_Core_Module::getAll(TRUE);
}
示例2: assertModuleActiveByName
/**
* @param $expectedIsActive
* @param $prefix
*/
public function assertModuleActiveByName($expectedIsActive, $prefix)
{
$activeModules = CRM_Core_PseudoConstant::getModuleExtensions(TRUE);
// FIXME
foreach ($activeModules as $activeModule) {
if ($activeModule['prefix'] == $prefix) {
$this->assertEquals($expectedIsActive, TRUE);
return;
}
}
$this->assertEquals($expectedIsActive, FALSE);
}
示例3: isOnlineSubmissionExtensionInstalled
/**
* @return bool
*/
public static function isOnlineSubmissionExtensionInstalled()
{
$extensions = CRM_Core_PseudoConstant::getModuleExtensions();
foreach ($extensions as $key => $extension) {
if ($extension['prefix'] == 'giftaidonline') {
return TRUE;
}
}
return FALSE;
}
示例4: requireCiviModules
/**
* @param $moduleList
*/
public function requireCiviModules(&$moduleList)
{
$civiModules = CRM_Core_PseudoConstant::getModuleExtensions();
foreach ($civiModules as $civiModule) {
if (!file_exists($civiModule['filePath'])) {
CRM_Core_Session::setStatus(ts('Error loading module file (%1). Please restore the file or disable the module.', array(1 => $civiModule['filePath'])), ts('Warning'), 'error');
continue;
}
include_once $civiModule['filePath'];
$moduleList[$civiModule['prefix']] = $civiModule['prefix'];
}
}
示例5: clearModuleList
/**
* Flush information about loaded modules
*/
function clearModuleList()
{
CRM_Utils_Hook::singleton(TRUE);
CRM_Core_PseudoConstant::getModuleExtensions(TRUE);
CRM_Core_Module::getAll(TRUE);
}