Returns the options for the allowed statuses.
@return array the options.
960958
public function getAllowedStatusOptions()
    {
        $options = array();
        $config = $this->getStatusConfig();
        if (isset($config['transitions']) && is_array($config['transitions'])) {
            foreach ($config['transitions'] as $id) {
                $options[$id] = $this->getStatusName($id);
            }
        }
        return $options;
    }
869804
public function getStatusAllowableValues()
    {
        return [
            self::STATUS_ACTIVE,
            self::STATUS_PAUSED,
            self::STATUS_READY,
            self::STATUS_DELIVERED,
            self::STATUS_CANCELLED,
            self::STATUS_REVERTED,
        ];
    }
794761
protected function getOptions()
    {
        return [
            ['url', null, InputOption::VALUE_OPTIONAL, 'URL to send.', null],
            ['urltitle', null, InputOption::VALUE_OPTIONAL, 'URL Title to send.', null],
            ['sound', null, InputOption::VALUE_OPTIONAL, 'Set notification Sound.', null],
            ['device', null, InputOption::VALUE_OPTIONAL, 'Set a Device.', null],
            ['priority', null, InputOption::VALUE_OPTIONAL, 'Set a Priority Message.', null],
            ['retry', null, InputOption::VALUE_OPTIONAL, 'Set a Retry for the Priority.', null],
            ['expire', null, InputOption::VALUE_OPTIONAL, 'Set an expire for the Priority.', null],
            ['html', null, InputOption::VALUE_OPTIONAL, 'Sets if message should be sent as HTML.', null],
            ['debug', null, InputOption::VALUE_NONE, 'Turn the Debug Mode.', null],
        ];
    }
529791
public function getStatus(): array
    {
        return [
            'url' => $this->request_url,
            'route' => $this->getCurrentRoute(),
            'ajax' => $this->ajax,
            'method' => $_SERVER['REQUEST_METHOD'],
            'format' => $this->format,
            'match' => $this->match
        ];
    }
476735
public static function getStatusList()
    {
        return [
            self::STATUS_OPEN => 'status_open',
            self::STATUS_PENDING => 'status_pending',
            self::STATUS_VALIDATED => 'status_validated',
            self::STATUS_CANCELLED => 'status_cancelled',
            self::STATUS_ERROR => 'status_error',
            self::STATUS_STOPPED => 'status_stopped',
        ];
    }
332191
public static function getOptionArray()
    {
        return [
            self::STATUS_DRAFT          => __('Draft'),
            self::STATUS_PENDING_REVIEW => __('Pending Review'),
            self::STATUS_PUBLISHED      => __('Published')
        ];
    }
579864
protected function getEveryOption()
    {
        return [
            'notmailed'     => $this->_('Not emailed'),
            'tomail'        => $this->_('To email'),
            'toremind'      => $this->_('Needs reminder'),
            'hasnomail'     => $this->_('Missing email'),
            'notmailable'   => $this->_('Not allowed to email'),
        ];
    }
1109950
public function getOptions()
    {
        $options = array();
        foreach ($this->commandOptions as $key => $value) {
            $options[$key]=$this->$value;
        }
        return $options;
    }
308980
public function getLdapClientOptions()
    {
        $options = $this->getOptions();
        $zendOptions = array_diff_key($options, array_flip($this->permittedEspoOptions));

        return $zendOptions;
    }
268385
public function getOptions()
    {
        return array_merge([
            'base_uri'        => property_exists($this, 'baseUri') ? $this->baseUri : '',
            'timeout'         => property_exists($this, 'timeout') ? $this->timeout : 5.0,
            'connect_timeout' => property_exists($this, 'connectTimeout') ? $this->connectTimeout : 5.0,
        ], $this->httpOptions);
    }
453831
public function getHttpOptions()
    {
        $options = array(
            'headers' => $this->getHttpHeaders(),
            'connect_timeout' => $this->timeout,
            'timeout' => $this->timeout,
        );
        if ($this->credentials) {
            $options['auth'] = $this->credentials;
        }
        if ($this->proxy) {
            $options['proxy'] = $this->proxy;
        }
        return $options;
    }
430902
public function getStatuses()
    {
        $schedules = clone $this->getCollection()
            ->setOrder('status', Zend_Db_Select::SQL_ASC);
        $schedules->getSelect()
            ->group('status')
            ->reset(Zend_Db_Select::COLUMNS)
            ->columns('status');
        $statuses = $schedules->getConnection()
            ->fetchCol($schedules->getSelect());
        $statusArray = array();
        foreach ($statuses as $status) {
            $statusArray[$status] = $status;
        }
        return $statusArray;
    }
186644
protected function getDisallowedOperations()
    {
        return array(
            'SHUTDOWN' => true,
            'INFO' => true,
            'DBSIZE' => true,
            'LASTSAVE' => true,
            'CONFIG' => true,
            'MONITOR' => true,
            'SLAVEOF' => true,
            'SAVE' => true,
            'BGSAVE' => true,
            'BGREWRITEAOF' => true,
            'SLOWLOG' => true,
        );
    }
647124
public function getStatusAllowableValues()
    {
        return [
            self::STATUS_WAITING,
            self::STATUS_IN_PROGRESS,
            self::STATUS_DONE,
            self::STATUS_FAILED,
            self::STATUS_CANCELED,
        ];
    }
8968
public function getOptions()
    {
        // Loop through and figure out which values were selected.
        $options = array();
        $selectedValue = $this->getValueArray();
        foreach ($this->getSource() as $itemValue => $title) {
            $itemSelected = in_array($itemValue, $selectedValue)
                || in_array($itemValue, $this->getDefaultItems());
            $itemDisabled = $this->isDisabled()
                || in_array($itemValue, $this->getDisabledItems());
            $options[] = new ArrayData(array(
                'Title' => $title,
                'Value' => $itemValue,
                'Selected' => $itemSelected,
                'Disabled' => $itemDisabled,
            ));
        }

        $options = new ArrayList($options);
        $this->extend('updateGetOptions', $options);
        return $options;
    }
245345
protected function getBaseOptions()
    {
        $options = [
            'base_uri'         => property_exists($this, 'baseUri') ? $this->baseUri : '',
            'timeout'          => property_exists($this, 'timeout') ? $this->timeout : 5.0,
            'connect_timeout'  => property_exists($this, 'connect_timeout') ? $this->connect_timeout : 5.0,
        ];

        return $options;
    }
22640
public function toOptionArray()
    {
        $options[] = ['label' => '', 'value' => ''];
        $availableOptions = $this->getAvailable();
        foreach ($availableOptions as $key => $value) {
            $options[] = [
                'label' => $value,
                'value' => $key,
            ];
        }

        return $options;
    }