You are here

class xautoload_ClassLoader_ApcAggressive in X Autoload 7.3

Hierarchy

Expanded class hierarchy of xautoload_ClassLoader_ApcAggressive

File

lib/ClassLoader/ApcAggressive.php, line 4

View source
class xautoload_ClassLoader_ApcAggressive extends xautoload_ClassLoader_ApcCache {

  /**
   * Find the file where we expect a class to be defined.
   *
   * @param string $class
   *   The class to find.
   *
   * @return string
   *   File where the class is assumed to be defined.
   */
  function findFile($class) {
    if (FALSE === ($file = apc_fetch($this->prefix . $class))) {
      apc_store($this->prefix . $class, $file = parent::findFile($class));
    }
    return $file;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
xautoload_ClassLoader_ApcAggressive::findFile function Find the file where we expect a class to be defined. Overrides xautoload_ClassLoader_ApcCache::findFile
xautoload_ClassLoader_ApcCache::$prefix protected property
xautoload_ClassLoader_ApcCache::loadClass function Callback for class loading. This will include ("require") the file found. Overrides xautoload_ClassLoader_NoCache::loadClass
xautoload_ClassLoader_ApcCache::setApcPrefix function Set the APC prefix after a flush cache.
xautoload_ClassLoader_ApcCache::__construct function Overrides xautoload_ClassLoader_NoCache::__construct
xautoload_ClassLoader_NoCache::$finder protected property
xautoload_ClassLoader_NoCache::register function Registers this instance as an autoloader. Overrides xautoload_ClassLoader_Interface::register
xautoload_ClassLoader_NoCache::setFinder function Replace the finder with another one.
xautoload_ClassLoader_NoCache::unregister function Unregister from the spl autoload stack. Overrides xautoload_ClassLoader_Interface::unregister