public function ServicesClientControl::__construct in Services Client 7.2
Constructor.
Parameters
stdClass $entity: Drupal entity that is being processed.
string $client_id: Name of local services client
string $remote_id: Remote client id.
File
- include/
plugin.inc, line 435 - Base plugin definitions. All other plugins should be extended from this set of plugins.
Class
- ServicesClientControl
- Class for handling control data.
Code
public function __construct($entity, $client_id, $remote_id) {
$this->entity = $entity;
$this->data = isset($entity->_services_client) ? $entity->_services_client : array();
$this->client_id = $client_id;
$this->remote_id = $remote_id;
}