本文整理匯總了PHP中ViewList::getModuleTitle方法的典型用法代碼示例。如果您正苦於以下問題:PHP ViewList::getModuleTitle方法的具體用法?PHP ViewList::getModuleTitle怎麽用?PHP ViewList::getModuleTitle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ViewList
的用法示例。
在下文中一共展示了ViewList::getModuleTitle方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getModuleTitle
/**
* Gets the WorkFlow module title. This is overridden to allow the addition
* of the WorkFlow sunsetting messaging for 7.6.1
*
* @param boolean $show_help Used to tell the parent whether to show additional links
* @return string
*/
public function getModuleTitle($show_help = true)
{
// Get the current module title with all the cruft
$title = parent::getModuleTitle(false);
// Get rid of the closing clearing div for now
$title = str_replace("</div></div>", '</div>', $title);
// Manipulate the moduleTitle class
$title = str_replace("class='moduleTitle'", "class='moduleTitle workflow-sunset-title'", $title);
// Add in our sunset message and add back the closing clearing div that
// was removed earlier
$title .= '<span class="error workflow-sunset">' . translate('LBL_WORKFLOW_SUNSET_NOTICE', $this->module) . '</span></div>';
return $title;
}