Exemplo n.º 1
0
 /**
  * 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;
     }
 }