Ejemplo n.º 1
0
 /**
  * Update equipment
  */
 protected function updateEquipment()
 {
     if (!empty($this->EquipmentIDsNew) || !empty($this->EquipmentIDsOld)) {
         $EquipmentUpdater = new EquipmentUpdater($this->PDO, $this->NewObject->id());
         $EquipmentUpdater->setActivityObjects($this->NewObject, $this->OldObject);
         $EquipmentUpdater->update($this->EquipmentIDsNew, $this->EquipmentIDsOld);
     }
 }
Ejemplo n.º 2
0
 /**
  * Update equipment
  */
 protected function updateEquipment()
 {
     if (!empty($this->EquipmentIDs)) {
         $EquipmentUpdater = new EquipmentUpdater($this->PDO, $this->Object->id());
         $EquipmentUpdater->setActivityObjects(new Object(), $this->Object);
         $EquipmentUpdater->update(array(), $this->EquipmentIDs);
     }
 }