Returns an array of preferred label pairs.  In the base XBRL instance is only the PeriodStart/PeriodEnd pair.
@return string[][]
190831
public function getBeginEndPreferredLabelPairs()
	{
		$result = parent::getBeginEndPreferredLabelPairs();
		$result[] = array(
			self::$originallyStatedLabel,
			XBRL_Constants::$labelRoleRestatedLabel,
		);
		$result[] = array(
			// self::$originallyStatedLabel,
			XBRL_Constants::$labelRoleVerboseLabel,
		);

		return $result;
	}
1295172
public function &getLabelLinkRoleRefs( $role = null, &$labelLinkRoleRefs = null )
	{
		if ( $role === null ) $role = XBRL_Constants::$defaultLinkRole;
		$labelLinkRoleRefs = isset ( $this->context->labelLinkRoleRefs[ $role ] )
			? $this->context->labelLinkRoleRefs[ $role ]
			: false;

		return $labelLinkRoleRefs;
	}
698124
public function getFilterOptionsForDcGeneral()
    {
        if (!$this->isFilterOptionRetrievingPossible(null)) {
            return [];
        }

        $originalLanguage       = $GLOBALS['TL_LANGUAGE'];
        $GLOBALS['TL_LANGUAGE'] = $this->getMetaModel()->getActiveLanguage();

        $filter = $this->getSelectMetaModel()->getEmptyFilter();

        $this->buildFilterRulesForFilterSetting($filter);

        $objItems = $this->getSelectMetaModel()->findByFilter(
            $filter,
            $this->getSortingColumn(),
            0,
            0,
            'ASC',
            [$this->getValueColumn(), $this->getIdColumn()]
        );

        $GLOBALS['TL_LANGUAGE'] = $originalLanguage;

        return $this->convertItemsToFilterOptions($objItems, $this->getValueColumn(), $this->getIdColumn());
    }
317534
public static function previewsOptions()
    {
        static::_initPreviews();

        $options = [];
        foreach (static::$_previews as $value => $info) {
            $options[$value] = $info['label'];
        }

        return $options;
    }
1065603
public String[] getAxisLabels() {
        String[] labels = new String[base.dimension];
        for (int i = 0; i < base.dimension; i++) {
            labels[i] = baseGrid.getAxis(i).getAxisLabel();
        }
        return labels;
    }
125404
public function getFilterFormats() {
    $options = [];
    $formats = filter_formats($this->currentUser);
    foreach ($formats as $format) {
      $options[$format->id()] = $format->label();
    }
    return $options;
  }
893725
public function getStandingLevelAllowableValues()
    {
        return [
            self::STANDING_LEVEL_BAD,
            self::STANDING_LEVEL_EXCELLENT,
            self::STANDING_LEVEL_GOOD,
            self::STANDING_LEVEL_NEUTRAL,
            self::STANDING_LEVEL_TERRIBLE,
        ];
    }
1352691
private function getTimePeriodField(): array
    {
        return [
            $this->translator->trans(/** @Desc("Last week") */ 'search.last_week', [], 'search') => 'P0Y0M7D',
            $this->translator->trans(/** @Desc("Last month") */ 'search.last_month', [], 'search') => 'P0Y1M0D',
            $this->translator->trans(/** @Desc("Last year") */ 'search.last_year', [], 'search') => 'P1Y0M0D',
            $this->translator->trans(/** @Desc("Custom range") */ 'search.custom_range', [], 'search') => 'custom_range',
        ];
    }
318164
public function getBehaviorLabels()
    {
        $labels = [];
        foreach ($this->_behaviors as $name => $foo) {
            if (($behavior = $this->getBehavior($name)) instanceof \nineinchnick\usr\components\FormModelBehavior) {
                $labels = array_merge($labels, $behavior->attributeLabels());
            }
        }

        return $labels;
    }
969222
public static function getAvailableTypes()
    {
        return [
            self::TYPE_STRING,
            self::TYPE_INTEGER,
            self::TYPE_FLOAT,
            self::TYPE_BOOLEAN,
            self::TYPE_DATETIME,
        ];
    }
210218
private function getSortOrderChoices()
    {
        $choices = [];
        foreach ($this->getSortOrder() as $label => $value) {
            $choices[$label] = $value;
        }

        return $choices;
    }
1221432
public function getDefaultOptions(): array
    {
        // Setup default validation rules.
        $this->defaultOptions['rules'] = $this->rules;

        // Setup default messages.
        $this->defaultOptions['messages'] = $this->messages;

        // Setup default placeholder.
        $this->defaultOptions['placeholder'] = $this->placeholder ?? $this->getBaseName();

        // Setup default label.
        $this->defaultOptions['label'] = $this->label ?? ucfirst(str_replace(['-', '_'], ' ', $this->getBaseName()));

        return $this->defaultOptions;
    }
