С версии: 1.10.0
Наследование: use trait Elgg\TimeUsing
Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function add($guid_one, $relationship, $guid_two, $return_id = false)
 {
     $rel = $this->check($guid_one, $relationship, $guid_two);
     if ($rel) {
         return false;
     }
     $this->iterator++;
     $id = $this->iterator;
     $row = (object) ['id' => $id, 'guid_one' => (int) $guid_one, 'guid_two' => (int) $guid_two, 'relationship' => $relationship, 'time_created' => $this->getCurrentTime()->getTimestamp()];
     $this->rows[$id] = $row;
     $this->addQuerySpecs($row);
     return parent::add($row->guid_one, $row->relationship, $row->guid_two, $return_id);
 }