Beispiel #1
0
 /**
  * Sets the parameter definition values contained in the provided array.
  * @see ParamDefinition::setArrayValues
  *
  * @since 0.5
  *
  * @param array $param
  */
 public function setArrayValues(array $param)
 {
     parent::setArrayValues($param);
     if (array_key_exists('negatives', $param)) {
         $this->setAllowNegatives($param['negatives']);
     }
 }
Beispiel #2
0
 /**
  * Sets the parameter definition values contained in the provided array.
  * @see ParamDefinition::setArrayValues
  *
  * @since 0.5
  *
  * @param array $param
  */
 public function setArrayValues(array $param)
 {
     parent::setArrayValues($param);
     if (array_key_exists('allowauto', $param)) {
         $this->setAllowAuto($param['allowauto']);
     }
     if (array_key_exists('maxpercentage', $param)) {
         $this->setMaxPercentage($param['maxpercentage']);
     }
     if (array_key_exists('minpercentage', $param)) {
         $this->setMinPercentage($param['minpercentage']);
     }
     if (array_key_exists('units', $param)) {
         $this->setAllowedUnits($param['units']);
     }
     if (array_key_exists('defaultunit', $param)) {
         $this->setDefaultUnit($param['defaultunit']);
     }
 }