function getOptions() { $options = parent::getOptions(); if ($this->customStyle) { $options['options']['customStyle'] = true; } return $options; }
function getOptions() { $options = parent::getOptions(); if (!empty($this->emptyValues)) { $options['options']['emptyValue'] = $this->emptyValues; } if (empty($options['options'])) { unset($options['options']); } return $options; }
function getOptions() { $options = parent::getOptions(); // Make sure you have an options array to manipulate if (!isset($options['options'])) { $options['options'] = array(); } // Set the multiple choice type $options['options']['multipleChoiceType'] = $this->multipleChoiceType; return $options; }
function getOptions() { $options = parent::getOptions(); if (!empty($this->emptyValues)) { $options['options']['emptyValue'] = $this->emptyValues; } if ($this->stateDropDown) { $options['options']['stateDropDown'] = true; } if (empty($options['options'])) { unset($options['options']); } return $options; }
function getOptions() { $options = parent::getOptions(); // Tabbing if ($this->allowTabbing) { $options['options']['allowTabbing'] = true; } // Empty value if (!empty($this->emptyValue)) { $options['options']['emptyValue'] = $this->emptyValue; } // Auto grow if ($this->autoGrow) { $options['options']['autoGrow'] = $this->autoGrow; } return $options; }
function getOptions() { $options = parent::getOptions(); $statementArray = array(); foreach ($this->statementArray as $statement) { $statementArray[$statement['name']] = array(); if (!empty($statement['validationOptions'])) { $statementArray[$statement['name']]['validationOptions'] = $statement['validationOptions']; } if (!empty($statement['triggerFunction'])) { $statementArray[$statement['name']]['triggerFunction'] = $statement['triggerFunction']; } } $options['options']['statementArray'] = $statementArray; // Make sure you have an options array to manipulate if (!isset($options['options'])) { $options['options'] = array(); } return $options; }
function getOptions() { $options = parent::getOptions(); // Make sure you have an options array to manipulate if (!isset($options['options'])) { $options['options'] = array(); } // Mask if (!empty($this->mask)) { $options['options']['mask'] = $this->mask; } // Empty value if (!empty($this->emptyValue)) { $options['options']['emptyValue'] = $this->emptyValue; } // Clear the options key if there is nothing in it if (empty($options['options'])) { unset($options['options']); } return $options; }