# user-access-manager/2.3.20/src/Controller/Backend/ObjectMembership/UserObjectController.php

User Access Manager, version 2.3.20. 55 lines.

- Page: https://pluginprobe.com/plugins/user-access-manager/2.3.20/code/src/Controller/Backend/ObjectMembership/UserObjectController.php
- Raw: https://pluginprobe.com/plugins/user-access-manager/2.3.20/raw/src/Controller/Backend/ObjectMembership/UserObjectController.php
- Modified: 2026-09-10T09:55:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/user-access-manager/2.3.20/code/src/Controller/Backend/ObjectMembership/UserObjectController.php#L10-L20`.

```php
<?php

declare(strict_types=1);

namespace UserAccessManager\Controller\Backend\ObjectMembership;

use UserAccessManager\Object\ObjectHandler;
use UserAccessManager\UserGroup\UserGroupTypeException;

class UserObjectController extends ObjectController
{
    public function addUserColumnsHeader(array $defaults): array
    {
        $defaults[self::COLUMN_NAME] = TXT_UAM_COLUMN_USER_GROUPS;
        return $defaults;
    }

    /**
     * @throws UserGroupTypeException
     */
    public function addUserColumn(?string $content, string $columnName, int|string|null $id): ?string
    {
        if ($columnName === self::COLUMN_NAME) {
            $this->setObjectInformation(ObjectHandler::GENERAL_USER_OBJECT_TYPE, $id);
            $content .= $this->getIncludeContents('UserColumn.php');
        }

        return $content;
    }

    /**
     * @throws UserGroupTypeException
     */
    public function showUserProfile(): void
    {
        $userId = $this->getRequestParameter('user_id');
        $this->setObjectInformation(ObjectHandler::GENERAL_USER_OBJECT_TYPE, $userId);

        echo $this->getIncludeContents('UserProfileEditForm.php');
    }

    /**
     * @throws UserGroupTypeException
     */
    public function saveUserData(int|string|null $userId): void
    {
        $this->saveObjectData(ObjectHandler::GENERAL_USER_OBJECT_TYPE, $userId);
    }

    public function removeUserData(int|string|null $userId): void
    {
        $this->removeObjectData(ObjectHandler::GENERAL_USER_OBJECT_TYPE, $userId);
    }
}

```
