GetKey(); $aContextData[self::ENUM_PARAMS_ATTCODE] = $sAttCode; $aContextData[self::ENUM_PARAMS_ATTVALUE] = $oObject->Get($sAttCode); $oCurrentUser = UserRights::GetUserObject(); if (false === is_null($oCurrentUser)) { $aContextData[self::ENUM_PARAMS_USER] = get_class($oCurrentUser).'::'.$oCurrentUser->GetKey(); } parent::__construct('Attribute pointing to an object that is either non existing or not readable by the current user', $aContextData, '', $oPrevious); } public function GetAttCode(): string { return $this->getContextData()[self::ENUM_PARAMS_ATTCODE]; } public function GetAttValue(): string { return $this->getContextData()[self::ENUM_PARAMS_ATTVALUE]; } }