/** * */ public static function getInstance() { if (self::$instance == NULL) { self::$instance = new refnotes_parser_core(); } return self::$instance; }
/** * */ public function setNoteText($text) { if ($text != '') { $calls = refnotes_parser_core::getInstance()->getInstructions($text); $this->call->insertBefore(new refnotes_nest_instruction($calls)); } }
/** * */ 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()); } }