You are here

class ClientsConnectionHandlerEntityController in Web Service Clients 7.3

Controller class for Connections.

Hierarchy

Expanded class hierarchy of ClientsConnectionHandlerEntityController

1 string reference to 'ClientsConnectionHandlerEntityController'
clients_entity_info in ./clients.module
Implements hook_entity_info().

File

includes/clients.controller.inc, line 147
Provides a controller building upon the Entity exportable controller but providing features for handler objects.

View source
class ClientsConnectionHandlerEntityController extends ClientsHandlerEntityController {

  /**
   * Implements EntityAPIControllerInterface.
   *
   * Takes care of deleting stored credentials when connections are deleted.
   *
   * @param $transaction
   *   Optionally a DatabaseTransaction object to use. Allows overrides to pass
   *   in their transaction object.
   */
  public function delete($ids, DatabaseTransaction $transaction = NULL) {
    $connections = entity_load('clients_connection', $ids);
    foreach ($connections as $connection) {
      $credentials_storage_plugin = $connection
        ->get_credentials_storage_plugin();
      $credentials_storage_plugin
        ->credentialsDelete($connection);
    }
    parent::delete($ids, $transaction);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ClientsConnectionHandlerEntityController::delete public function Implements EntityAPIControllerInterface. Overrides EntityAPIControllerExportable::delete
ClientsHandlerEntityController::cacheSet protected function Overridden. Overrides EntityAPIControllerExportable::cacheSet
ClientsHandlerEntityController::create public function Implements EntityAPIControllerInterface. Overrides EntityAPIController::create
ClientsHandlerEntityController::getClass function Helper to get the class to create for an entity.
ClientsHandlerEntityController::load public function Overridden to implement factory-by-row pattern. Overrides EntityAPIControllerExportable::load
ClientsHandlerEntityController::query public function Overridden to not use 'entity class': our class is variable. Overrides EntityAPIController::query
DrupalDefaultEntityController::$cache protected property Whether this entity type should use the static cache.
DrupalDefaultEntityController::$entityCache protected property Static cache of entities, keyed by entity ID.
DrupalDefaultEntityController::$entityInfo protected property Array of information about the entity.
DrupalDefaultEntityController::$entityType protected property Entity type for this controller instance.
DrupalDefaultEntityController::$hookLoadArguments protected property Additional arguments to pass to hook_TYPE_load().
DrupalDefaultEntityController::$idKey protected property Name of the entity's ID field in the entity database table.
DrupalDefaultEntityController::$revisionKey protected property Name of entity's revision database table field, if it supports revisions.
DrupalDefaultEntityController::$revisionTable protected property The table that stores revisions, if the entity supports revisions.
DrupalDefaultEntityController::cleanIds protected function Ensures integer entity IDs are valid.
DrupalDefaultEntityController::filterId protected function Callback for array_filter that removes non-integer IDs.
EntityAPIController::$bundleKey protected property
EntityAPIController::$cacheComplete protected property
EntityAPIController::$defaultRevisionKey protected property
EntityAPIController::buildContent public function Implements EntityAPIControllerInterface. Overrides EntityAPIControllerInterface::buildContent
EntityAPIController::deleteRevision public function Implements EntityAPIControllerRevisionableInterface::deleteRevision(). Overrides EntityAPIControllerRevisionableInterface::deleteRevision
EntityAPIController::import public function Implements EntityAPIControllerInterface. Overrides EntityAPIControllerInterface::import
EntityAPIController::renderEntityProperty protected function Renders a single entity property.
EntityAPIController::saveRevision protected function Saves an entity revision.
EntityAPIControllerExportable::$entityCacheByName protected property
EntityAPIControllerExportable::$nameKey protected property
EntityAPIControllerExportable::applyConditions protected function
EntityAPIControllerExportable::attachLoad protected function Overridden. Overrides DrupalDefaultEntityController::attachLoad
EntityAPIControllerExportable::buildQuery protected function Support loading by name key. Overrides EntityAPIController::buildQuery
EntityAPIControllerExportable::cacheGet protected function Overridden. Overrides DrupalDefaultEntityController::cacheGet
EntityAPIControllerExportable::cacheGetByName protected function Like cacheGet() but keyed by name.
EntityAPIControllerExportable::export public function Overridden. Overrides EntityAPIController::export
EntityAPIControllerExportable::invoke public function Overridden to care about reverted bundle entities and to skip Rules. Overrides EntityAPIController::invoke
EntityAPIControllerExportable::resetCache public function Overrides DrupalDefaultEntityController::resetCache(). Overrides EntityAPIController::resetCache
EntityAPIControllerExportable::save public function Overridden to care exportables that are overridden. Overrides EntityAPIController::save
EntityAPIControllerExportable::view public function Implements EntityAPIControllerInterface. Overrides EntityAPIController::view
EntityAPIControllerExportable::__construct public function Overridden. Overrides EntityAPIController::__construct