/**
  * PHP5 type constructor
  */
 function __construct($name, $defaultValue = '', $label = '', $textBefore = '', $textAfter = '', $size = 50, $maxlength = 100)
 {
     parent::__construct($name, $defaultValue, $label, $textBefore, $textAfter);
     $this->_size = $size;
     $this->_maxlength = $maxlength;
     $this->_tests = array();
 }
Beispiel #2
0
 /**
  * PHP5 type constructor
  */
 function __construct($name, $defaultValue, $label = '', $textBefore = '', $textAfter = '')
 {
     parent::__construct($name, $defaultValue, $label, $textBefore, $textAfter);
     $this->deselect();
 }
Beispiel #3
0
 /**
  * PHP5 type constructor
  */
 function __construct($name, $defaultValue, $label = '', $textBefore = '', $textAfter = '', $rows = 10, $cols = 50)
 {
     parent::__construct($name, $defaultValue, $label, $textBefore, $textAfter);
     $this->_rows = $rows;
     $this->_cols = $cols;
 }
 /**
  * PHP5 type constructor
  */
 function __construct($name, $defaultValue)
 {
     parent::__construct($name, $defaultValue, '', '', '');
 }
Beispiel #5
0
 /**
  * Assess whether this option changed in the last update. Called from UpdateVisitor.
  *
  */
 function updateChangedStatus()
 {
     parent::updateChangedStatus();
     if (!$this->_hasChanged) {
         //it has changed if any of its children have changed
         foreach (array_keys($this->_children) as $index) {
             $child =& $this->_children[$index];
             if ($child->hasChanged()) {
                 $this->_hasChanged = true;
                 break;
             }
         }
     }
 }