You are here

public function RestWSEntityResourceController::__construct in RESTful Web Services 7

Same name and namespace in other branches
  1. 7.2 restws.entity.inc \RestWSEntityResourceController::__construct()

File

./restws.entity.inc, line 97
RESTful web services module integration for entities.

Class

RestWSEntityResourceController
Controller for entity-bases resources.

Code

public function __construct($name, $info) {
  $this->entityType = $name;
  $this->entityInfo = entity_get_info($name);
}