コード例 #1
0
ファイル: pharse_xml2array.php プロジェクト: ressio/pharse
 protected function parse_text()
 {
     parent::parse_text();
     if ($this->status['text'] !== '' && $this->hierarchy) {
         $current =& $this->hierarchy[count($this->hierarchy) - 1];
         if (!$current['children']) {
             $current['tagData'] = $this->status['text'];
         }
     }
 }
コード例 #2
0
ファイル: pharse_parser_html.php プロジェクト: ressio/pharse
 protected function parse_text()
 {
     parent::parse_text();
     if ($this->status['text'] !== '') {
         $index = null;
         //Needs to be passed by ref
         $this->hierarchy[count($this->hierarchy) - 1]->addText($this->status['text'], $index);
     }
 }
コード例 #3
0
ファイル: ganon.php プロジェクト: coolgod/cmb-xr-crawler
 function parse_text()
 {
     parent::parse_text();
     if ($this->status['text'] !== '') {
         $index = null;
         $this->hierarchy[count($this->hierarchy) - 1]->addText($this->status['text'], $index);
     }
 }