function getItemGroupTechInChargeAddress() { if (!empty($this->target_object)) { foreach ($this->target_object as $val) { if ($val->fields['groups_id'] > 0) { $this->getAddressesByGroup(0, $val->fields['groups_id']); } } } }