Drupal 8  8.0.2
BatchStorage Class Reference
Inheritance diagram for BatchStorage:

Public Member Functions

 __construct (\Symfony\Component\DependencyInjection\ContainerInterface $container, $drupal_proxy_original_service_id)
 
 load ($id)
 
 delete ($id)
 
 update (array $batch)
 
 cleanup ()
 
 create (array $batch)
 

Protected Member Functions

 lazyLoadItself ()
 

Protected Attributes

 $drupalProxyOriginalServiceId
 
 $service
 
 $container
 

Detailed Description

Provides a proxy class for .

See Also

Constructor & Destructor Documentation

__construct ( \Symfony\Component\DependencyInjection\ContainerInterface  $container,
  $drupal_proxy_original_service_id 
)

Constructs a ProxyClass Drupal proxy object.

Parameters
\Symfony\Component\DependencyInjection\ContainerInterface$containerThe container.
string$drupal_proxy_original_service_idThe service ID of the original service.

Member Function Documentation

cleanup ( )

{Cleans up failed or old batches.}

Implements BatchStorageInterface.

References BatchStorage\lazyLoadItself().

Here is the call graph for this function:

create ( array  $batch)

{Creates and saves a batch.

Parameters
array$batchThe array representing the batch to create.
}

Implements BatchStorageInterface.

References BatchStorage\lazyLoadItself().

Here is the call graph for this function:

delete (   $id)

{Deletes a batch.

Parameters
int$idThe ID of the batch to delete.
}

Implements BatchStorageInterface.

References BatchStorage\lazyLoadItself().

Here is the call graph for this function:

lazyLoadItself ( )
protected

Lazy loads the real service from the container.

Returns
object Returns the constructed real service.

References Drupal\service().

Referenced by BatchStorage\cleanup(), BatchStorage\create(), BatchStorage\delete(), BatchStorage\load(), and BatchStorage\update().

Here is the call graph for this function:

Here is the caller graph for this function:

load (   $id)

{Loads a batch.

Parameters
int$idThe ID of the batch to load.
Returns
array An array representing the batch, or FALSE if no batch was found.
}

Implements BatchStorageInterface.

References BatchStorage\lazyLoadItself().

Here is the call graph for this function:

update ( array  $batch)

{Updates a batch.

Parameters
array$batchThe array representing the batch to update.
}

Implements BatchStorageInterface.

References BatchStorage\lazyLoadItself().

Here is the call graph for this function:


The documentation for this class was generated from the following file: