You are here

public function TMGMTMessage::__construct in Translation Management Tool 7

Overrides Entity::__construct

File

entity/tmgmt.entity.message.inc, line 74

Class

TMGMTMessage
Entity class for the tmgmt_message entity.

Code

public function __construct(array $values = array()) {
  parent::__construct($values, 'tmgmt_message');
  if (empty($this->created)) {
    $this->created = REQUEST_TIME;
  }
  if (empty($this->type)) {
    $this->type = 'status';
  }
}