public function addOption($text, $isPlain = true, $lang = 'en', $value = null)
    {
        $id = $this->getFieldId($value);

        $this->options[$lang][] = new Label($text, $this->getLocaleKey($value), $isPlain, $lang, $id, $value);
    }
public function addOption($text, $isPlain = true, $lang = 'en', $value = null)
    {
        $id = $this->getFieldId($value);

        $this->options[$lang][] = new Label($text, $this->getLocaleKey($value), $isPlain, $lang, $id, $value);
    }
public function addOption ( $ text , $ isPlain = true , $ lang = 'en' , $ value = null ) { $ id = $ this -> getFieldId ( $ value ) ; $ this -> options [ $ lang ] [ ] = new Label ( $ text , $ this -> getLocaleKey ( $ value ) , $ isPlain , $ lang , $ id , $ value ) ; }
Adds a label to the options collection

@param string $value
@param bool $isPlain
@param string $lang
@param string $value

@return object
Adds a label to the options collection