Example #1
0
 /**
  * Set if the array keys of the options has to be used as values for the field
  *
  * @param boolean $mode The mode
  * @return \FormHandler\Field\SelectList
  * @author Teye Heimans
  */
 public function useArrayKeyAsValue($mode)
 {
     if (!is_null($mode)) {
         parent::useArrayKeyAsValue($mode);
         $this->field_on->useArrayKeyAsValue($mode);
         $this->field_off->useArrayKeyAsValue($mode);
     }
     return $this;
 }