本文整理汇总了PHP中Markdown::setup方法的典型用法代码示例。如果您正苦于以下问题:PHP Markdown::setup方法的具体用法?PHP Markdown::setup怎么用?PHP Markdown::setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Markdown
的用法示例。
在下文中一共展示了Markdown::setup方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setup
protected function setup()
{
#
# Setting up Extra-specific variables.
#
parent::setup();
$this->footnotes = array();
$this->footnotes_ordered = array();
$this->footnotes_ref_count = array();
$this->footnotes_numbers = array();
$this->abbr_desciptions = array();
$this->abbr_word_re = '';
$this->footnote_counter = 1;
foreach ($this->predef_abbr as $abbr_word => $abbr_desc) {
if ($this->abbr_word_re) {
$this->abbr_word_re .= '|';
}
$this->abbr_word_re .= preg_quote($abbr_word);
$this->abbr_desciptions[$abbr_word] = trim($abbr_desc);
}
}
示例2: setup
protected function setup()
{
#
# Setting up Extra-specific variables.
#
parent::setup();
$this->footnotes = array();
$this->footnotesOrdered = array();
$this->footnotesRefCount = array();
$this->footnotesNumbers = array();
$this->abbrDesciptions = array();
$this->abbrWordRe = '';
$this->footnoteCounter = 1;
foreach ($this->predefAbbr as $abbrWord => $abbrDesc) {
if ($this->abbrWordRe) {
$this->abbrWordRe .= '|';
}
$this->abbrWordRe .= preg_quote($abbrWord);
$this->abbrDesciptions[$abbrWord] = trim($abbrDesc);
}
}