本文整理匯總了PHP中TextField::help方法的典型用法代碼示例。如果您正苦於以下問題:PHP TextField::help方法的具體用法?PHP TextField::help怎麽用?PHP TextField::help使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類TextField
的用法示例。
在下文中一共展示了TextField::help方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: help
public function help()
{
if ($this->suggestion and !$this->readonly) {
$this->help = $this->suggestion();
}
return parent::help();
}
示例2: help
public function help()
{
if ($this->page and !$this->page->isSite()) {
if (!empty($this->help)) {
$this->help .= '<br />';
}
$this->help .= '→ <a style="color: #777; border:none" data-modal title="' . $this->page->previewUrl() . '" href="' . $this->page->url('url') . '">' . ltrim($this->page->parent()->slug() . '/', '/') . $this->page->slug() . '</a>';
}
return parent::help();
}
示例3: help
public function help()
{
if ($this->page and !$this->page->isSite()) {
if (!empty($this->help)) {
$this->help = $this->i18n($this->help);
$this->help .= '<br />';
}
// build a readable version of the page slug
$slug = ltrim($this->page->parent()->slug() . '/', '/') . $this->page->slug();
// TODO: move this to the css file
$style = 'padding-left: .5rem; color: #777; border:none';
if ($this->page->canChangeUrl()) {
$this->help .= '→<a style="' . $style . '" data-modal title="' . $this->page->url('preview') . '" href="' . $this->page->url('url') . '">' . $slug . '</a>';
} else {
$this->help .= '→<span style="' . $style . '" title="' . $this->page->url('preview') . '">' . $slug . '</span>';
}
}
return parent::help();
}