Clear some warnings about undefined vars
This commit is contained in:
parent
93629b51fb
commit
96ffc58cc4
|
@ -461,13 +461,13 @@ class AlphaNumericalTextInputFormField extends FormField {
|
||||||
|
|
||||||
class DomainInputFormField extends FormField {
|
class DomainInputFormField extends FormField {
|
||||||
protected $mandatory = NULL;
|
protected $mandatory = NULL;
|
||||||
protected $textsize = NULL;
|
//protected $textsize = NULL;
|
||||||
|
|
||||||
public function __construct($label, $mandatory=TRUE, $hidden=FALSE) {
|
public function __construct($label, $mandatory=TRUE, $hidden=FALSE) {
|
||||||
parent::__construct($label);
|
parent::__construct($label);
|
||||||
$this->mandatory = $mandatory;
|
$this->mandatory = $mandatory;
|
||||||
$this->hidden = $hidden;
|
$this->hidden = $hidden;
|
||||||
$this->textsize = $textsize;
|
//$this->textsize = $textsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function verify($set_error) {
|
public function verify($set_error) {
|
||||||
|
@ -491,7 +491,7 @@ class DomainInputFormField extends FormField {
|
||||||
else
|
else
|
||||||
$input .= '<input type="text" id="'.$this->name.'"';
|
$input .= '<input type="text" id="'.$this->name.'"';
|
||||||
$input .= ' name="'.$this->name.'" value="'.htmlspecialchars($this->value,ENT_QUOTES).'"';
|
$input .= ' name="'.$this->name.'" value="'.htmlspecialchars($this->value,ENT_QUOTES).'"';
|
||||||
$input .= ' maxlength="'.$this->textsize[1].'" size="'.$this->textsize[0].'" ';
|
//$input .= ' maxlength="'.$this->textsize[1].'" size="'.$this->textsize[0].'" ';
|
||||||
if($this->read_only) { $input .= 'readonly="readonly="'; }
|
if($this->read_only) { $input .= 'readonly="readonly="'; }
|
||||||
if($this->disabled) { $input .= 'disabled="disabled="'; }
|
if($this->disabled) { $input .= 'disabled="disabled="'; }
|
||||||
$input .= '/>';
|
$input .= '/>';
|
||||||
|
@ -516,12 +516,12 @@ class DomainInputFormField extends FormField {
|
||||||
|
|
||||||
class DomainListInputFormField extends FormField {
|
class DomainListInputFormField extends FormField {
|
||||||
protected $mandatory = NULL;
|
protected $mandatory = NULL;
|
||||||
protected $textsize = NULL;
|
//protected $textsize = NULL;
|
||||||
|
|
||||||
public function __construct($label, $mandatory=TRUE) {
|
public function __construct($label, $mandatory=TRUE) {
|
||||||
parent::__construct($label);
|
parent::__construct($label);
|
||||||
$this->mandatory = $mandatory;
|
$this->mandatory = $mandatory;
|
||||||
$this->textsize = $textsize;
|
//$this->textsize = $textsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function verify($set_error) {
|
public function verify($set_error) {
|
||||||
|
@ -547,7 +547,7 @@ class DomainListInputFormField extends FormField {
|
||||||
$input = '';
|
$input = '';
|
||||||
$input .= '<input type="text" id="'.$this->name.'"';
|
$input .= '<input type="text" id="'.$this->name.'"';
|
||||||
$input .= ' name="'.$this->name.'" value="'.htmlspecialchars($this->value,ENT_QUOTES).'"';
|
$input .= ' name="'.$this->name.'" value="'.htmlspecialchars($this->value,ENT_QUOTES).'"';
|
||||||
$input .= ' maxlength="'.$this->textsize[1].'" size="'.$this->textsize[0].'" ';
|
//$input .= ' maxlength="'.$this->textsize[1].'" size="'.$this->textsize[0].'" ';
|
||||||
if($this->read_only) { $input .= 'readonly="readonly="'; }
|
if($this->read_only) { $input .= 'readonly="readonly="'; }
|
||||||
if($this->disabled) { $input .= 'disabled="disabled="'; }
|
if($this->disabled) { $input .= 'disabled="disabled="'; }
|
||||||
$input .= '/>';
|
$input .= '/>';
|
||||||
|
|
Loading…
Reference in a new issue