1076138
public function toOptionArray()
    {
        $helper = Mage::helper('australia');
        return array(
            array('value' => self::REQUIRED, 'label' => $helper->__('Required')),
            array('value' => self::OPTIONAL, 'label' => $helper->__('Optional')),
            array('value' => self::NEVER,    'label' => $helper->__('Never')),
        );
    }
932262
public function toOptionArray() {
        return [
            [
                'value' => self::BUTTON_BLACK,
                'label' => __('Black')
            ],
            [
                'value' => self::BUTTON_WHITE,
                'label' => __('White')
            ],
            [
                'value' => self::BUTTON_WHITE_LINE,
                'label' => __('White with line')
            ],
        ];
    }
79971
private function validatedPresentationLinkbasePreferredLabels()
	{
		// This test is only needed by the XBRL 2.1 conformance suite test 299
		if ( ! defined( 'CONFORMANCE_TEST_SUITE_XBRL_21') ) return;

		$roleRefs = $this->getPresentationRoleRefs();
		$step = 0;
		// Iterate over all the role refs
		foreach ( $roleRefs as $roleUri => $roleRef )
		{
			$step = "1 - $roleUri";
			// Traverse all the nodes to look for any with a preferred label
			$this->processAllNodes( $roleRef['hierarchy'], function( $node, $id ) use( $roleRef, $roleUri )
			{
				// To distinguish presentation hiearchy nodes that are periodStart or periodEnd but have the same id
				// (such as uk-gaap-pt-2004-12-01.xsd#uk-gaap-pt_NetDebtFunds) the process of creating the hierarchy
				// generates two ids with the 'periodEndLabel' or 'periodStartLabel'.  It also adds these to the
				// element index of the respective taxonomy (uk-gaap-pt-2004-12-01.xsd in this case).  Because there
				// will be no label for a manufactured id (such as uk-gaap-pt_NetDebtFundsperiodEndLabel) it's
				// necessary to lookup the manufactured element in the respective taxonmy and use the id of the element
				// array that's returned.
				$nodeTaxonomy = $this->getTaxonomyForXSD($node['label']);
				$nodeElement = $nodeTaxonomy->getelementById($node['label']);
				$nodeLabel = "{$nodeTaxonomy->getTaxonomyXSD()}#{$nodeElement['id']}";

				if ( ! isset( $node['preferredLabel'] ) ) return true;

				$step = "2 - {$node['preferredLabel']}";

				// The label should have an arc
				// BMS 2018-05-08 Labels use the default link role
				// if ( isset( $this->context->labels[ $roleUri ]['arcs'][ $node['label'] ] ) )
				// if ( isset( $this->context->labels[ \XBRL_Constants::$defaultLinkRole ]['arcs'][ $node['label'] ] ) )
				if ( isset( $this->context->labels[ \XBRL_Constants::$defaultLinkRole ]['arcs'][ $nodeLabel ] ) )
				{
					$step = "3 - {$node['label']}";

					// Create a shortcut to a sub-element
					// $labels =& $this->context->labels[ $roleUri ];
					$labels =& $this->context->labels[ \XBRL_Constants::$defaultLinkRole ];

					// Check the preferred label exists
					if ( isset( $labels['labels'][ $node['preferredLabel'] ] ) )
					{
						$step = "4";

						// Now check there is a preferred label for the arc target
						// foreach ( $labels['arcs'][ $node['label'] ] as $targetLabel => $details )
						foreach ( $labels['arcs'][ $nodeLabel ] as $targetLabel => $details )
						{
							$step = "5 - {$targetLabel}";
							// and locate the label in any lanuage
							foreach ( $labels['labels'][ $node['preferredLabel'] ] as $lang => $labelLabel )
							{
								$step = "6 - {$lang}";

								// If it exists then
								if ( isset( $labelLabel[ $targetLabel ] ) )
								{
									return true;
								}
							}
						}
					}
				}

				$this->log()->taxonomy_validation( "5.2.4.2.1", "A presentation arc preferred label role assigment is not defined as a label",
					array(
						'preferred label' => $node['preferredLabel'],
						'arc to' => $node['label']
					)
				);

			} );
		}
	}
902570
public function toOptionArray()
    {
        $result = $row = [];
        $i = 0;
        foreach ($this->times as $one) {
            if ($i == 0) {
                $row = [
                    'value' => $one,
                    'label' => $one . __(' Hour'),
                ];
            } else {
                $row = [
                    'value' => $one,
                    'label' => $one . __(' Hours'),
                ];
            }
            $result[] = $row;
            ++$i;
        }

        return $result;
    }
579421
public function listRepositoryLabels(): array
    {
        return $this->getApi()->request($this->getApi()
                                             ->sprintf('/repos/:owner/:repo/labels', $this->getIssues()->getOwner(),
                                                 $this->getIssues()->getRepo()));
    }