You are here

public function RedhenNote::__construct in RedHen CRM 7

Overrides Entity::__construct

File

modules/redhen_note/lib/redhen_note.entity.inc, line 19
Redhen Group entity classes

Class

RedhenNote
The class used for note entities.

Code

public function __construct(array $values = array()) {
  parent::__construct($values, 'redhen_note');

  // New note. is_new might not be set so check for id
  if (!$this->note_id) {
    global $user;
    $this->created = REQUEST_TIME;
    $this->author_uid = $user->uid;
  }
}