Get options

@return array
760203
public function options()
    {
        if( ! request()->has('q') )
            return [];

        $parameter = request()->input('q');

        if( request()->has('language') && request()->has('menu_type') ) {
            HCMenu::$customAppends = ['item_label'];

            return HCMenu::select(HCMenu::getFillableFields())
                ->where(function ($query) {
                    $query->where('language_code', request()->input('language'))
                        ->where('menu_type_id', request()->input('menu_type'));
                })
                ->where(function ($query) use ($parameter) {
                    $query->where('link_text', 'LIKE', '%' . $parameter . '%')
                        ->orWhereHas('page.translations', function ($query) use ($parameter) {

                            $query->where('language_code', request()->input('language'))
                                ->where('title', 'LIKE', '%' . $parameter . '%');
                        });
                })
                ->get();
        }

        $list = HCMenu::select("id", "link_text")
            ->orWhere('link_text', 'LIKE', '%' . $parameter . '%')
            ->orWhereHas('page.translations', function ($query) use ($parameter) {

                $query->where('language_code', request()->input('language'))
                    ->where('title', 'LIKE', '%' . $parameter . '%');
            })
            ->take(50)
            ->get();

        return $list;
    }
688662
public function getOptions() {
        if (is_null($this->result)) {
            $this->parse();
        }
        return $this->result[Parser::RESULT_OPTIONS];
    }
467308
protected function getOptions()
    {
        return array_merge([
            ['model', 'm', InputOption::VALUE_OPTIONAL, 'Want a model for this table?', true],
            ['schema', 's', InputOption::VALUE_OPTIONAL, 'Optional schema to be attached to the migration', null],
        ], parent::getOptions());
    }
1214567
public function getOptions()
    {
        $options = [];
        if (sizeof($this->headers) > 0) {
            $options = [
                CURLOPT_HTTPHEADER => $this->getHeaders()
            ];
        }

        return $options + $this->options + $this->getDefaultOptions();
    }
533870
protected function getRequestOptions()
    {
        $options = [
            'proxy' => Configuration::get('proxy')
        ];

        if (!empty(array_filter($this->multipartResources))) {
            $options['multipart'] = $this->multipartResources;
        }

        return $options;
    }
200235
private function FetchOptions()
    {
        $strOptions = $this->Value('Options');
        $lines = Str::SplitLines($strOptions);
        $result = array();
        foreach ($lines as $line)
        {
            $dpPos = strpos($line, ':');
            if ($dpPos !== false)
            {
                $value = trim(substr($line, 0, $dpPos));
                $text = trim(substr($line, $dpPos + 1));
            }
            else
            {
                $value = $line;
                $text = '';
            }
            $result[$value] = $text;
        }
        return $result;
    }
306883
public function options()
    {
        if (!isset($this->_data['options']) || (isset($this->_data['options']) && empty($this->_data['options']))) {
            // No options provided
            return [];
        }
        if (!is_array($this->_data['options'])) {
            // An empty array?
            return [];
        }

        return ([ResourceTable::ALL_SELECT_VALUES_KEY => trans('resource-table::default.All')] + $this->_data['options']);
    }
797974
public function getValues() : array
    {
        $values = [];

        foreach ($this->getOptions() as $option) {
            if ($option->isSelected()) {
                $values[] = $option->getValue();
            }
        }

        return $values;
    }
166666
protected function getTripodOptions()
    {
        $statsConfig = $this->getStatsConfig();
        $options = [];
        if (!empty($statsConfig)) {
            $options['statsConfig'] = $statsConfig;
        }
        return $options;
    }
1192403
public function getOptions()
    {
        $types = $this->types();

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

        return $types;
    }
70758
protected function getOptions(array  $options) : array
    {
        $options['format'] = Arr::get($options, 'format', $this->format);
        $options['locale'] = Arr::get($options, 'locale', config('app.locale'));

        return $options;
    }
1219021
public function getOptions() {
        $options = parent::getOptions();
        if (!array_key_exists('enabled', $options)) {
            $options['enabled'] = true;
        }
        if ($options['enabled']) {
            $config = Garp_Config_Ini::getCached(APPLICATION_PATH . '/configs/acl.ini');
            $aclOptions = $config->acl->toArray();
            $options = array_merge($options, $aclOptions);
        }
        return $options;
    }
160768
public function getOptional() : array {
        $optional = [];

        foreach($this->optional as $component) {
            $optional[$component] = $this->getTargetBranch($component);
        }

        return $optional;
    }
947402
protected function getOptions()
    {
        $options = [];

        // Here we will gather all of the command line options that have been specified with
        // the double hyphens in front of their name. We will make these available to the
        // Blade task file so they can be used in echo statements and other structures.
        foreach ($_SERVER['argv'] as $argument) {
            if (! starts_with($argument, '--') || in_array($argument, $this->ignoreOptions)) {
                continue;
            }

            $option = explode('=', substr($argument, 2));

            if (count($option) == 1) {
                $option[1] = true;
            }

            $options[$option[0]] = $option[1];
        }

        return $options;
    }
446931
protected function getOptions()
	{
		// Initialize variables.
		$options = array();

		// Convert to name => name array.
		foreach (Manager::getStores() as $store)
		{
			$options[] = Dropdown::option($store, App::get('language')->txt('JLIB_FORM_VALUE_CACHE_' . $store), 'value', 'text');
		}

		$options = array_merge(parent::getOptions(), $options);

		return $options;
	}
576331
protected function get_options() {
        global $CFG;
        $options = parent::get_options();
        $options['file'] =  'badges/lib/awardlib.php';
        $options['context'] = $this->context;
        $options['badgeid'] = $this->badgeid;
        $options['issuerid'] = $this->issuerid;
        $options['issuerrole'] = $this->issuerrole;
        return $options;
    }
362968
public function getValueSelectOptions()
    {
        if (!$this->hasData('value_select_options')) {
            $this->setData(
                'value_select_options',
                $this->sourceYesno->toOptionArray()
            );
        }

        return $this->getData('value_select_options');
    }