Get admin group Label

@param string $login
@return string
776971
public function getLoginGroupLabel($login)
    {
        $group = $this->getLoginUserGroups($login);

        $groupName = "Admin";
        if ($group) {
            if ($groupName) {
                $groupName = $this->getGroupLabel($group->getName());
            }
        }

        return $groupName;
    }
833670
public static function label($status)
    {
        $statuses = [
            SeoChecker::STATUS_DANGER  => 'danger',
            SeoChecker::STATUS_GOOD    => 'success',
            SeoChecker::STATUS_WARNING => 'warning',
        ];

        return Arr::get($statuses, $status, 'default');
    }
135738
private function getAdminServiceId($bundleName, $adminClassBasename)
    {
        $prefix = substr($bundleName, -6) == 'Bundle' ? substr($bundleName, 0, -6) : $bundleName;
        $suffix = substr($adminClassBasename, -5) == 'Admin' ? substr($adminClassBasename, 0, -5) : $adminClassBasename;
        $suffix = str_replace('\\', '.', $suffix);

        return Container::underscore(sprintf(
            '%s.admin.%s',
            $prefix,
            $suffix
        ));
    }
106801
public function getFromLogin( $login){
        $rest = $this->getService( self::API_VPN_USER . $login);
        $rest->GET();

        return $rest->getResult( models\VPN\Server\User::class);
    }
1104315
public function getToken(string $login, string $pass): GetTokenResponse
    {
        $response = $this->request('GET', 'getToken', [
            'login' => $login,
            'pass' => $pass,
        ]);

        return $this->converter->getResponseObject(GetTokenResponse::class, $response);
    }
11465
private function getUserDashboards($userLogin)
    {
        $userDashboards = $this->dashboard->getAllDashboards($userLogin);

        $dashboards = array();

        foreach ($userDashboards as $userDashboard) {
            $widgets = $this->getVisibleWidgetsWithinDashboard($userDashboard);
            $dashboards[] = $this->buildDashboard($userDashboard, $widgets);
        }

        return $dashboards;
    }
1276317
public function getUserByLogin(string $login)
    {
        $retval = null;

        if (strlen($login) > 0) {
            $nb_user = CNabuUser::findByLogin($this, $login);
            if ($nb_user instanceof CNabuUser && $nb_user->validateCustomer($this)) {
                $nb_user->setCustomer($this);
                $retval = $nb_user;
            }
        }

        return $retval;
    }
157102
public function getLabelOfNameAndUserId(string $labelName, string $userId)
    {
        foreach ($this->labels as $label) {
            /** @var GmailLabelInterface $label */
            if ($label->getName() === $labelName && $label->getUserId() === $userId) {
                return $label;
            }
        }

        return;
    }
1117901
protected function getUserGroup($groupName)
    {
        $groupName = "admin:$groupName";

        $group = $this->userGroupFactory->getGroup($groupName);
        if (!$group) {
            $this->userGroupFactory->create($groupName);
            $group = $this->userGroupFactory->getGroup($groupName);
        }

        return $group;
    }
469238
public function getLabelOfName(string $labelName)
    {
        foreach ($this->labels as $label) {
            /** @var GmailLabelInterface $label */
            if ($label->getName() === $labelName) {
                return $label;
            }
        }

        return;
    }
510000
public function signUp($login)
	{
		$stmntSingup = $this->db->prepare("
			INSERT INTO login SET
				username = ?,
				email = ?,
				password = ?,
				registeredby = ?,
				salt = ?,
				confirmed = NULL,
				active = ?,
				lastlogin = NULL,
				wronglogins = 0,
				token = ?,
				tokentime = ?
		");

		$salt = $this->generateSalt();

		try {
			$this->db->beginTransaction();

			$userID = $this->db->insert($stmntSingup, array(
				isset($login->username)?$login->username:null,
				$login->email,
				isset($login->password)?$this->encryptPassword($login->password, $salt):null,
				isset($login->registeredBy)?$login->registeredBy:null,
				$salt,
				isset($login->active)?$login->active:0,
				isset($login->token)?$login->token:null,
				isset($login->token)?date('Y-m-d H:i:s'):null
			));

			if(!isset($login->rightGroups) || !is_array($login->rightGroups)) {
				$this->db->commit();
				return $userID;
			}

			$stmntRghtGrps = $this->db->prepare("
				INSERT INTO login_has_rightgroup SET
					 loginIDFK = ?
					,rightgroupIDFK = ?
					,datefrom = NOW() 
			");

			foreach($login->rightGroups as $rg) {
				$this->db->insert($stmntRghtGrps, array($userID, $rg));
			}

			$this->db->commit();

			return $userID;
		} catch(\Exception $e) {
			$this->db->rollBack();

			throw $e;
		}
	}
54425
protected function getGroupTitle($property)
	{
		if ($this->isParentProperty()){

			foreach ($property->getDomain()->getIterator() as $domain) {
				$domainLabel[] = $domain->getLabel();
			}

			$groupTitle = '<span class="property-heading-label">' . _dh($property->getLabel()) . '</span>'
				. '<span class="property-heading-toolbar">'
				. _dh(implode(' ', $domainLabel))
				. ' <span class="icon-find"></span>'
				. ' <span class="icon-edit"></span>'
				. '</span>';

		}else{
			$groupTitle = '<span class="property-heading-label">' . _dh($property->getLabel()) . '</span>'
				. '<span class="property-heading-toolbar">'
				. ' <span class="icon-find"></span>'
				. '<span class="icon-edit"></span>'
				. '<span class="icon-bin property-deleter" data-uri=\''.tao_helpers_Display::encodeAttrValue($property->getUri()).'\'></span>'
				. '</span>';
		}
		return $groupTitle;
	}
449907
public function removeByLoginField($login)
    {
        $user = $this->getByLoginField($login);

        if ($user !== null) {
            return $this->removeUserById($user->getUserid());
        }

        return false;
    }
62989
public function membersSignup($login, $password, $email)
    {
        // handle login parameter
        if (strlen($login) > 24) {
            throw new \InvalidArgumentException("login too long");
        }

        $params = array(
            'login'    => $login,
            'password' => $password,
            'mail'    => $email
        );

        return $this->query('members/signup.json', $params);
    }
754449
public function getLabelOfUserId(string $userId)
    {
        foreach ($this->labels as $label) {
            /** @var GmailLabelInterface $label */
            if ($label->getUserId() === $userId) {
                return $label;
            }
        }

        return;
    }
1311288
public function getGroup(): string
    {
        if ($this->caching == false) {
            $groupId = $this->getGroupId();

            if ($groupId == -2) {
                return "";
            }

            $group = posix_getgrgid($groupId);

            return $group["name"];
        }

        if ($this->group == null) {
            $groupId = $this->getOwnerId();

            if ($groupId == -2) {
                $this->group = "";
            }

            $group = posix_getpwuid($groupId);

            $this->group = $group["name"];
        }

        return $this->group;
    }
528583
protected function getNewRecord($login)
    {
        $record = new Record();
        $record->setPlayer($this->playerDb->get($login));
        $record->setNbLaps($this->currentNbLaps);
        $record->setNbFinish(0);
        $record->setMapUid($this->currentMapUid);

        return $record;
    }