21 Reason
$reason = Reason::DEFAULT,
25 $this->managerIds = $this->normalizeIds(
$managerIds);
36 return isset($this->managerIds[
$userId]);
51 return isset($this->hiddenUserIds[
$userId]);
54 private function normalizeIds(
array $ids):
array
56 $intIds = array_map(
'intval', $ids);
58 return array_combine($intIds, $intIds);
61 private function with(
array $changes): self
63 $newFields = array_merge($this->toArray(), $changes);
65 return new self(...$newFields);
68 private function toArray():
array
71 foreach ($this as $fieldName => $field)
73 $array[$fieldName] = $field;
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
readonly bool $withMessage
readonly array $hiddenUserIds
__construct(array $managerIds=[], ?bool $hideHistory=null, bool $withMessage=true, bool $skipRecent=false, bool $isFakeAdd=false, Reason $reason=Reason::DEFAULT, array $hiddenUserIds=[],)
setManagerIds(array $managerIds)
readonly bool $skipRecent
readonly bool $hideHistory
readonly array $managerIds
setHideHistory(?bool $hideHistory)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)