__('Version 1'), self::VERSION_2 => __('Version 2'), self::VERSION_3 => __('Version 3'), ]; } /** * Retrieve All options * * @return array */ public function getAllOptions() { $result = []; foreach ($this->getAvailableModes() as $index => $value) { $result[] = ['value' => $index, 'label' => $value]; } return $result; } /** * Retrieve Option value text * * @param string $value * @return mixed */ public function getOptionText($value) { $options = $this->getAvailableModes(); return isset($options[$value]) ? $options[$value] : null; } /** * Return array of options as value-label pairs * * @return array Format: array(array('value' => '', 'label' => '