You are here

class xautoload_BootSchedule_Proxy in X Autoload 7.3

Hierarchy

Expanded class hierarchy of xautoload_BootSchedule_Proxy

File

lib/BootSchedule/Proxy.php, line 3

View source
class xautoload_BootSchedule_Proxy extends xautoload_Container_IdentityProxyObject implements xautoload_BootSchedule_Interface {

  /**
   * Init the phase where the database is available, and schedule the
   * registration of the namespaces and prefixes for all modules.
   */
  function initBootstrapPhase() {
    $this
      ->proxyScheduleOperation(__FUNCTION__);
  }

  /**
   * Init the phase where all *.module files are loaded, and schedule the
   * running of hook_xautoload() on all modules that implement it.
   */
  function initMainPhase() {
    $this
      ->proxyScheduleOperation(__FUNCTION__);
  }

  /**
   * Add modules after they have been enabled or installed.
   *
   * @param array $modules
   *   Array of module names, with numeric keys.
   */
  function modulesInstalledOrEnabled(array $modules) {
    $this
      ->proxyGetInstance()
      ->modulesInstalledOrEnabled($modules);
  }

  /**
   * The proxy finder has materialized,
   * and needs all scheduled namespace registrations to run now.
   *
   * @param xautoload_ClassFinder_Interface $finder
   *   The class finder where we register the namespaces and prefixes.
   */
  function setFinder($finder) {

    // Activate instantiation of the proxied schedule.
    // This will trigger all scheduled operations to run.
    $schedule = $this
      ->proxyGetInstance();

    // The schedule already knows the finder object.
    // Verify that it has the correct finder.
    $schedule
      ->verifyFinderInstance($finder);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
xautoload_BootSchedule_Proxy::initBootstrapPhase function Init the phase where the database is available, and schedule the registration of the namespaces and prefixes for all modules. Overrides xautoload_BootSchedule_Interface::initBootstrapPhase
xautoload_BootSchedule_Proxy::initMainPhase function Init the phase where all *.module files are loaded, and schedule the running of hook_xautoload() on all modules that implement it. Overrides xautoload_BootSchedule_Interface::initMainPhase
xautoload_BootSchedule_Proxy::modulesInstalledOrEnabled function Add modules after they have been enabled or installed. Overrides xautoload_BootSchedule_Interface::modulesInstalledOrEnabled
xautoload_BootSchedule_Proxy::setFinder function The proxy finder has materialized, and needs all scheduled namespace registrations to run now.
xautoload_Container_IdentityProxyObject::$identityInstance protected property
xautoload_Container_IdentityProxyObject::proxyCreateInstance protected function Overrides xautoload_Container_ProxyObject::proxyCreateInstance
xautoload_Container_IdentityProxyObject::__construct function
xautoload_Container_ProxyObject::$instance protected property
xautoload_Container_ProxyObject::$observers protected property
xautoload_Container_ProxyObject::$scheduled protected property
xautoload_Container_ProxyObject::proxyGetInstance function
xautoload_Container_ProxyObject::proxyObserveInstantiation function
xautoload_Container_ProxyObject::proxyScheduleOperation function