You are here

public function Box::__construct in Boxes 7.2

Overrides Entity::__construct

File

includes/boxes.core.inc, line 167
Box classes and plugin interface

Class

Box
The Box 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, 'box');
}