$message->addLabel($label)

Adds a label to the given message.

Arguments:
- $label (Telerivet_Label)
Required
191019
function addLabel($label)
    {
        $this->_api->doRequest("PUT", "{$label->getBaseApiPath()}/messages/{$this->id}");               
        $this->_label_ids_set[$label->id] = true;        
    }
61748
public function addLabel($label, $before=false, $icon=NULL) {
		$this->tagName="div";$prefix="";
		if($before)
			$prefix="left ";
		$this->addToProperty("class", $prefix."labeled");
		$isIcon=(isset($this->content[0]) && $this->content[0] instanceof HtmlIcon);
		$this->content=new HtmlButton("button-" . $this->identifier, $this->content);
		if($isIcon){
			$this->content->addClass("icon");
		}
		$this->content->setTagName("div");
		$label=new HtmlLabel("label-" . $this->identifier, $label, $icon,"a");
		$label->setBasic();
		$this->addContent($label, $before);
		return $label;
	}
385927
public function setLabel($label)
    {
        if (!(is_scalar($label) || is_null($label))) {
            return false;
        }

        $this->label = $label;
    }
178013
public function addLabelDate($name, $label = '')
    {
        $e = new \FrenchFrogs\Form\Element\LabelDate($name, $label);
        $this->addElement($e);

        return $e;
    }
588816
public function set_label($label) {
        $label = (string)$label;
        if ($label === '' || $label !== clean_param($label, PARAM_TEXT)) {
            throw new base_setting_ui_exception('setting_invalid_ui_label');
        }
        $this->label = $label;
    }
1042989
def add(self, label):
        
        label.label_list = self
        self.label_tree.addi(label.start, label.end, label)
330767
def add_labels(self, *args):
        
        url = self._build_url('labels', base_url=self._api)
        json = self._json(self._post(url, data=args), 200)
        return [Label(l, self) for l in json] if json else []
1355853
def add(self, label):
        
        self._labels[label.id] = label
        self._dirty = True
496154
protected function checkLabel($label)
    {
        if ($label instanceof ElementInterface) {
            return $label;
        }

        return $this->createLabel($this->translate($label));
    }
1185620
public function label($label)
    {
        if ($label === false) {
            $this->parts['{label}'] = '';
        } else {
            $this->parts['{label}'] = $label;
        }
        
        return $this;
    }
339496
public function add_label()
    {
        $rcube = rcube::get_instance();

        if (method_exists($rcube->output, 'add_label')) {
            $args = func_get_args();
            if (count($args) == 1 && is_array($args[0])) {
                $args = $args[0];
            }

            $args = array_map(array($this, 'label_map_callback'), $args);
            $rcube->output->add_label($args);
        }
    }
1372689
public function label($label=null){
		if($label){
			$this->label = $label;
		}else{
			return isset($this->label) ? $this->label : $this->name();
		}
	}
1326549
protected function addColumn($column = '', $label = '')
    {
        $column = new Column($column, $label);
        $column->setGrid($this);

        return tap($column, function ($value) {
            $this->columns->push($value);
        });
    }
30265
public static function addMessageIfTrue($message,$condition,$label='INFO'){
		if ( $condition===true ) {
			self::debugbar()->addMessage($message,$label);
		}
	}
6424
public function addTel($name, $label = '', $is_mandatory = true)
    {
        $e = new \FrenchFrogs\Form\Element\Tel($name, $label);
        $this->addElement($e);
        $e->addRule('laravel','laravel', ['regex:/^[+]{0,1}[0-9]{9,13}$/'],['regex' => 'Le champ doit être un numero valide . Il peut commencer par un + et ne doit contenir que des chiffres (Au moins 10)']);

        if ($is_mandatory) {
            $e->addRule('required');
        } else {
            $e->addFilter('nullable');
        }

        return $e;
    }
701572
public function addLabel(CINLabel $label) {
        $label->setBackgroundColor($this->colorBg);
        $label->setForegroundColor($this->colorFg);
        $this->labels[] = $label;
    }
117543
public static function addMessageIfNull($message,$condition,$label='INFO'){
		if ( $condition===null ) {
			self::debugbar()->addMessage($message,$label);
		}
	}