You are here

public function TMGMTRemoteController::load in Translation Management Tool 7

Overridden.

In contrast to the parent implementation we factor out query execution, so fetching can be further customized easily.

Overrides EntityAPIController::load

See also

DrupalDefaultEntityController#load($ids, $conditions)

File

controller/tmgmt.controller.remote.inc, line 15
Contains the remote controller class.

Class

TMGMTRemoteController
Controller class for the remote job mapping entity.

Code

public function load($ids = array(), $conditions = array()) {
  $entities = parent::load($ids, $conditions);
  foreach ($entities as &$entity) {
    if (is_string($entity->remote_data)) {
      $entity->remote_data = unserialize($entity->remote_data);
    }
  }
  return $entities;
}