function findIntroText($introtext_id) { $location = new AMPSystem_IntroText($this->dbcon, $introtext_id); $this->current_element = $this->_trimText($location->getData('title')); $this->current_section = $location->getSection(); $this->content_type = AMP_CONTENT_PAGETYPE_TOOL; }
/** * Sets global values for intro_id, MM_title, MM_type * * @param AMPSystem_IntroText $introtext The IntroText whose values will be globalized */ function _globalizeIntroVars(&$introtext) { $GLOBALS['intro_id'] = $introtext->id; $this->_registry->setEntry(AMP_REGISTRY_CONTENT_INTRO_ID, $introtext->id); if ($title = $introtext->getTitle()) { $GLOBALS['MM_title'] = $GLOBALS['mod_name'] = $title; } if ($section_id = $introtext->getSection()) { $GLOBALS['MM_type'] = $section_id; } }