コード例 #1
0
ファイル: MarkdownExtra.php プロジェクト: sg-first/YMmd-Blog
 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
0
 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);
     }
 }