You are here

interface DeployProcessor in Deploy - Content Staging 7.3

Same name and namespace in other branches
  1. 7.2 includes/DeployProcessor.inc \DeployProcessor

The interface for deployment processors.

Hierarchy

Expanded class hierarchy of DeployProcessor

All classes that implement DeployProcessor

File

includes/DeployProcessor.inc, line 10
Interface definition for deploy processors.

View source
interface DeployProcessor {

  /**
   * Constructor for a deploy processor.
   *
   * @param DeployAggregator $aggregator
   *   The aggregator object that will be processed.
   * @param array $config
   *   An associative array of configuration settings for the processor.
   */
  public function __construct(DeployAggregator $aggregator, array $config = array());

  /**
   * Runs all preprocess operations.
   *
   * @param array $operations
   *   An array of all operations to be run. Each operation contains a
   *   'callback' key with the name of the function to be run. Each function
   *   should take the aggregator as an argument.
   */
  public function preProcess(array $operations = array());

  /**
   * Main processing method that should hand over the aggregator to the endpoint
   * to deploy all the entities.
   *
   * @param integer $deployment_key
   *   The unique deployment key for this deployment.
   * @param DeployEndpoint $endpoint
   *   The endpoint object to hand over the aggregator to.
   * @param string $lock_name
   *   Optional name of the lock that this deployment is working under.
   */
  public function deploy($deployment_key, DeployEndpoint $endpoint, $lock_name = NULL);

  /**
   * Processing method that should hand over the aggregator to the endpoint
   * to publish all deployed entities. This method will only be called after
   * successful deployments.
   *
   * @param integer $deployment_key
   *   The unique deployment key for this deployment.
   * @param DeployEndpoint $endpoint
   *   The endpoint object to hand over the aggregator to.
   * @param string $lock_name
   *   Optional name of the lock that this deployment is working under.
   */
  public function publish($deployment_key, DeployEndpoint $endpoint, $lock_name = NULL);

  /**
   * Runs all postprocess operations.
   *
   * @param array $operations
   *   An array of all operations to be run. Each operation contains a
   *   'callback' key with the name of the function to be run. Each function
   *   should take the aggregator as an argument.
   */
  public function postProcess(array $operations = array());

  /**
   * Configuration form.
   *
   * @param array $form_state
   *   The complete form state.
   */
  public function configForm(&$form_state);

}

Members

Namesort descending Modifiers Type Description Overrides
DeployProcessor::configForm public function Configuration form. 1
DeployProcessor::deploy public function Main processing method that should hand over the aggregator to the endpoint to deploy all the entities. 1
DeployProcessor::postProcess public function Runs all postprocess operations. 1
DeployProcessor::preProcess public function Runs all preprocess operations. 1
DeployProcessor::publish public function Processing method that should hand over the aggregator to the endpoint to publish all deployed entities. This method will only be called after successful deployments. 1
DeployProcessor::__construct public function Constructor for a deploy processor. 1