public function __construct($value, $base_prop_data) { parent::__construct($value, $base_prop_data); $this->value_0_str = G::$language->getText("common", "notexist_text"); $this->value_1_str = G::$language->getText("common", "exist_text"); if (count($this->values) > 1) { $this->value_0_str = $this->values[0]; $this->value_1_str = $this->values[1]; } }
public function __construct($value, $base_prop_data) { // RANGE if (count($this->values) > 0) { $this->min = $this->values[0]; $this->max = isset($this->values[1]) ? $this->values[1] : $this->max; } parent::__construct($value, $base_prop_data); // VALUES $range = explode("-", $this->value); if (count($range) > 1) { $this->from = $range[0]; $this->to = $range[1]; } else { $this->from = $this->value; $this->to = $this->value; } }