コード例 #1
0
 /**
  * Renew the cache prefix, save it, and notify all observers.
  */
 function renewCachePrefix()
 {
     $this->prefix = Util::randomString();
     $this->system->variableSet(XAUTOLOAD_VARNAME_CACHE_PREFIX, $this->prefix);
     foreach ($this->observers as $observer) {
         $observer->setCachePrefix($this->prefix);
     }
 }
コード例 #2
0
 /**
  * Renew the cache prefix, save it, and notify all observers.
  */
 function renewCachePrefix()
 {
     $this->prefix = Util::randomString();
     variable_set('xautoload_cache_prefix', $this->prefix);
     foreach ($this->observers as $observer) {
         $observer->setCachePrefix($this->prefix);
     }
 }
コード例 #3
0
 function __construct()
 {
     $this->instanceKey = Util::randomString();
     self::$instances[$this->instanceKey] = $this;
 }
コード例 #4
0
 /**
  * Legacy: Plugins were called "Handler" before.
  *
  * @deprecated
  *
  * @param string $namespace
  * @param xautoload_FinderPlugin_Interface $plugin
  *
  * @return string
  *   The key under which the plugin was registered. This can later be used to
  *   unregister the plugin again.
  */
 function namespaceHandler($namespace, $plugin)
 {
     $key = Util::randomString();
     $this->finder->registerNamespaceDeep($namespace, $key, $plugin);
     return $key;
 }