Use of bootstrap label

@param string $for   = NULL
@param string $value = NULL
@param string $class = NULL

@return this
170914
public function label(String $for = NULL, String $value = NULL, String $class = NULL)
    {
        $this->settings['label']['for'  ] = $for;
        $this->settings['label']['value'] = $value;
        $this->settings['label']['class'] = $class;

        return $this;
    }
994605
public static function cls($class, $since = null, $suggest = null): void
    {
        if ($suggest && preg_match('/\s/', $suggest) === 0) {
            $suggest = ltrim($suggest, '\\');
            $suggest = "Use ${suggest} instead.";
        }
        $class = ltrim($class, '\\');

        static::warn($class, $since, $suggest);
    }
105256
public function label( $name, $value = null, $options = [] ) {
		$this->labels[] = $name;

		$value = $this->format_label( $name, $value );

		return $this->to_html_string( '<label for="' . $name . '"' . $this->attributes( $options ) . '>' . $value . '</label>' );
	}
193980
public function clickDisplayedElementByClass($value, $timeout = 0)
    {
        return $this->clickDisplayedElement(self::BY_CLASS_NAME, $value, $timeout, $timeout);
    }
119511
public function setLabelSetting( $name, $value )
	{
	    if ($this->jsWriter instanceOf \Altamira\JsWriter\Ability\Labelable) {
    		$this->jsWriter->setSeriesLabelSetting($this->getTitle(), $name, $value);
	    }
		
		return $this;
	}
1130296
public function setObjectLabel($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->object_label !== $v) {
            $this->object_label = $v;
            $this->modifiedColumns[SportTableMap::COL_OBJECT_LABEL] = true;
        }

        return $this;
    }
208681
protected function addClassName($to = 'class', $value = null)
    {
        $classes = explode(' ', (string) $this->getAttribute($to));

        $value = array_merge($classes, is_string($value) ? explode(' ', $value) : $value);

        return $this->set($to, implode(' ', array_unique($value)));
    }
203148
function addLabel($access_name, $text, $class = 'success') {
        $access_name = str_replace('/', '.', $access_name);
        if(mb_strpos($access_name, '.')) {
            $path = str_replace('.', '._items_.', $access_name) . '.item.labels';
        } else {
            $path = $access_name . '.labels';
        }
        $labels   = (array) Arr::get($this->items, $path);
        $labels[] = compact('text', 'class');
        Arr::set($this->items, $path, $labels);
        
        return $this;
    }
1179011
public function label()
    {
        if (!$this->label) {
            return;
        }

        $label = new HTMLBrick('label', $this->label);
        $label->attr['for'] = $this->id;
        $label->addClass('col-lg-2');
        $label->addClass('control-label');

        return $label;
    }
1139721
public static function label( array $attributes = array(), $value = null, $close = true )
    {
        return static::tag( 'label', $attributes, $value, $close );
    }
846743
public function setAttribute($attribute, $value = null)
    {
        if ($attribute === 'class') {
            $this->addClass($value);

            return $this;
        }

        $this->attributes[$attribute] = $value;

        return $this;
    }
761934
public function addButton($label, $class = 'Button')
    {
        if (!$this->buttonset) {
            $this->buttonset = $this->add('ButtonSet', null, 'grid_buttons')->setClass('atk-actions');
        }

        return $this->buttonset
            ->add($class, 'gbtn'.count($this->elements))
            ->set($label);
    }
722973
protected function htmlOptionsResult($value = '')
    {
        $class = !empty($this->defaults['resultClass']) ? $this->defaults['resultClass'] . $value : '';
        $style = !empty($this->defaults['resultStyle']) ? $this->defaults['resultStyle'] : '';

        if (!empty($this->bootstrapDefaults['resultClass'])) {
            $class .= $this->bootstrapDefaults['resultClass'];
        }
        if (!empty($this->bootstrapDefaults['resultStyle'])) {
            $style .= $this->bootstrapDefaults['resultStyle'];
        }
        if (!empty($this->resultClass) && is_string($this->resultClass)) {
            $class .= ' ' . $this->resultClass;
        }
        if (!empty($this->resultStyle) && is_string($this->resultStyle)) {
            $style .= ' ' . $this->resultStyle;
        }

        return [
            'class' => $class ?: null,
            'style' => $style ?: null,
        ];
    }
1230406
public function render($value, $class = 'btn-default', $style = null)
    {
        $class = trim($class);

        $extra = '';
        if ($this->isDisabled) {
            $extra .= ' disabled="disabled"';
        }
        if ($this->id !== null) {
            $extra .= ' id="'.$this->id.'"';
        }
        if ($this->name !== null) {
            $extra .= ' name="'.$this->name.'"';
        }
        if ($style !== null) {
            $extra .= ' style="'.$style.'"';
        }

        if ($this->isActive) {
            $class .= ' active';
        }
        if ($this->isBlock) {
            $class .= ' btn-block';
        }
        if ($this->size !== null) {
            $class .= ' '.$this->size;
        }

        if ($this->type == self::TYPE_ANCHOR) {
            if ($this->anchorTarget !== null) {
                $extra .= ' target="'.$this->anchorTarget.'"';
            }

            return sprintf($this->formatAnchor, $this->anchor, $class, $extra, $value);
        } elseif ($this->type == self::TYPE_INPUT) {
            return sprintf($this->formatInput, $this->inputType, $value, $class, $extra);
        } else {
            return sprintf($this->formatButton, $class, $extra, $value);
        }
    }
957923
public static function label($for, $content = null, array $attributes = array())
    {
        $attributes = array_merge(array('for' => $for), $attributes);

        return self::tag('label', $content, $attributes);
    }
1118473
public static function set($name, $value, $for_id = null)
    {

        // Init a new MODEL
        $db = (new static::$model);

        // If we are not in the global scope, add a constraint
        // to be user group specific.
        if (static::$scope != 'global')
            $db = $db->where('group_id', self::get_affected_id($for_id));

        // Retrieve the value
        $db = $db->where('name', $name)
            ->first();

        // By default, json encode values.
        $encoded_value = json_encode($value, JSON_NUMERIC_CHECK);

        // Check if we have a value, else create a new
        // instance
        if (! $db)
            $db = new static::$model;

        $db->fill([
            'name'  => $name,
            'value' => $encoded_value,
        ]);

        // Again, if we are not in the global context, then
        // we need to constrain this setting to a user.
        if (static::$scope != 'global')
            $db->group_id = self::get_affected_id($for_id);

        $db->save();

        // Update the cached entry with the new value
        Cache::forever(self::get_key_prefix($name, self::get_affected_id($for_id)), $value);
    }
182748
public function button($value = null, $options = array())
	{
		$options = $this->appendClassToOptions('btn', $options);
		
		return parent::button($value, $options);
	}