You are here

protected function fcComplete::__construct in Field Complete 7

File

./fc.inc, line 28
Field Complete - Provides field-based completeness for any entity - class.

Class

fcComplete
@file Field Complete - Provides field-based completeness for any entity - class.

Code

protected function __construct($entity_type, $entity) {
  $this->entity_type = $entity_type;
  $this->entity = $entity;
  list($this->id, $this->revision_id, $this->bundle) = entity_extract_ids($entity_type, $entity);
  $this->revision_id = is_null($this->revision_id) ? $this->id : $this->revision_id;
}