You are here

public function Bean::__construct in Bean (for Drupal 7) 7

Overrides Entity::__construct

File

includes/bean.core.inc, line 178
Bean classes and plugin interface

Class

Bean
The Bean entity class

Code

public function __construct(array $values = array()) {

  // If this is new then set the type first.
  if (isset($values['is_new'])) {
    $this->type = isset($values['type']) ? $values['type'] : '';
  }
  parent::__construct($values, 'bean');
}