Example #1
0
 /**
  *
  */
 public static function getInstance()
 {
     if (self::$instance == NULL) {
         self::$instance = new refnotes_parser_core();
     }
     return self::$instance;
 }
Example #2
0
 /**
  *
  */
 public function setNoteText($text)
 {
     if ($text != '') {
         $calls = refnotes_parser_core::getInstance()->getInstructions($text);
         $this->call->insertBefore(new refnotes_nest_instruction($calls));
     }
 }
Example #3
0
 /**
  *
  */
 public function handle($event, $param)
 {
     refnotes_parser_core::getInstance()->enterParsingContext();
 }
 /**
  *
  */
 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());
     }
 }