CommonITILObject::getAllUsers PHP Метод

getAllUsers() публичный Метод

get users linked to an object including groups ones
public getAllUsers ( $type ) : array
$type type to search (see constants)
Результат array
    function getAllUsers($type)
    {
        $users = array();
        foreach ($this->getUsers($type) as $link) {
            $users[$link['users_id']] = $link['users_id'];
        }
        foreach ($this->getGroups($type) as $link) {
            $gusers = Group_User::getGroupUsers($link['groups_id']);
            foreach ($gusers as $user) {
                $users[$user['id']] = $user['id'];
            }
        }
        return $users;
    }
CommonITILObject