本文整理汇总了PHP中CRM_Contact_Form_Search::getTemplateFileName方法的典型用法代码示例。如果您正苦于以下问题:PHP CRM_Contact_Form_Search::getTemplateFileName方法的具体用法?PHP CRM_Contact_Form_Search::getTemplateFileName怎么用?PHP CRM_Contact_Form_Search::getTemplateFileName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CRM_Contact_Form_Search
的用法示例。
在下文中一共展示了CRM_Contact_Form_Search::getTemplateFileName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getTemplateFileName
function getTemplateFileName()
{
$ext = new CRM_Core_Extensions();
if ($ext->isExtensionClass(CRM_Utils_System::getClassName($this->_customClass))) {
$fileName = $ext->getTemplatePath(CRM_Utils_System::getClassName($this->_customClass)) . '/' . $ext->getTemplateName(CRM_Utils_System::getClassName($this->_customClass));
} else {
$fileName = $this->_customClass->templateFile();
}
return $fileName ? $fileName : parent::getTemplateFileName();
}
示例2: getTemplateFileName
function getTemplateFileName()
{
if (!$this->_searchPane) {
return parent::getTemplateFileName();
} else {
if (isset($this->_paneTemplatePath[$this->_searchPane])) {
return $this->_paneTemplatePath[$this->_searchPane];
} else {
$name = ucfirst($this->_searchPane);
return "CRM/Contact/Form/Search/Criteria/{$name}.tpl";
}
}
}
示例3: getTemplateFileName
function getTemplateFileName()
{
$ext = CRM_Extension_System::singleton()->getMapper();
if ($ext->isExtensionClass(CRM_Utils_System::getClassName($this->_customClass))) {
$fileName = $ext->getTemplatePath(CRM_Utils_System::getClassName($this->_customClass)) . '/' . $ext->getTemplateName(CRM_Utils_System::getClassName($this->_customClass));
} else {
$fileName = $this->_customClass->templateFile();
}
return $fileName ? $fileName : parent::getTemplateFileName();
}
示例4: getTemplateFileName
function getTemplateFileName()
{
$fileName = $this->_customClass->templateFile();
return $fileName ? $fileName : parent::getTemplateFileName();
}
示例5: getTemplateFileName
function getTemplateFileName()
{
require_once 'CRM/Core/Extensions.php';
$ext = new CRM_Core_Extensions();
if ($ext->isExtensionClass(CRM_Utils_System::getClassName($this->_customClass))) {
$filename = $ext->getTemplatePath(CRM_Utils_System::getClassName($this->_customClass));
} else {
$fileName = $this->_customClass->templateFile();
}
return $fileName ? $fileName : parent::getTemplateFileName();
}