Beispiel #1
0
<?php

//activate Lookups
require_once 'AMP/System/Lookups.inc.php';
require_once 'AMP/Registry.php';
$lookup_factory =& AMPSystem_LookupFactory::instance();
$lookup_factory->init(AMP_Registry::getDbcon());
//require_once( 'AMP/Content/Map.inc.php');
Beispiel #2
0
 function clear_cache($section_id)
 {
     static $lookup = array();
     if (!isset($lookup[$section_id])) {
         $lookup[$section_id] = new AMPContentLookup_RelatedArticles($section_id);
     }
     $factory =& AMPSystem_LookupFactory::instance();
     $factory->clearCache($lookup[$section_id]);
 }
Beispiel #3
0
 function clearCache()
 {
     $factory = AMPSystem_LookupFactory::instance();
     $factory->clearCache($this);
 }