示例#1
0
 /**
  *
  */
 public static function getInstance()
 {
     if (self::$instance == NULL) {
         self::$instance = new refnotes_parser_core();
     }
     return self::$instance;
 }
示例#2
0
 /**
  *
  */
 public function setNoteText($text)
 {
     if ($text != '') {
         $calls = refnotes_parser_core::getInstance()->getInstructions($text);
         $this->call->insertBefore(new refnotes_nest_instruction($calls));
     }
 }
示例#3
0
 /**
  *
  */
 public function handle($event, $param)
 {
     refnotes_parser_core::getInstance()->enterParsingContext();
 }
示例#4
0
 /**
  *
  */
 private function handleExit()
 {
     $reference = refnotes_parser_core::getInstance()->exitReference();
     if ($reference->hasData()) {
         return array('render', $reference->getAttributes(), $reference->getData());
     } else {
         return array('render', $reference->getAttributes());
     }
 }