Returns a new social Button
@param string $identifier
@param string $social
@param string $value
@return HtmlButton
972601
public static function social($identifier, $social, $value=NULL) {
		if ($value === NULL)
			$value=\ucfirst($social);
		$return=new HtmlButton($identifier, $value);
		$return->addIcon($social);
		return $return->addToPropertyCtrl("class", $social, Social::getConstants());
	}
213693
public function whoamiSet($ident, $value = null)
  {
    $this->whoami();

    $this->whoami[$ident] = (is_numeric($value)) ? (int) $value : TeamSpeak3_Helper_String::factory($value);
  }
1233355
public function addSocial(AbstractUser $socialUser, $provider)
    {
        $refreshToken = isset($socialUser->refreshToken) && $socialUser->refreshToken
            ? $socialUser->refreshToken
            : null;
        
        $token = is_null($socialUser->token)
            ? $provider
            : $socialUser->token;

        $this->socials()->create([
            'provider'      => $provider,
            'social_id'     => $socialUser->getId(),
            'email'         => $socialUser->getEmail(),
            'avatar'        => $socialUser->getAvatar(),
            'token'         => $token,
            'refresh_token' => $refreshToken,
            'expires_in'    => isset($socialUser->expiresIn) ? $socialUser->expiresIn : null,
        ]);
    }
199752
public function htmlNavbar($identifier, $brand="Brand", $brandHref="#") {
		return $this->addHtmlComponent(new HtmlNavbar($identifier, $brand, $brandHref));
	}
892198
public function retrieveByToken($identifier, $token)
    {
        return $this->getRepository()->findOneBy([
            $this->getEntity()->getKeyName()           => $identifier,
            $this->getEntity()->getRememberTokenName() => $token
        ]);
    }
738092
protected WebElement getSocialIcon(String social) {
		logger.debug("getSocialIcon " + social);
		By linkLocator = By.cssSelector("a." + social);

		WebElement foundSocialIcon = null;
		for (WebElement socialIcon : socialIcons) {
			try {
				socialIcon.findElement(linkLocator);
				foundSocialIcon = socialIcon;
			} catch(NoSuchElementException e) {
				continue;
			}
		}
		assertNotNull("social button for " + social + " not found.", foundSocialIcon);
		return foundSocialIcon;
	}
1186056
public function register($identifier, $value)
    {
        parent::register($identifier, $value);

        $sql = sprintf(
            'INSERT INTO %s (`entityId`, `data`) set (`%s`, `%s`);',
            $this->mysql->quote($this->section),
            $this->mysql->quote($identifier),
            $this->decorator->normalizeValue($value)
        );
        $result = $this->mysql->query($sql);

        if (false === $result) {

            $this->registry[$this->section][$identifier] = null;

            $this->throwException(
                'Error occurred while registering an entity: ',
                $this->mysql->errorInfo()
            );
        }
    }
1304513
@Override
	protected Button newButton(final String id)
	{
		return new IndicatingAjaxButton(id, getForm())
		{
			/**
			 * The serialVersionUID.
			 */
			private static final long serialVersionUID = 1L;

			/**
			 * {@inheritDoc}
			 */
			@Override
			protected void onError(final AjaxRequestTarget target, final Form<?> form)
			{
			}

			/**
			 * {@inheritDoc}
			 */
			@Override
			protected void onSubmit(final AjaxRequestTarget target, final Form<?> form)
			{
				target.add(form);
				AjaxIndicatingButtonPanel.this.onSubmit(target, form);
			}
		};
	}
1092607
public function linkColumn($identifier, $options = [], $callback)
    {
        $column = new LinkColumn($identifier, $options, $callback);
        $this->columns->put($identifier, $column);

        return $this;
    }
94644
public function retrieveById($identifier)
    {
        $model = $this->createModel();

        return $this->newModelQuery($model)
                    ->where($model->getAuthIdentifierName(), $identifier)
                    ->first();
    }
1120356
public static function b($name, $options = [])
	{
		$options = array_merge($options, ['type' => 'submit']);
		return static::socialButton($name, $options)->tag('button');
	}
1152200
public function retrieveByToken($identifier, $token)
    {
        $model = $this->createModel();

        return $model->where($model->getKeyName(), $identifier)->first();
    }
333453
public static function icon($identifier, $icon) {
		$result=new HtmlButton($identifier);
		$result->asIcon($icon);
		return $result;
	}
668199
public function retrieveByToken($identifier, $token)
    {
        $model = $this->createModel();

        return $model->newQuery()
            ->where($model->getAuthIdentifierName(), $identifier)
            ->where($model->getRememberTokenName(), $token)
            ->first();
    }
51389
public function htmlButtongroups($identifier, $values=array(), $cssStyle=NULL, $size=NULL) {
		return $this->addHtmlComponent(new HtmlButtongroups($identifier, $values, $cssStyle, $size));
	}
67040
public static function labeled($identifier, $value, $icon, $before=true) {
		$result=new HtmlButton($identifier, $value);
		$result->addIcon($icon, $before, true);
		return $result;
	}
962413
public function htmlButtonGroups($identifier, $elements=array(), $asIcons=false) {
		return $this->addHtmlComponent(new HtmlButtonGroups($identifier, $elements, $asIcons));
	}