本文整理匯總了PHP中Am_Form_Setup::addEpilog方法的典型用法代碼示例。如果您正苦於以下問題:PHP Am_Form_Setup::addEpilog方法的具體用法?PHP Am_Form_Setup::addEpilog怎麽用?PHP Am_Form_Setup::addEpilog使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Am_Form_Setup
的用法示例。
在下文中一共展示了Am_Form_Setup::addEpilog方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: _afterInitSetupForm
protected function _afterInitSetupForm(Am_Form_Setup $form)
{
if ($this->_configPrefix) {
$form->addFieldsPrefix($this->_configPrefix . $this->getId() . '.');
}
if ($plugin_readme = $this->getReadme()) {
$plugin_readme = str_replace(array('%root_url%', '%root_surl%', '%root_dir%'), array(ROOT_URL, ROOT_SURL, ROOT_DIR), $plugin_readme);
$form->addEpilog('<div class="info"><pre>' . $plugin_readme . '</pre></div>');
}
if (defined($const = get_class($this) . "::PLUGIN_STATUS") && (constant($const) == self::STATUS_BETA || constant($const) == self::STATUS_DEV)) {
$beta = constant($const) == self::STATUS_DEV ? 'ALPHA' : 'BETA';
$form->addProlog("<div class='warning_box'>This plugin is currently in {$beta} testing stage, some features may be unstable. " . "Please test it carefully before use.</div>");
}
}