Returns the choices.

@return array
18299
public static function getChoices()
    {
        return [
            self::PHYSICAL     => 'ekyna_product.type.'.self::PHYSICAL,
            self::VIRTUAL      => 'ekyna_product.type.'.self::VIRTUAL,
            self::DOWNLOADABLE => 'ekyna_product.type.'.self::DOWNLOADABLE,
        ];
    }
1066233
public function getAllOptions()
    {
        $result = [];

        foreach (self::getOptionArray() as $index => $value) {
            $result[] = ['value' => $index, 'label' => $value];
        }

        return $result;
    }
1150607
public static function getChoices() {
        return [
            self::VEHICULE_MARK_AUDI       => "Audi",
            self::VEHICULE_MARK_BMW        => "BMW",
            self::VEHICULE_MARK_CITROEN    => "Citroën",
            self::VEHICULE_MARK_DACIA      => "Dacia",
            self::VEHICULE_MARK_FIAT       => "Fiat",
            self::VEHICULE_MARK_FORD       => "Ford",
            self::VEHICULE_MARK_HONDA      => "Honda",
            self::VEHICULE_MARK_HYUNDAI    => "Hyundai",
            self::VEHICULE_MARK_KIA        => "Kia",
            self::VEHICULE_MARK_LANCIA     => "Lancia",
            self::VEHICULE_MARK_LAND_ROVER => "Land Rover",
            self::VEHICULE_MARK_MERCEDES   => "Mercedes",
            self::VEHICULE_MARK_MINI       => "Mni",
            self::VEHICULE_MARK_NISSAN     => "Nissan",
            self::VEHICULE_MARK_OPEL       => "Opel",
            self::VEHICULE_MARK_PEUGEOT    => "Peugeot",
            self::VEHICULE_MARK_RENAULT    => "Renault",
            self::VEHICULE_MARK_ROVER      => "Rover",
            self::VEHICULE_MARK_SEAT       => "Seat",
            self::VEHICULE_MARK_SKODA      => "Skoda",
            self::VEHICULE_MARK_SMART      => "Smart",
            self::VEHICULE_MARK_TOYOTA     => "Toyota",
            self::VEHICULE_MARK_VOLKSWAGEN => "Volkswagen",
            self::VEHICULE_MARK_VOLVO      => "Volvo",
        ];
    }
1115127
public function options() {
        $result = array();
        foreach ($this->items as $itemid => $item) {
            $result[$itemid] = $item->get_name();
        }
        return $result;
    }
304268
public function _getOptions()
    {
        $opts = array();
        if (!empty($this->where))
        {
            $opts['where'] = $this->where;
        }
        if (count($this->includes))
        {
            $opts['include'] = join(',', $this->includes);
        }
        if (count($this->selectedKeys))
        {
            $opts['keys'] = join(',', $this->selectedKeys);
        }
        if ($this->limit >= 0)
        {
            $opts['limit'] = $this->limit;
        }
        if ($this->skip > 0)
        {
            $opts['skip'] = $this->skip;
        }
        if ($this->orderBy)
        {
            $opts['order'] = join(',', $this->orderBy);
        }
        if ($this->count)
        {
            $opts['count'] = $this->count;
        }

        return $opts;
    }
1006178
public function getOptions()
    {
        $res = [];
        foreach ($this->getOptionArray() as $index => $value) {
            $res[] = ['value' => $index, 'label' => $value];
        }
        return $res;
    }
249852
public function getFieldTypeFormChoices()
    {
        $choices = [];
        foreach ($this->fieldTypes as $code => $fieldType) {
            $fieldGroup = 'field_type.group.' . $fieldType->getFieldGroup();
            if (!isset($choices[$fieldGroup])) {
                $choices[$fieldGroup] = [];
            }
            $choices[$fieldGroup]['field_type.' . $fieldType->getCode() . '.label'] = $code;
        }

        return $choices;
    }
568341
protected function &getOptions()
    {
        $options = array();

        foreach ($this->tree->getChildren() as $child_node) {
            $this->flattenTree($options, $child_node);
        }

        return $options;
    }
924114
private function getOptions(): array
    {
        return $this->options + [
            PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ,
            PDO::ATTR_CASE => PDO::CASE_NATURAL,
            PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL,
            PDO::ATTR_STRINGIFY_FETCHES => false,
            PDO::ATTR_EMULATE_PREPARES => false,
        ];
    }
1049007
public function toOptionArray()
    {
        return [
            ['label' => __('Auto'), 'value' => self::AUTO_DISPLAYED],
            ['label' => __('Always hidden'), 'value' => self::ALWAYS_HIDDEN],
            ['label' => __('Always displayed'), 'value' => self::ALWAYS_DISPLAYED],
        ];
    }
788293
protected function get_options() {
        $options = parent::get_options();
        $options['groupid'] = $this->groupid;
        $options['courseid'] = $this->courseid;
        return $options;
    }
670944
private function parseOptions()
    {
        $opts = $this->defaults;
        $opts = $this->parseYamlOptions($opts);
        $opts = $this->parseCliOptions($opts);

        return $opts;
    }
1192403
public function getOptions()
    {
        $types = $this->types();

        array_walk($types, function (&$classname) {
            $classname = $classname::getLabel();
        });

        return $types;
    }
876929
public function getIndicesForChoices(array $choices)
    {
        $indices = array();

        foreach ($choices as $i => $givenChoice) {
            foreach ($this->choices as $j => $choice) {
                if ($choice === $givenChoice) {
                    $indices[$i] = $j;
                    unset($choices[$i]);

                    if (0 === count($choices)) {
                        break 2;
                    }
                }
            }
        }

        return $indices;
    }
1326223
public function getChoiceFields()
    {
        $choices = parent::getChoiceFields();

        // Shift all extended fields into the "lead" object.
        $resort = false;
        foreach (['extendedField', 'extendedFieldSecure'] as $key) {
            if (isset($choices[$key])) {
                foreach ($choices[$key] as $fieldAlias => $field) {
                    $choices['lead'][$fieldAlias] = $field;
                    unset($choices[$key][$fieldAlias]);
                }
                unset($choices[$key]);
                $resort = true;
            }
        }
        // Sort after we included extended fields (same as core).
        if ($resort) {
            foreach ($choices as $key => $choice) {
                $cmp = function ($a, $b) {
                    return strcmp($a['label'], $b['label']);
                };
                uasort($choice, $cmp);
                $choices[$key] = $choice;
            }
        }

        return $choices;
    }
787729
protected function getOptions()
    {
        return array(
            array('direction', 'd', InputOption::VALUE_OPTIONAL, 'The direction of ordering.', 'asc'),
            array('database', null, InputOption::VALUE_OPTIONAL, 'The database connection to use.'),
            array('pretend', null, InputOption::VALUE_NONE, 'Dump the SQL queries that would be run.'),
            array('force', null, InputOption::VALUE_NONE, 'Force the operation to run when in production.'),
            array('seed', null, InputOption::VALUE_NONE, 'Indicates if the seed task should be re-run.'),
        );
    }
332191
public static function getOptionArray()
    {
        return [
            self::STATUS_DRAFT          => __('Draft'),
            self::STATUS_PENDING_REVIEW => __('Pending Review'),
            self::STATUS_PUBLISHED      => __('Published')
        ];
    }