/** * * @param <type> $internalRepeatForm * @return <type> */ private function GetMaskFromInternalRepeatForm(&$internalRepeatForm) { $mask = 0; if ($internalRepeatForm->GetValue('repeatSun')) { $mask |= 1; } if ($internalRepeatForm->GetValue('repeatMon')) { $mask |= 2; } if ($internalRepeatForm->GetValue('repeatTue')) { $mask |= 4; } if ($internalRepeatForm->GetValue('repeatWed')) { $mask |= 8; } if ($internalRepeatForm->GetValue('repeatThu')) { $mask |= 16; } if ($internalRepeatForm->GetValue('repeatFri')) { $mask |= 32; } if ($internalRepeatForm->GetValue('repeatSat')) { $mask |= 64; } return $mask; }
/** * * @param <type> $wmContactContainers * @param <type> $wmContactContainer */ private function RemoveWMContactContainer(&$wmContactContainers, &$wmContactContainer) { foreach ($wmContactContainers as $key => $contact) { if ($contact->GetValue('IdAddress') == $wmContactContainer->GetValue('IdAddress')) { unset($wmContactContainers[$key]); } } }